Page 1 of 1

[posila] [0.15.34] Vanilla-Crash when client saved after server quit

Posted: Fri Aug 25, 2017 1:16 am
by tetryon
Both server and client are running Windows 10. Server was non-dedicated. No mods at all.
This crash has not happened before, but the circumstances leading to the crash haven't either (for us).
The world was first created when 0.15.23 was the latest version, but we always play on the latest experimental, so it's 0.15.34 now.

Server was running a LAN only game with one other person connected. The server game was saved and then was quit (intentionally).

At the same time the other person (client) hit escape and attempted to manually save. Their instance of the game froze for 15-20 seconds, threw up an error pointing to the log file, and then the game exited.

I've attached a log file and copy/pasted the pertinent part here. I've also attached the server log file which is clean. The save file from the server is in there too (the save was taken a second or two before quitting)

As an aside, we do suffer from lag/latency issues on the internal network - seems to only be factorio. We get 1-2ms ping times.

Code: Select all

9370.409 Info ClientSynchronizer.cpp:268: Changing local latency from 12 to 13 (nextTickToSend: 8732706, ticksClientWillJumpOver: 0 {})
9377.647 Info ClientMultiplayerManager.cpp:543: MapTick(8733057) changing state from(InGame) to(WaitingForUserToSaveOrQuitAfterServerLeft)
9377.688 Error CrashHandler.cpp:382: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-ymlunc\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-ymlunc\src\util\logger.cpp (381): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\logger.cpp (438): Logger::logStacktrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\crashhandler.cpp (122): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\crashhandler.cpp (386): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (117): `thread_start<unsigned int (__cdecl*)(void * __ptr64)>'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF68D919178)
00007FF68D919178 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B110AB6D)
00007FF9B110AB6D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B10A9933)
00007FF9B10A9933 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B1109C8A)
00007FF9B1109C8A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-ymlunc\libraries\allegro\src\win\d3d_bmp.cpp (825): d3d_draw_bitmap_region
c:\cygwin64\tmp\factorio-ymlunc\libraries\allegro\src\bitmap_draw.c (57): _bitmap_drawer
c:\cygwin64\tmp\factorio-ymlunc\libraries\allegro\src\bitmap_draw.c (121): _draw_tinted_rotated_scaled_bitmap_region
c:\cygwin64\tmp\factorio-ymlunc\src\graphics\imagedraworder.cpp (74): ImageDrawOrder::render
c:\cygwin64\tmp\factorio-ymlunc\src\graphics\guirenderer.cpp (48): GuiRenderer::render
c:\cygwin64\tmp\factorio-ymlunc\src\mainloop.cpp (972): MainLoop::render
c:\cygwin64\tmp\factorio-ymlunc\src\mainloop.cpp (497): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-ymlunc\src\mainloop.cpp (299): MainLoop::run
c:\cygwin64\tmp\factorio-ymlunc\src\main.cpp (1019): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (253): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AE8C8364)
00007FF9AE8C8364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B10C7091)
00007FF9B10C7091 (ntdll): (filename not available): RtlUserThreadStart
9398.163 Error CrashHandler.cpp:123: Map tick at moment of crash: 8733057
9398.163 Error Util.cpp:80: 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.

Re: [posila] [0.15.34] Vanilla-Crash when client saved after server quit

Posted: Fri Sep 08, 2017 11:22 pm
by posila
Thanks for the report.
I tried to reproduce the crash but couldn't. It crashed in rendering, probably GUI, but I don't know what exactly was it trying to render when it crashed.
In 0.16 crashes on Windows will generate also minidump, which will hopefully provide more context in crashes like this.

Re: [posila] [0.15.34] Vanilla-Crash when client saved after server quit

Posted: Tue Sep 12, 2017 7:22 pm
by tetryon
iun
posila wrote:In 0.16 crashes on Windows will generate also minidump

The computer this happened with is offline/unplugged right now, but would this be found in C:\Windows\Minidump\ ?
Do you want me to attach it to this post when I get the computer back online?

Re: [posila] [0.15.34] Vanilla-Crash when client saved after server quit

Posted: Tue Sep 12, 2017 8:08 pm
by Loewchen
tetryon wrote:
posila wrote:In 0.16 crashes on Windows will generate also minidump
The computer this happened with is offline/unplugged right now, but would this be found in C:\Windows\Minidump\ ?
Do you want me to attach it to this post when I get the computer back online?
0.16 is not out yet, so what you are looking for does not exist.