[0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Sat Sep 03, 2016 10:13 am
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave
Posted: Sat Sep 03, 2016 10:19 am
by Loewchen
Please upload the log-file, see my signature for details.
Re: [0.13.20] [Win10/Steam] Crash on autosave
Posted: Sat Sep 03, 2016 11:08 am
by postolka
Loewchen wrote:Please upload the log-file, see my signature for details.
Yeap, sorry, forgot.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Wed Sep 14, 2016 11:44 am
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Fri Sep 23, 2016 8:30 pm
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.
0.002 2016-09-23 20:51:54; Factorio 0.14.9 (build 24809, linux32, alpha)
0.225 Operating system: Linux (LinuxMint 18)
0.225 Program arguments: "/home/peter/Games/factorio/bin/i386/factorio"
0.225 Read data path: /home/peter/Games/factorio/data
0.225 Write data path: /home/peter/Games/factorio
0.225 Binaries path: /home/peter/Games/factorio/bin
0.243 System info: [CPU: AMD Athlon(tm) 7750 Dual-Core Processor, 2 cores, RAM: 2013MB]
0.247 Display options: [FullScreen: true] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
0.268 Available display adapters: 1
0.268 [0]: resolution 1920x1080px at [0,0]
0.268 Create display on adapter 0. Size 1280x720 at position [310, 162].
0.871 Initialised OpenGL:[0] GeForce GT 730/PCIe/SSE2/3DNOW!; driver: 4.5.0 NVIDIA 361.42
0.871 Video memory size (dedicated/total available/current available): 2048/2048/1921 MB
0.969 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [DXT: false]
1.125 Loading mod core 0.0.0 (data.lua)
1.141 Loading mod base 0.14.9 (data.lua)
1.360 Checksum for core: 1620335853
1.360 Checksum for mod base: 1378211439
1.941 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1474659874
1.941 Info PlayerData.cpp:52: Cloud player-data.json unavailable
2.189 Initial atlas bitmap size is 16384
2.243 Created atlas bitmap 16384x5589
2.246 Created atlas bitmap 4096x968
2.254 Created atlas bitmap 4096x3644
23.796 Sprites loaded
23.796 Convert atlas 4096x968 to: trilinear-filtering
23.924 Convert atlas 4096x3644 to: mipmap
24.377 Loading sounds...
27.341 Custom inputs active: 0
27.343 Info Updater.cpp:749: Downloading https://updater.factorio.com/get-available-versions?username=peter%40lapinskas.com&token=<private>&apiVersion=2
28.085 0 packages available to download (experimental updates enabled).
28.166 Factorio initialised
40.932 Loading map /home/peter/Games/factorio/saves/_autosave1.zip
41.039 Info Scenario.cpp:152: Map version 0.14.8-1
56.897 Checksum for script /home/peter/Games/factorio/temp/currently-playing/control.lua: 900459546
150.432 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
153.695 Warning Logger.cpp:364: Symbols.size() == 20, usedSize == 15
#0 0x8546620 in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-UVSEqm/src/Util/Logger.cpp:386
#1 0x8488347 in CrashHandler::writeStackTrace() at /tmp/factorio-UVSEqm/src/Util/CrashHandler.cpp:105
#2 0x848855f in CrashHandler::SignalHandler(int) at /tmp/factorio-UVSEqm/src/Util/CrashHandler.cpp:235
#3 0xb770cc14 in ?? at ??:0
#4 0x895d168 in al_draw_halved_bitmap_hq at /tmp/factorio-UVSEqm/libraries/Allegro/src/bitmap_draw.c:349
#5 0x83ccb1e in RenderUtil::takeScreenshot(Sprite&, Surface&, RealPosition const&, RealPosition const&, double, unsigned char, Player*, bool, bool, bool, bool) [clone .constprop.76250] at /tmp/factorio-UVSEqm/src/Graphics/RenderUtil.cpp:451
#6 0x83ccd7c in boost::filesystem::path::path(boost::filesystem::path const&) at /home/build/build_environment/boost_1_61_0/output_linux32/include/boost/filesystem/path.hpp:133
#7 0x83cd078 in PackageWriterPath::PackageWriterPath(boost::filesystem::path const&) at /tmp/factorio-UVSEqm/src/Package/PackageWriterPath.cpp:32
#8 0x8799ffd in savePreviewPicture at /tmp/factorio-UVSEqm/src/Scenario/Scenario.cpp:519
#9 0x88282a8 in ParallelScenarioSaver::ParallelScenarioSaver(std::function<void ()>, Scenario*, boost::filesystem::path const&, std::string const&, bool, SaveType, bool) at /tmp/factorio-UVSEqm/src/Scenario/ParallelScenarioSaver.cpp:60
#10 0x882bd49 in save at /tmp/factorio-UVSEqm/src/Scenario/ParallelScenarioSaver.cpp:25
#11 0x8835d6e in InSavingGameBox::InSavingGameBox(boost::filesystem::path const&, std::string const&, InfoBoxPosition const&, bool, bool, bool) at /tmp/factorio-UVSEqm/src/AppManagerStates.cpp:1159
#12 0x88a04df in InSaveGameAsDialog::process(AppManager*) at /tmp/factorio-UVSEqm/src/AppManagerStates.cpp:1137 (discriminator 3)
#13 0xb71b2637 in AppManager::process() at /tmp/factorio-UVSEqm/src/AppManager.cpp:187
#14 0x804f9a1 in prePrepare at /tmp/factorio-UVSEqm/src/MainLoop.cpp:259
155.460 Warning Logger.cpp:364: Symbols.size() == 19, usedSize == 14
155.460 Error CrashHandler.cpp:106: Map tick at moment of crash: 19175138
155.469 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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Fri Sep 23, 2016 8:57 pm
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Sat Sep 24, 2016 8:07 pm
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Tue Sep 27, 2016 7:28 pm
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).
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Tue Sep 27, 2016 8:02 pm
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Thu Sep 29, 2016 10:09 pm
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?
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Fri Sep 30, 2016 11:59 am
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.
Re: [0.13.20] [Win10/Steam] Crash on autosave: "(113): Chunk::preSaveHook"
Posted: Fri Sep 30, 2016 7:36 pm
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.