Page 1 of 1

[0.16.7] Crash in LightRenderer::loadLights

Posted: Wed Dec 27, 2017 10:24 pm
by AlcatrazIV
Was placing belts (by hand) when the game crashed. Full log, last autosave, and zipped mods directory are attached.

I continued playing this save. About thirty minutes in, and it didn't crash again so far, so this seems to be a sporadic issue.

Stacktrace:

Code: Select all

16081.422 Error CrashHandler.cpp:419: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-azpuox\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-azpuox\src\util\logger.cpp (371): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-azpuox\src\util\logger.cpp (470): Logger::logStacktrace
c:\cygwin64\tmp\factorio-azpuox\src\util\crashhandler.cpp (127): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-azpuox\src\util\crashhandler.cpp (423): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (299): `__scrt_common_main_seh'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF655E87934)
00007FF655E87934 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB0EFCA07D)
00007FFB0EFCA07D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB0EF39C58)
00007FFB0EF39C58 (ntdll): (filename not available): RtlLookupFunctionEntry
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB0EFC90FE)
00007FFB0EFC90FE (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-azpuox\src\graphics\lightrenderer.cpp (88): LightRenderer::loadLights
c:\cygwin64\tmp\factorio-azpuox\src\graphics\lightrenderer.cpp (58): LightRenderer::prepare
c:\cygwin64\tmp\factorio-azpuox\src\graphics\gamerenderer.cpp (148): GameRenderer::prepareJob
c:\cygwin64\tmp\factorio-azpuox\src\graphics\gamerenderer.cpp (129): GameRenderer::prepare
c:\cygwin64\tmp\factorio-azpuox\src\gameview.cpp (941): GameView::prepareRender
c:\cygwin64\tmp\factorio-azpuox\src\mainloop.cpp (792): MainLoop::prepare
c:\cygwin64\tmp\factorio-azpuox\src\mainloop.cpp (526): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-azpuox\src\mainloop.cpp (331): MainLoop::run
c:\cygwin64\tmp\factorio-azpuox\src\main.cpp (1030): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (283): __scrt_common_main_seh

Re: [0.16.7] Crash in LightRenderer::loadLights

Posted: Thu Dec 28, 2017 8:39 pm
by kovarex
This looks quite random. The code in this part haven't been touched in a long time. To be sure I loaded your save with the mod in debug mode and checked its consistency and everything seems to be fine.
So only explanation I can think of is either random hardware bug, or some other (threading?) issue.
I'm moving this to pending.

Re: [0.16.7] Crash in LightRenderer::loadLights

Posted: Tue Jan 02, 2018 5:46 am
by Rseding91
I've seen this report several times now but nobody has any consistent way to reproduce it and as Kovarex said that code hasn't changed in a *long* time. Not that there can't be a bug in it but without some way to reproduce the crash (or a crash dump) there's not much we can do.