Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't dereference value-initialized vector iterator #7421

Closed
SamuXarick opened this issue Mar 26, 2019 · 1 comment
Closed

Can't dereference value-initialized vector iterator #7421

SamuXarick opened this issue Mar 26, 2019 · 1 comment

Comments

@SamuXarick
Copy link
Contributor

Version of OpenTTD

OpenTTD 20190326-master-g427d9d483f

Expected result

Reach main menu

Actual result

Crashes before

Steps to reproduce

Launch OpenTTD win64 debug build with Visual Studio

2019-03-26

@SamuXarick
Copy link
Contributor Author

SamuXarick commented Mar 26, 2019

KernelBase.dll!00007ffe1215a388()	Unknown
openttd.exe!CustomAbort(int signal) Line 546	C++
openttd.exe!raise(int signum) Line 522	C++
openttd.exe!common_message_window<char>(const int report_type, void * const return_address, const char * const file_name, const char * const line_number, const char * const module_name, const char * const user_message) Line 414	C++
openttd.exe!__acrt_MessageWindowA(const int report_type, void * const return_address, const char * const file_name, const char * const line_number, const char * const module_name, const char * const user_message) Line 440	C++
openttd.exe!_VCrtDbgReportA(int nRptType, void * returnAddress, const char * szFile, int nLine, const char * szModule, const char * szFormat, char * arglist) Line 399	C++
openttd.exe!_CrtDbgReport(int report_type, const char * file_name, int line_number, const char * module_name, const char * format, ...) Line 258	C++
[External Code]	
openttd.exe!SmallMap<int,char *>::End() Line 87	C++
openttd.exe!SmallMap<int,char *>::Find(const int & key) Line 78	C++
openttd.exe!SmallMap<int,char *>::Contains(const int & key) Line 108	C++
openttd.exe!ScriptInfo::AddLabels(SQVM * vm) Line 264	C++
openttd.exe!SQConvert::DefSQAdvancedNonStaticCallback<AIInfo,__int64 (__cdecl ScriptInfo::*)(SQVM *),0>(SQVM * vm) Line 810	C++
openttd.exe!SQVM::CallNative(SQNativeClosure * nclosure, __int64 nargs, __int64 stackbase, SQObjectPtr & retval, bool & suspend) Line 1187	C++
openttd.exe!SQVM::Execute(SQObjectPtr & closure, __int64 target, __int64 nargs, __int64 stackbase, SQObjectPtr & outres, unsigned __int64 raiseerror, SQVM::ExecutionType et) Line 798	C++
openttd.exe!SQVM::Call(SQObjectPtr & closure, __int64 nparams, __int64 stackbase, SQObjectPtr & outres, unsigned __int64 raiseerror, unsigned __int64 can_suspend) Line 1482	C++
openttd.exe!sq_call(SQVM * v, __int64 params, unsigned __int64 retval, unsigned __int64 raiseerror, int suspend) Line 978	C++
openttd.exe!Squirrel::CallMethod(tagSQObject instance, const char * method_name, tagSQObject * ret, int suspend) Line 237	C++
openttd.exe!ScriptInfo::GetSettings() Line 115	C++
openttd.exe!ScriptInfo::Constructor(SQVM * vm, ScriptInfo * info) Line 106	C++
openttd.exe!AIInfo::Constructor(SQVM * vm) Line 72	C++
openttd.exe!SQVM::CallNative(SQNativeClosure * nclosure, __int64 nargs, __int64 stackbase, SQObjectPtr & retval, bool & suspend) Line 1187	C++
openttd.exe!SQVM::Execute(SQObjectPtr & closure, __int64 target, __int64 nargs, __int64 stackbase, SQObjectPtr & outres, unsigned __int64 raiseerror, SQVM::ExecutionType et) Line 798	C++
openttd.exe!SQVM::Call(SQObjectPtr & closure, __int64 nparams, __int64 stackbase, SQObjectPtr & outres, unsigned __int64 raiseerror, unsigned __int64 can_suspend) Line 1482	C++
openttd.exe!sq_call(SQVM * v, __int64 params, unsigned __int64 retval, unsigned __int64 raiseerror, int suspend) Line 978	C++
openttd.exe!Squirrel::LoadScript(SQVM * vm, const char * script, bool in_root) Line 527	C++
openttd.exe!Squirrel::LoadScript(const char * script) Line 543	C++
openttd.exe!ScriptScanner::AddFile(const char * filename, unsigned __int64 basepath_length, const char * tar_filename) Line 57	C++
openttd.exe!ScanPath(FileScanner * fs, const char * extension, const char * path, unsigned __int64 basepath_length, bool recursive) Line 1358	C++
openttd.exe!ScanPath(FileScanner * fs, const char * extension, const char * path, unsigned __int64 basepath_length, bool recursive) Line 1355	C++
openttd.exe!FileScanner::Scan(const char * extension, Subdirectory sd, bool tars, bool recursive) Line 1406	C++
openttd.exe!ScriptScanner::RescanDir() Line 99	C++
openttd.exe!ScriptScanner::Initialize(const char * name) Line 80	C++
openttd.exe!AIScannerInfo::Initialize() Line 35	C++
openttd.exe!AI::Initialize() Line 174	C++
openttd.exe!InitializeGame(unsigned int size_x, unsigned int size_y, bool reset_date, bool reset_settings) Line 110	C++
openttd.exe!GenerateWorld(GenWorldMode mode, unsigned int size_x, unsigned int size_y, bool reset_settings) Line 315	C++
openttd.exe!openttd_main(int argc, char * * argv) Line 837	C++
openttd.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 443	C++
[External Code]	

LordAro added a commit to LordAro/OpenTTD that referenced this issue Mar 26, 2019
@PeterN PeterN closed this as completed in ed90056 Mar 27, 2019
douiwby pushed a commit to douiwby/OpenTTD that referenced this issue Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant