Page 1 of 1

Windows 10 crash on startup

Posted: Tue Oct 18, 2016 5:29 am
by Maulgrim
Hi, I've been playing factorio for a while now without issue but a couple of days ago the game just started crashing on load up. Yesterday it corrected itself with a restart but now, not even that is fixing whatever is wrong. It just keeps going unresponsive and generating a crash log. The only mod I have installed is Better Vehicle Control v0.12.2

0.004 2016-10-18 01:15:21; Factorio 0.13.20 (build 24011, win64, steam)
0.004 Operating system: Windows 10
0.004 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.004 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
0.004 Write data path: C:/Users/Rigal/AppData/Roaming/Factorio
0.004 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
0.031 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [Screen: 255] [DXT: false]
0.079 Available display adapters: 2
0.079 [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 660 {0x80005, [0,0], 1804x1048, 32bit, 60Hz}
0.079 [1]: \\.\DISPLAY2 - NVIDIA GeForce GTX 660 {0x80001, [1804,0], 1440x900, 32bit, 60Hz}
0.080 Create display on adapter 0. Size 1280x720 at position [252, 146].
11.654 Error CrashHandler.cpp:210: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-ohddg8\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-ohddg8\src\util\logger.cpp (328): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-ohddg8\src\util\logger.cpp (382): Logger::logStacktrace
c:\cygwin64\tmp\factorio-ohddg8\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-ohddg8\src\util\crashhandler.cpp (213): 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 (273): `__scrt_common_main_seh'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6BF4FE7C4)
00007FF6BF4FE7C4 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8B163991D)
00007FF8B163991D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8B15D86D3)
00007FF8B15D86D3 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8B1638A3A)
00007FF8B1638A3A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-ohddg8\libraries\allegro\src\win\d3d_disp.cpp (372): d3d_reset_state
c:\cygwin64\tmp\factorio-ohddg8\libraries\allegro\src\win\d3d_disp.cpp (1808): d3d_create_display_internals
c:\cygwin64\tmp\factorio-ohddg8\libraries\allegro\src\win\d3d_disp.cpp (1853): d3d_create_display_locked
c:\cygwin64\tmp\factorio-ohddg8\libraries\allegro\src\win\d3d_disp.cpp (1916): d3d_create_display
c:\cygwin64\tmp\factorio-ohddg8\libraries\allegro\src\display.c (55): al_create_display
c:\cygwin64\tmp\factorio-ohddg8\src\graphics\display.cpp (106): Display::Display
c:\cygwin64\tmp\factorio-ohddg8\src\globalcontext.cpp (602): GlobalContext::loadAllegro
c:\cygwin64\tmp\factorio-ohddg8\src\globalcontext.cpp (307): GlobalContext::init
c:\cygwin64\tmp\factorio-ohddg8\src\mainloop.cpp (135): MainLoop::run
c:\cygwin64\tmp\factorio-ohddg8\src\main.cpp (743): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (255): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8AF1C8364)
00007FF8AF1C8364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8B15F5E91)
00007FF8B15F5E91 (ntdll): (filename not available): RtlUserThreadStart
19.613 Error Util.cpp:77: 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.

I tried uninstalling and reinstalling but I keep getting the same errors.

Re: Windows 10 crash on startup

Posted: Wed Oct 19, 2016 4:36 am
by Maulgrim
I should update this. I recently discovered I'm having fatal errors on my HDD, so I'm attributing the unusual behavior of factiorio with that. Unless someone can make some sense out of the crash log that I'm not seeing.

Re: Windows 10 crash on startup

Posted: Wed Oct 19, 2016 10:38 am
by posila
Hi, it crashes in DirectX initialization. Might be corrupted driver due to HDD problems.
You can try to use OpenGL instead by setting launch options in Factorio properties in Steam to

Code: Select all

--force-opengl
but I recommend to replace defective HW first.

Re: Windows 10 crash on startup

Posted: Thu Oct 20, 2016 7:38 am
by Maulgrim
Thank you very much for your assistance. Forcing OpenGL did fix the game crashing. And I'm in the process of backing up all of my files and just waiting for the new HDD to arrive in the mail.