[0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
postolka
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Oct 17, 2015 7:09 am
Contact:

[0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by postolka »

Hi,
Factorio just crashed during autosave :/. I played without any mods and wasn't doing anything unusual (walking, maybe building...).
Win10 is 64bit version with anniversary update.
Attachments
factorio-previous.log
Log
(6.43 KiB) Downloaded 114 times
_autosave1.tmp.zip
Current save attempt (crashed during this one, probably)
(1.26 MiB) Downloaded 111 times
_autosave3.zip
Previous save
(10.61 MiB) Downloaded 115 times
Last edited by postolka on Sat Sep 03, 2016 11:07 am, edited 1 time in total.

Loewchen
Global Moderator
Global Moderator
Posts: 8417
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave

Post by Loewchen »

Please upload the log-file, see my signature for details.

postolka
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Oct 17, 2015 7:09 am
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave

Post by postolka »

Loewchen wrote:Please upload the log-file, see my signature for details.
Yeap, sorry, forgot.

Loewchen
Global Moderator
Global Moderator
Posts: 8417
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by Loewchen »

Code: Select all

   0.001 2016-09-03 09:08:33; Factorio 0.13.20 (build 24011, win64, steam)
   0.001 Operating system: Windows 10 
   0.001 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/postolka/AppData/Roaming/Factorio
   0.001 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.020 Graphics options: [FullScreen: true] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [Screen: 255] [DXT: false]
   0.021 Available display adapters: 1
   0.021  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4600 {0x05, [0,0], 1920x1200, 32bit, 59Hz}
   0.021 Create display on adapter 0. Size 1280x720 at position [310, 222].
   0.890 Initialised Direct3D:[0] NVIDIA GeForce GTX 960M; driver: C:\WINDOWS\System32\DriverStore\FileRepository\nvlti.inf_amd64_9b4e3505ba1121d8\nvd3dumx.dll 21.21.13.7270
   0.893     Video memory size (dedicated video/dedicated system/shared system/available): 4064/0/6100/4087 MB
   0.919 Desktop composition is active.
   1.012 Loading mod core 0.0.0 (data.lua)
   1.031 Loading mod base 0.13.20 (data.lua)
   1.373 Checksum for core: 303426634
   1.373 Checksum for mod base: 1460151764
   1.692 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1472410999
   1.692 Info PlayerData.cpp:50: Cloud player-data.json available, timestamp 1470339601
  12.117 Initial atlas bitmap size is 16384
  12.119 Created atlas bitmap 16384x5589
  12.391 Created atlas bitmap 4096x968
  12.404 Created atlas bitmap 4096x3652
  21.079 Sprites loaded
  21.079 Convert atlas 4096x968 to: trilinear-filtering 
  21.103 Convert atlas 4096x3652 to: mipmap 
  21.467 Loading sounds...
  23.951 Custom inputs active: 0
  24.010 Factorio initialised
  46.863 Loading map C:\Users\postolka\AppData\Roaming\Factorio\saves\SpeedSci2.zip
  47.002 Info Scenario.cpp:127: Map version 0.13.19-0
  47.872 Checksum for script C:/Users/postolka/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
 992.161 Loading map C:\Users\postolka\AppData\Roaming\Factorio\saves\_autosave3.zip
 992.233 Info Scenario.cpp:127: Map version 0.13.20-0
 993.124 Checksum for script C:/Users/postolka/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
5551.588 Loading map C:\Users\postolka\AppData\Roaming\Factorio\saves\_autosave2.zip
5551.660 Info Scenario.cpp:127: Map version 0.13.20-0
5552.636 Checksum for script C:/Users/postolka/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
5633.904 Loading map C:\Users\postolka\AppData\Roaming\Factorio\saves\_autosave2.zip
5633.964 Info Scenario.cpp:127: Map version 0.13.20-0
5634.956 Checksum for script C:/Users/postolka/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
8127.429 Loading map C:\Users\postolka\AppData\Roaming\Factorio\saves\_autosave3.zip
8127.505 Info Scenario.cpp:127: Map version 0.13.20-0
8128.506 Checksum for script C:/Users/postolka/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
10139.962 Error CrashHandler.cpp:135: Exception Code: c0000005, Address: 00007FF6B09BFDF4
ModuleBase: 00007FF6B08A0000, ImageSize: 01108000, RelativeAddress: 0011fdf4
10139.962 Error CrashHandler.cpp:145: Exception Context:
rax=0000000000000003, rbx=000001c9a49d8690, rcx=000001ca0154a300,
rdx=000000a66e7ff2c0, rsi=0001c37dfffde078, rdi=000001c9f96cd7e8,
rip=00007ff6b09bfdf4, rsp=000000a66e7ff250, rbp=000000a66e7ff540,
 r8=0000000000000000,  r9=0000000000000024, r10=000001ca04390010,
r11=0000000000000000, r12=0000000000000010, r13=0000000000001000,
r14=000001c9a49d96c8, r15=000000000000000f
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 (155): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD27355E77)
00007FFD27355E77 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A38DA9B)
00007FFD2A38DA9B (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A375946)
00007FFD2A375946 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A38991D)
00007FFD2A38991D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A3286D3)
00007FFD2A3286D3 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A388A3A)
00007FFD2A388A3A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-ohddg8\src\surface\chunk.cpp (113): Chunk::preSaveHook
c:\cygwin64\tmp\factorio-ohddg8\src\surface\surface.cpp (510): Surface::preSaveHook
c:\cygwin64\tmp\factorio-ohddg8\src\map\map.cpp (1031): Map::save
c:\cygwin64\tmp\factorio-ohddg8\src\scenario\scenario.cpp (583): Scenario::saveAs
c:\cygwin64\tmp\factorio-ohddg8\src\scenario\parallelscenariosaver.cpp (68): ParallelScenarioSaver::doSave
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6B12BA803)
00007FF6B12BA803 (Factorio): (filename not available): boost::thread::start_thread_noexcept
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD28498364)
00007FFD28498364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFD2A345E91)
00007FFD2A345E91 (ntdll): (filename not available): RtlUserThreadStart
10141.704 Error CrashHandler.cpp:106: Map tick at moment of crash: 734401
10141.704 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by kovarex »

Did it crash more than one once with this error? As I don't have any other reports of this, it looks like random 1/0 magic.

LuckyBadger
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Sep 23, 2016 8:15 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by LuckyBadger »

I also have this problem, with Factorio crashing about 50% of the time on saves. This happens on both autosaves and manual saves. I only started to encountered this after the last release (0.14.8). I am running linux MInt Sarah, 32 bit. I have not installed any mods.

Here is my log file and I am attaching the last autosave before the crash.

Thanks - I love this game!
Log file
Attachments
_autosave1.zip
The last autosave file before the crash
(49.55 MiB) Downloaded 104 times

Loewchen
Global Moderator
Global Moderator
Posts: 8417
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by Loewchen »

LuckyBadger wrote:I also have this problem, with Factorio crashing about 50% of the time on saves. This happens on both autosaves and manual saves. I only started to encountered this after the last release (0.14.8). I am running linux MInt Sarah, 32 bit. I have not installed any mods.

Here is my log file and I am attaching the last autosave before the crash.

Thanks - I love this game!
I can not see how this is supposed to be related, I would guess you have not enough memory to run the game and save it.

LuckyBadger
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Sep 23, 2016 8:15 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by LuckyBadger »

It's related in that the game crashes when it tries to save, the same problem that the o/p reported. The responders noted that no one else had reported the problem so I thought that this would be a logical place to post. I have no idea whether the root cause is the same - I just play the game, I didn't write it. If you feel that the post should be in a different thread or section, feel free to move it.

If insufficient memory is the cause then it must be because, the memory requirements have increased, as it worked perfectly on this machine prior to 0.14.8.

KibbeZero
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Sep 27, 2016 7:22 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by KibbeZero »

I ran into this problem starting today. I've played 8 hours on this map without problems until today. The log and save files are attached. I have no mods installed.

EDIT:I was able to work around this issue by deleting "_autosave_3.tmp.zip" and "_autosave_3.zip". Since I deleted them at the same time I do not know which deletion fixed the issue.

EDIT 2: I ran into the problem again, and found out I could get around the issue by simply NOT DOING ANYTHING when the autosave was saving. In previous failures I was actively cutting down a tree (I have a really big forest to clear).
Attachments
_autosave2.zip
Previous Successful AutoSave
(7.5 MiB) Downloaded 95 times
_autosave3.tmp.zip
Corrupted Save
(1.61 MiB) Downloaded 105 times
factorio-current.log
Log of session where error occured
(5.34 KiB) Downloaded 100 times

Loewchen
Global Moderator
Global Moderator
Posts: 8417
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by Loewchen »

KibbeZero wrote:I ran into this problem starting today. I've played 8 hours on this map without problems until today. The log and save files are attached. I have no mods installed.

EDIT:I was able to work around this issue by deleting "_autosave_3.tmp.zip" and "_autosave_3.zip". Since I deleted them at the same time I do not know which deletion fixed the issue.

EDIT 2: I ran into the problem again, and found out I could get around the issue by simply NOT DOING ANYTHING when the autosave was saving. In previous failures I was actively cutting down a tree (I have a really big forest to clear).
That is quite interesting.
Can you reliably produce the crash? If so please describe the procedure as exact as possible and base it on a savegame that you have provided or can provide additionally.
Thank you.

LuckyBadger
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Sep 23, 2016 8:15 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by LuckyBadger »

I have solved my problem too. Increasing memory from 2 GB to 4 GB did the trick.

I note that the minimum requirements for Factorio are stated as 2 GB. Maybe time to revise that?

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by kovarex »

LuckyBadger wrote:I have solved my problem too. Increasing memory from 2 GB to 4 GB did the trick.

I note that the minimum requirements for Factorio are stated as 2 GB. Maybe time to revise that?
That is the minimum to run the game on a small map, for any amount of memory, you can make map that is too big to hold it, but yes, we could increase it to 4GB.

LuckyBadger
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Sep 23, 2016 8:15 pm
Contact:

Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"

Post by LuckyBadger »

In that case, may I suggest just adding a note that 2 GB is only adequate for small maps? (As opposed to increasing the minimum to 4 GB.) That way, you don't cut yourself off from potential customers with older machines. But give them a reason to upgrade later :)

Edit: Lack of memory may also explain the random crashes I get when playing on Windows XP, so maybe add a note for those users too.

Post Reply

Return to “Pending”