Page 1 of 1

[0.15.34] Hang then crash

Posted: Thu Oct 05, 2017 6:21 pm
by wilmo
Game has been 100% solid for me for the previous version, I updated an old map, and everything was fine. After firing it up yet again, not sure if there has been a new patch since, I am noticing it now crashes fairly regularly. Posting the logfile here so hopefully I can get a resolution.

Code: Select all

   0.002 2017-10-05 19:01:50; Factorio 0.15.34 (build 30875, win64, steam)
   0.002 Operating system: Windows 8.1 
   0.002 Program arguments: "C:\Games\SteamLibrary1\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.002 Read data path: C:/Games/SteamLibrary1/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/chimp/AppData/Roaming/Factorio
   0.002 Binaries path: C:/Games/SteamLibrary1/steamapps/common/Factorio/bin
   0.009 System info: [CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 12 cores, RAM: 32663MB]
   0.009 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.010 Available display adapters: 1
   0.011  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX TITAN X {0x05, [0,0], 2560x1440, 32bit, 59Hz}
   0.011 Create display on adapter 0. Size 1280x720 at position [630, 342].
   0.732 Initialised Direct3D:[0] NVIDIA GeForce GTX TITAN X; driver: nvd3dumx.dll 21.21.13.7849
   0.733     Video memory size (dedicated video/dedicated system/shared system/available): 12112/0/16331/4082 MB
   0.755 DSound: Starting _dsound_update thread
   0.755 DSound: Enter _dsound_update; tid=8920
   0.756 Device reset internal.
   0.759 Desktop composition is active.
   0.759 Graphics settings preset: very-high
   0.759 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [DXT: false] [Shader: 1]
   0.879 Loading mod core 0.0.0 (data.lua)
   0.886 Loading mod base 0.15.34 (data.lua)
   0.983 Loading mod base 0.15.34 (data-updates.lua)
   1.010 Checksum for core: 1519575497
   1.010 Checksum of base: 1503927233
   1.258 Info PlayerData.cpp:58: Local player-data.json available, timestamp 1507070048
   1.258 Info PlayerData.cpp:63: Cloud player-data.json available, timestamp 1504248655
   1.412 Loaded shader file C:/Games/SteamLibrary1/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   1.412 Loaded shader file C:/Games/SteamLibrary1/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   1.424 Initial atlas bitmap size is 16384
   1.427 Created atlas bitmap 16384x8125
   1.866 Created atlas bitmap 8192x2034
   1.899 Created atlas bitmap 8192x3317
   1.946 Created atlas bitmap 4096x3648
   1.963 Created atlas bitmap 4096x1568
   1.986 Created atlas bitmap 4096x1868
   7.715 Sprites loaded
   7.715 Convert atlas 4096x3648 to: mipmap 
   7.863 Convert atlas 4096x1568 to: mipmap 
   7.946 Convert atlas 4096x1868 to: trilinear-filtering 
   8.135 Loading sounds...
  10.274 Custom inputs active: 0
  10.316 Factorio initialised
  13.387 Loading map C:\Users\chimp\AppData\Roaming\Factorio\saves\_autosave3.zip: 16991483 bytes.
  13.426 Loading Level.dat: 40837587 bytes.
  13.432 Info Scenario.cpp:135: Map version 0.15.34-0
  14.373 Info BlueprintLibrary.cpp:226: Loaded library shelves:
  14.373 Info BlueprintLibrary.cpp:794: Game shelf: playerIndex = 65535, nextRecordID = 0; timestamp = 1503854753; records:
  14.373 Info BlueprintLibrary.cpp:796: Player shelf: playerIndex = 0, nextRecordID = 0; timestamp = 1507213332; records:
  14.498 Info BlueprintLibrary.cpp:49: Loaded external blueprint storage: playerIndex = 0, nextRecordID = 0; timestamp = 1507213349; records:
  14.498 Loading script.dat: 221 bytes.
  14.500 Checksum for script C:/Users/chimp/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 282129324
 136.553 Info BlueprintShelf.cpp:683: Saving blueprint storage.
 842.396 Error CrashHandler.cpp:252: Exception Code: c0000005, Address: 0x00007ff68aa464e0
ModuleBase: 0x00007ff68a820000, ImageSize: 0121b000, RelativeAddress: 002264e0
 842.396 Error CrashHandler.cpp:258: Access Violation: Read at address FFFFFFFFFFFFFFFF
 842.396 Error CrashHandler.cpp:271: Exception Context:
rax=000000fc3dbb4320, rbx=000000fc70dfd8e0, rcx=000000fc4c3ef608,
rdx=000000fc5ab605b2, rsi=0032000000000000, rdi=000000fc7f0486d8,
rip=00007ff68aa464e0, rsp=000000fc4c3ef4f0, rbp=000000fc740d82e0,
 r8=000000fc740d82e0,  r9=0000000000000000, r10=000000fc4c3ef650,
r11=000000fc4c3ef654, r12=000000000000007c, r13=000000fc4c3ef654,
r14=000000fc70dfd880, r15=0000000000000002
 842.396 Crashed in C:\Games\SteamLibrary1\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff68a820000 - 0x00007ff68ba3b000)
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 (297): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5C631F62)
00007FFD5C631F62 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F20F133)
00007FFD5F20F133 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F1F1D96)
00007FFD5F1F1D96 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F20340D)
00007FFD5F20340D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F1C4857)
00007FFD5F1C4857 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F20259A)
00007FFD5F20259A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-ymlunc\src\graphics\drawqueue.cpp (488): DrawQueue::drawScaled
c:\cygwin64\tmp\factorio-ymlunc\src\entity\transportline.cpp (316): TransportLine::draw
c:\cygwin64\tmp\factorio-ymlunc\src\entity\transportbelt.cpp (115): TransportBelt::draw
c:\cygwin64\tmp\factorio-ymlunc\src\graphics\entityrenderer.cpp (226): EntityRenderer::prepareRow
c:\cygwin64\tmp\factorio-ymlunc\src\graphics\entityrenderer.cpp (161): EntityRenderer::threadJob
c:\cygwin64\tmp\factorio-ymlunc\src\util\workerthread.cpp (35): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl RouterBase::*)(void) __ptr64,ServerRouter * __ptr64>,std::default_delete<std::tuple<void (__cdecl RouterBase::*)(void) __ptr64,ServerRouter * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5DF113D2)
00007FFD5DF113D2 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5F1854F4)
00007FFD5F1854F4 (ntdll): (filename not available): RtlUserThreadStart
 843.719 Error CrashHandler.cpp:123: Map tick at moment of crash: 19957148
 843.719 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.
 845.142 Creating crash dump.
 845.252 CrashDump success


Re: [15.34] Crash after: "DrawQueue::drawScaled"

Posted: Thu Oct 05, 2017 6:34 pm
by Loewchen
Post your save and the factorio-crash-current.dmp file as well please.

See as well: 51666

Re: [0.15.34] Hang then crash

Posted: Thu Oct 05, 2017 7:11 pm
by wilmo
factorio-dump-previous.zip
(114.21 KiB) Downloaded 87 times

Re: [0.15.34] Hang then crash

Posted: Fri Oct 06, 2017 8:48 am
by posila
Thanks for the report.

I've investigated crash dump and found that prototype pointer in ItemStack on transport belt at position {-219, -96} was off by 10 (0xfc5ab603ca instead of 0xfc5ab603c0)
It looks like same kind of magic bit flips we see in corrupted saves sometimes. We still have no idea if it is cosmic rays, HW glitches or some dangling pointer in our code overwriting game state.

I'll move this to resolved for 0.16, as whole structure of TransportBeltLines and items on them changed a lot (they don't even contain pointer to prototype anymore), so this particular crash should not happen in 0.16. But if you have more crashes even befor 0.16, don't hesitate posting them, it might give us more information about what is going on.

Re: [0.15.34] Hang then crash

Posted: Fri Oct 06, 2017 6:41 pm
by wilmo
I deleted some belts around the area of those co-ordinates, seemed to be stable for a while, then it started happening again. Here are the files.

Code: Select all

   0.002 2017-10-06 19:35:55; Factorio 0.15.34 (build 30875, win64, steam)
   0.002 Operating system: Windows 8.1 
   0.002 Program arguments: "C:\Games\SteamLibrary1\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.002 Read data path: C:/Games/SteamLibrary1/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/chimp/AppData/Roaming/Factorio
   0.002 Binaries path: C:/Games/SteamLibrary1/steamapps/common/Factorio/bin
   0.019 System info: [CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 12 cores, RAM: 32663MB]
   0.024 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.025 Available display adapters: 1
   0.025  [0]: \\.\DISPLAY6 - NVIDIA GeForce GTX TITAN X {0x05, [0,0], 2560x1440, 32bit, 59Hz}
   0.025 Create display on adapter 0. Size 1280x720 at position [630, 342].
   1.047 Initialised Direct3D:[0] NVIDIA GeForce GTX TITAN X; driver: nvd3dumx.dll 22.21.13.8569
   1.049     Video memory size (dedicated video/dedicated system/shared system/available): 12112/0/16331/4082 MB
   1.081 DSound: Starting _dsound_update thread
   1.082 DSound: Enter _dsound_update; tid=15552
   1.083 Device reset internal.
   1.085 Desktop composition is active.
   1.085 Graphics settings preset: very-high
   1.086 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [DXT: false] [Shader: 1]
   1.447 Loading mod core 0.0.0 (data.lua)
   1.458 Loading mod base 0.15.34 (data.lua)
   1.601 Loading mod base 0.15.34 (data-updates.lua)
   1.630 Checksum for core: 1519575497
   1.630 Checksum of base: 1503927233
   1.970 Info PlayerData.cpp:58: Local player-data.json available, timestamp 1507303591
   1.970 Info PlayerData.cpp:63: Cloud player-data.json available, timestamp 1504248655
   2.132 Loaded shader file C:/Games/SteamLibrary1/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   2.132 Loaded shader file C:/Games/SteamLibrary1/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   2.144 Initial atlas bitmap size is 16384
   2.146 Created atlas bitmap 16384x8125
   2.590 Created atlas bitmap 8192x2034
   2.623 Created atlas bitmap 8192x3317
   2.671 Created atlas bitmap 4096x3648
   2.688 Created atlas bitmap 4096x1568
   2.712 Created atlas bitmap 4096x1868
  11.097 Sprites loaded
  11.097 Convert atlas 4096x3648 to: mipmap 
  11.246 Convert atlas 4096x1568 to: mipmap 
  11.331 Convert atlas 4096x1868 to: trilinear-filtering 
  11.522 Loading sounds...
  14.158 Custom inputs active: 0
  14.211 Factorio initialised
  28.958 Loading map C:\Users\chimp\AppData\Roaming\Factorio\saves\_autosave3.zip: 17181721 bytes.
  28.995 Loading Level.dat: 41332023 bytes.
  29.001 Info Scenario.cpp:135: Map version 0.15.34-0
  29.929 Info BlueprintLibrary.cpp:226: Loaded library shelves:
  29.929 Info BlueprintLibrary.cpp:794: Game shelf: playerIndex = 65535, nextRecordID = 0; timestamp = 1503854753; records:
  29.929 Info BlueprintLibrary.cpp:796: Player shelf: playerIndex = 0, nextRecordID = 0; timestamp = 1507312901; records:
  30.058 Info BlueprintLibrary.cpp:49: Loaded external blueprint storage: playerIndex = 0, nextRecordID = 0; timestamp = 1507312909; records:
  30.058 Loading script.dat: 221 bytes.
  30.061 Checksum for script C:/Users/chimp/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 282129324
  82.299 Error CrashHandler.cpp:252: Exception Code: c0000005, Address: 0x00007ff683509697
ModuleBase: 0x00007ff683340000, ImageSize: 0121b000, RelativeAddress: 001c9697
  82.299 Error CrashHandler.cpp:258: Access Violation: Read at address FFFFFFFFFFFFFFFB
  82.299 Error CrashHandler.cpp:271: Exception Context:
rax=0000000000000003, rbx=0000000000000001, rcx=00000000000000e0,
rdx=0000000d07a6f200, rsi=0000000d66c6f940, rdi=0000000d5e85eeb8,
rip=00007ff683509697, rsp=0000000d07a6f200, rbp=000000000131cc12,
 r8=0000000000000008,  r9=0000000d66c6fb98, r10=00000000000000a0,
r11=0000000d07a6f208, r12=0000000000000000, r13=0000000000000000,
r14=0000000d66c6fa30, r15=0000000000000000
  82.299 Crashed in C:\Games\SteamLibrary1\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff683340000 - 0x00007ff68455b000)
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 (297): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB11A1F62)
00007FFCB11A1F62 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3C4F133)
00007FFCB3C4F133 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3C31D96)
00007FFCB3C31D96 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3C4340D)
00007FFCB3C4340D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3C04857)
00007FFCB3C04857 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3C4259A)
00007FFCB3C4259A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-ymlunc\src\entity\transportbelt.cpp (258): TransportBelt::update
c:\cygwin64\tmp\factorio-ymlunc\src\surface\chunk.cpp (577): Chunk::updateEntities
c:\cygwin64\tmp\factorio-ymlunc\src\surface\surface.cpp (987): Surface::update
c:\cygwin64\tmp\factorio-ymlunc\src\map\map.cpp (1251): Map::update
c:\cygwin64\tmp\factorio-ymlunc\src\game.cpp (154): Game::update
c:\cygwin64\tmp\factorio-ymlunc\src\scenario\scenario.cpp (786): Scenario::update
c:\cygwin64\tmp\factorio-ymlunc\src\mainloop.cpp (912): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-ymlunc\src\mainloop.cpp (780): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-ymlunc\src\util\workerthread.cpp (35): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl RouterBase::*)(void) __ptr64,ServerRouter * __ptr64>,std::default_delete<std::tuple<void (__cdecl RouterBase::*)(void) __ptr64,ServerRouter * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB17013D2)
00007FFCB17013D2 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCB3BC54F4)
00007FFCB3BC54F4 (ntdll): (filename not available): RtlUserThreadStart
  84.418 Error CrashHandler.cpp:123: Map tick at moment of crash: 20040722
  84.418 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: [0.15.34] Hang then crash

Posted: Mon Oct 23, 2017 10:11 pm
by Loewchen
See as well: 53561