Crash while autosave and loading earlier saves

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
VictorBarth
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 29, 2018 10:55 pm
Contact:

Crash while autosave and loading earlier saves

Post by VictorBarth »

I was playing and my game crashed during autosave. (The game freezed when the autosave progress bar reached 100%, then crashed after a few seconds). It happened 1h after the update 0.16.20

After this I launched Factorio again. I tried to load my game, but all my saves crashed (3 autosaves and 3 saves I use as backup). One of this saves was before the update, and it still works if i use version 0.16.19

This is the log file the game open after the crash message:

Code: Select all

0.003 2018-01-29 19:13:08; Factorio 0.16.20 (build 35245, win64, steam)
   0.003 Operating system: Windows 10 (version 1709) 
   0.003 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.003 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.003 Write data path: C:/Users/Bartholomeu/AppData/Roaming/Factorio [580194/952443MB]
   0.003 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.015 System info: [CPU: AMD FX(tm)-4300 Quad-Core Processor            , 4 cores, RAM: 16286MB]
   0.017 Display options: [FullScreen: 1] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.018 Available display adapters: 1
   0.019  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1050 Ti {0x05, [0,0], 1680x1050, 32bit, 59Hz}
   0.019 Create display on adapter 0. Size 1280x720 at position [190, 147].
   0.190 Initialised Direct3D:[0] NVIDIA GeForce GTX 1050 Ti; driver: nvldumdx.dll 23.21.13.8813
   0.190 D3DFMT_A8 is not supported format for surfaces.
   0.190 D3DFMT_L8 is not supported format for surfaces.
   0.199   Video memory size (dedicated video/dedicated system/shared system/available): 4029/0/8143/4089 MB
   0.242 DSound: Starting _dsound_update thread
   0.243 DSound: Enter _dsound_update; tid=8868
   0.243 Device reset internal.
   0.246 Desktop composition is active.
   0.246 Graphics settings preset: extreme
   0.247 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false] [Shader: 1]
   0.247                   [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
   0.332 Loading mod core 0.0.0 (data.lua)
   0.355 Loading mod base 0.16.20 (data.lua)
   0.567 Loading mod base 0.16.20 (data-updates.lua)
   0.646 Checksum for core: 1372761519
   0.646 Checksum of base: 3706582573
   0.816 Loading sounds...
   0.958 Info PlayerData.cpp:67: Local player-data.json unavailable
   0.958 Info PlayerData.cpp:70: Cloud player-data.json available, timestamp 1517259548
   1.108 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   1.108 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   1.109 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/alpha-mask.cso
   1.109 Crop bitmaps.
   6.532 Initial atlas bitmap size is 16384
   6.538 Created atlas bitmap 16384x5943 [none]
   6.900 Created atlas bitmap 16384x847 [shadow]
   6.937 Created atlas bitmap 16384x682 [decal]
   6.980 Created atlas bitmap 8192x1496 [mipmap]
   7.012 Created atlas bitmap 8192x800 [mipmap, smoke]
   7.028 Created atlas bitmap 8192x2112 [linear-minification, mipmap, terrain]
   7.088 Created atlas bitmap 8192x1036 [no-crop, trilinear-filtering, icon, light]
   7.110 Created atlas bitmap 8192x238 [alpha-mask]
  18.038 Sprites loaded
  18.038 Convert atlas 8192x1496 to: mipmap 
  18.113 Convert atlas 8192x800 to: mipmap 
  18.155 Convert atlas 8192x2112 to: min-linear 
  18.300 Convert atlas 8192x1036 to: trilinear-filtering 
  18.352 Convert atlas 8192x238 to: alpha-mask
  18.639 Custom inputs active: 0
  18.689 Factorio initialised
  28.247 Loading map C:\Users\Bartholomeu\AppData\Roaming\Factorio\saves\jogo8.1 - Copia.zip: 11300334 bytes.
  28.294 Loading Level.dat: 25582675 bytes.
  28.301 Info Scenario.cpp:135: Map version 0.16.20-0
  28.869 Error CrashHandler.cpp:286: Exception Code: c0000005, Address: 0x00007ff6fa2e358d
ModuleBase: 0x00007ff6f9e80000, ImageSize: 012fe000, RelativeAddress: 0046358d
  28.869 Error CrashHandler.cpp:292: Access Violation: Read at address 0000000000000161
  28.869 Error CrashHandler.cpp:308: Exception Context:
rax=000001cf4bf8bb10, rbx=000001cf2b21c130, rcx=0000000000000000,
rdx=000001cf359b52c0, rsi=0000000000000001, rdi=000001cf4c9b7930,
rip=00007ff6fa2e358d, rsp=0000008ed095d9f0, rbp=000001cf4c9b7930,
 r8=0000000000000000,  r9=00007ff6f9e80000, r10=000001cf20588fcc,
r11=0000008ed095da20, r12=00007ff6facfa900, r13=000001cf4e8b9ba0,
r14=000001cf25a70070, r15=000001cf4c9b7930
  28.869 Crashed in C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff6f9e80000 - 0x00007ff6fb17e000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-e4iwr4\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-e4iwr4\src\util\logger.cpp (371): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-e4iwr4\src\util\logger.cpp (470): Logger::logStacktrace
c:\cygwin64\tmp\factorio-e4iwr4\src\util\crashhandler.cpp (127): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-e4iwr4\src\util\crashhandler.cpp (334): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD56E394F0)
00007FFD56E394F0 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A4B8508)
00007FFD5A4B8508 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A4A0F86)
00007FFD5A4A0F86 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A4B4C6D)
00007FFD5A4B4C6D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A42D1D8)
00007FFD5A42D1D8 (ntdll): (filename not available): RtlWalkFrameChain
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A4B3B9E)
00007FFD5A4B3B9E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-e4iwr4\src\map\decorative.cpp (38): Decorative::load
c:\cygwin64\tmp\factorio-e4iwr4\src\map\mapdeserialiser.hpp (162): MapDeserialiser::Loader<std::vector<Decorative,std::allocator<Decorative> >,void>::load
c:\cygwin64\tmp\factorio-e4iwr4\src\surface\chunk.cpp (473): Chunk::load
c:\cygwin64\tmp\factorio-e4iwr4\src\surface\surface.cpp (658): Surface::load
c:\cygwin64\tmp\factorio-e4iwr4\src\map\map.cpp (563): Map::loadData
c:\cygwin64\tmp\factorio-e4iwr4\src\map\map.cpp (273): Map::load
c:\cygwin64\tmp\factorio-e4iwr4\src\scenario\scenario.cpp (142): Scenario::loadFactory
c:\cygwin64\tmp\factorio-e4iwr4\src\scenario\parallelscenarioloader.cpp (125): ParallelScenarioLoader::doLoad
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\thr\xthread (232): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl*)(ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool),ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool>,std::default_delete<std::tuple<void (__cdecl*)(ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool),ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\thr\xthread (211): 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: 00007FFD57F61FE4)
00007FFD57F61FE4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD5A47EFB1)
00007FFD5A47EFB1 (ntdll): (filename not available): RtlUserThreadStart
  31.167 Error Util.cpp:67: 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.
  59.388 Creating crash dump.
  59.764 CrashDump success

posila
Factorio Staff
Factorio Staff
Posts: 5040
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Crash while autosave and loading earlier saves

Post by posila »

Can you upload the broken save, and also the one that works in 0.16.19, please? Thanks

VictorBarth
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 29, 2018 10:55 pm
Contact:

Re: Crash while autosave and loading earlier saves

Post by VictorBarth »

Should i send the other broken save?
Attachments
_autosave3.zip
This is the broken one
(10.93 MiB) Downloaded 103 times
jogo8.zip
This one Works in 0.16.19
(10.86 MiB) Downloaded 114 times

posila
Factorio Staff
Factorio Staff
Posts: 5040
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Crash while autosave and loading earlier saves

Post by posila »

Thanks for the report.
Two entities were saved with wrong ID (0 instead of 195 which is iron-ore in this save). We think this kind of corruption is caused by random HW glitch or cosmic rays flipping bits in memory.

I fixed the newer save.
Attachments
57299_autosave3_fixed.zip
(10.03 MiB) Downloaded 104 times

VictorBarth
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 29, 2018 10:55 pm
Contact:

Re: Crash while autosave and loading earlier saves

Post by VictorBarth »

Factorio has the best community and the best devs
thank you kindly
to think you would fix the save for me
wish I could buy the game again just to help you guys!

myricaulus
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Mon May 08, 2017 3:33 pm
Contact:

Re: Crash while autosave and loading earlier saves

Post by myricaulus »

Consider buying some merchandise in the store ;)

Post Reply

Return to “1 / 0 magic”