[0.17.75] Crash LuaHelper::pushChunkPosition
Posted: Fri Nov 08, 2019 1:59 pm
I've had a weird crash for a few times (3~5ish?) That i can't reproduce properly. As far as i can tell it happens when my custom on_chunk_generated handler runs right after creating a new map. But it only crashes like 1 in 50 times? All the handler does is find_non_colliding_position_in_box() and then try to spawn two simple entities. And while the box is larger than the chunk i can't trigger it by just spawning something outside the generated world either...
I didn't see a dump and the log was full of custom error messages from debugging a control script, so maybe someone could look at the stacktrace and give me a hint what i could try to properly reproduce.
I didn't see a dump and the log was full of custom error messages from debugging a control script, so maybe someone could look at the stacktrace and give me a hint what i could try to properly reproduce.
Code: Select all
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\logger.cpp (537): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\logger.cpp (544): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\crashhandler.cpp (184): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\crashhandler.cpp (612): CrashHandler::SignalHandler
minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (304): `__scrt_common_main_seh'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007F7F39CE1D4)
000007F7F39CE1D4 (factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FC686F9B2D)
000007FC686F9B2D (ntdll): (filename not available): RtlLookupFunctionEntry
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FC686FAE04)
000007FC686FAE04 (ntdll): (filename not available): DbgPrint
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FC686C4B7A)
000007FC686C4B7A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\luahelper.cpp (433): LuaHelper::pushChunkPosition
c:\cygwin64\tmp\factorio-build-ycfbos\src\script\luachunkiterator.cpp (109): LuaChunkIterator::luaCall
c:\cygwin64\tmp\factorio-build-ycfbos\src\script\luabinder.hpp (326): LuaBinder<LuaRecipeCategoryPrototype>::callWrapper
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\ldo.c (350): luaD_precall
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\ldo.c (423): luaD_call
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\lvm.c (792): luaV_execute
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\lapi.c (1027): f_call
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\ldo.c (137): luaD_rawrunprotected
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\ldo.c (623): luaD_pcall
c:\cygwin64\tmp\factorio-build-ycfbos\libraries\lua\lapi.c (1053): lua_pcallk
c:\cygwin64\tmp\factorio-build-ycfbos\src\util\luahelper.cpp (3591): LuaHelper::pCallWithStackTrace
c:\cygwin64\tmp\factorio-build-ycfbos\src\script\luacontext.cpp (283): LuaContext::checkRunOnInit
c:\cygwin64\tmp\factorio-build-ycfbos\src\scenario\scenario.cpp (1401): Scenario::setupLuaContext
c:\cygwin64\tmp\factorio-build-ycfbos\src\scenario\scenario.cpp (345): Scenario::loadFactory
c:\cygwin64\tmp\factorio-build-ycfbos\src\appmanager.cpp (613): AppManager::createGame
c:\cygwin64\tmp\factorio-build-ycfbos\src\appmanager.cpp (428): AppManager::restartGame
c:\cygwin64\tmp\factorio-build-ycfbos\src\appmanagerstates.cpp (2411): ConfirmationBoxHelper::executeAndClose
c:\cygwin64\tmp\factorio-build-ycfbos\src\appmanagerstates.hpp (947): InConfirmationBoxTemplate<ConfirmationBoxStrong>::process
c:\cygwin64\tmp\factorio-build-ycfbos\src\appmanager.cpp (227): AppManager::process
c:\cygwin64\tmp\factorio-build-ycfbos\src\mainloop.cpp (507): MainLoop::prePrepare
c:\cygwin64\tmp\factorio-build-ycfbos\src\mainloop.cpp (608): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-build-ycfbos\src\mainloop.cpp (377): MainLoop::run
c:\cygwin64\tmp\factorio-build-ycfbos\src\main.cpp (1366): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FC677D1842)
000007FC677D1842 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FC686FDF11)
000007FC686FDF11 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
2656.973 Error CrashHandler.cpp:189: Map tick at moment of crash: 0
2656.974 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
2751.425 Received SIGINT, shutting down
2757.145 Received second SIGINT, terminating immediately