Page 1 of 1

[0.17.64] Crash while autosaving: Chunk::preSaveHook

Posted: Tue Aug 13, 2019 2:47 pm
by giantmechahamham

Code: Select all

0.000 2019-08-13 09:03:56; Factorio 0.17.64 (build 46786, linux64, alpha)
   0.053 Operating system: Linux (LinuxMint 19.2)
   0.053 Program arguments: "/opt/factorio/bin/x64/factorio" 
   0.053 Read data path: /opt/factorio/data
   0.053 Write data path: /opt/factorio [185055/222628MB]
   0.053 Binaries path: /opt/factorio/bin
   0.067 System info: [CPU: AMD FX(tm)-6300 Six-Core Processor, 6 cores, RAM: 16019 MB]
   0.067 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=cinnamon XDG_SESSION_DESKTOP=cinnamon XDG_CURRENT_DESKTOP=X-Cinnamon __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.067 Display options: [FullScreen: 1] [VSync: 1] [UIScale: custom (100.0%)] [Native DPI: 1] [Screen: 255] [Special: 0000] [Lang: en]
   0.241 Available displays: 1
   0.241  [0]: E2041 20" - {[0,0], 1600x900, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.406 Initialised OpenGL:[0] GeForce GT 740/PCIe/SSE2; driver: 3.3.0 NVIDIA 430.26
   0.406   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
   0.406   [Version] 3.3
   0.440 Graphics settings preset: high
   0.440   Dedicated video memory size 2048 MB
   0.440 Graphics options: [Graphics quality: high] [Video memory usage: high] [Light scale: 25%] [DXT: high-quality]
   0.440                   [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 1] [Rotation quality: low] [Color: 32bit]
   0.568 Loading mod core 0.0.0 (data.lua)
   0.701 Loading mod base 0.17.64 (data.lua)
   0.987 Loading mod base 0.17.64 (data-updates.lua)
   1.143 Checksum for core: 2403267992
   1.143 Checksum of base: 657780246
   1.473 Loading sounds...
   1.507 Info PlayerData.cpp:67: Local player-data.json available, timestamp 1565705035
   1.507 Info PlayerData.cpp:74: Cloud player-data.json unavailable
   1.636 Crop bitmaps.
   2.311 Parallel Sprite Loader initialized (threads: 5)
  19.218 Initial atlas bitmap size is 16384
  19.249 Created atlas bitmap 16384x16384 [none]
  19.250 Created atlas bitmap 16384x4168 [none]
  19.250 Created atlas bitmap 8192x3892 [decal]
  19.250 Created atlas bitmap 16384x4320 [low-object]
  19.250 Created atlas bitmap 8192x3744 [mipmap, linear-minification, linear-magnification, linear-mip-level]
  19.251 Created atlas bitmap 16384x6880 [terrain, mipmap, linear-minification, linear-mip-level]
  19.252 Created atlas bitmap 4096x1600 [smoke, mipmap, linear-minification, linear-magnification]
  19.252 Created atlas bitmap 4096x1744 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
  19.252 Created atlas bitmap 2048x192 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
  19.252 Created atlas bitmap 8192x1496 [alpha-mask]
  19.254 Created atlas bitmap 16384x11408 [shadow, linear-magnification, alpha-mask]
  19.254 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
  19.313 Created virtual atlas pages 4096x4096x5
  19.330 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  20.033 Parallel Sprite Loader initialized (threads: 5)
  37.859 Sprites loaded
  39.664 Generated mipmaps (4) for atlas [3] of size 16384x4320   <total: 940.66, render: 0.70, convert: 0.93, copy: 0.08>
  39.692 Generated mipmaps (3) for atlas [4] of size 8192x3744   
  41.253 Generated mipmaps (3) for atlas [5] of size 16384x6880   <total: 1560.81, render: 0.11, convert: 0.27, copy: 0.02>
  41.348 Generated mipmaps (3) for atlas [6] of size 4096x1600   
  41.367 Generated mipmaps (5) for atlas [7] of size 4096x1744   
  41.373 Generated mipmaps (3) for atlas [11] of size 8192x2352   
  41.388 Custom mipmaps uploaded.
  41.555 Generated mipmaps for virtual atlas of size 8192x12288
  41.834 Factorio initialised
  41.957 Info HttpSharedState.cpp:54: Downloading https://updater.factorio.com/updater/get-available-versions?username=cjones.web&token=<private>&apiVersion=2
  43.631 0 packages available to download (experimental updates enabled).
  50.228 Loading map /opt/factorio/saves/Factory 1.zip: 4517361 bytes.
  50.251 Loading level.dat: 8261720 bytes.
  50.261 Info Scenario.cpp:187: Map version 0.17.60-2
  50.564 Loading script.dat: 328 bytes.
  50.567 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 1536042075
  50.568 Applying migration: Base Mod: 2019-08-05_Factorio_0.17.63.lua
  50.599 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 72150939
 183.953 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
 184.566 Info AppManagerStates.cpp:1769: Saving finished
 484.560 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
 485.090 Info AppManagerStates.cpp:1769: Saving finished
 785.066 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
 785.650 Info AppManagerStates.cpp:1769: Saving finished
1093.207 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
1093.806 Info AppManagerStates.cpp:1769: Saving finished
1406.796 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
1407.395 Info AppManagerStates.cpp:1769: Saving finished
1707.370 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
1707.905 Info AppManagerStates.cpp:1769: Saving finished
2007.883 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
2008.445 Info AppManagerStates.cpp:1769: Saving finished
2308.969 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
2309.363 Error CrashHandler.cpp:603: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
Raw stacktrace: 0xb2fe48, 0xcfe5ad, 0xbbf60d, 0xbbf978, 0xbbf9d9, 0x3ef20, 0xbf3253, 0xbf352f, 0xcf0291, 0xcf15ec, 0xe45d53, 0xf1c1f4, 0x19642ef, 0x76db, 0
2316.258 Warning Logger.cpp:518: Symbols.size() == 19, usedSize == 14
#0  0x0000000000cfe5ad in std::__uniq_ptr_impl<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::_M_ptr() const at /usr/include/c++/8/bits/unique_ptr.h:150
#1  0x0000000000bbf60d in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::get() const at /usr/include/c++/8/bits/unique_ptr.h:343
#2  0x0000000000bbf978 in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::operator->() const at /usr/include/c++/8/bits/unique_ptr.h:337
#3  0x0000000000bbf9d9 in Logger::flush() at /tmp/factorio-build-SUjZLz/src/Util/Logger.cpp:558
#4  0x000000000003ef20 in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-build-SUjZLz/src/Util/Logger.cpp:544
#5  0x0000000000bf3253 in GlobalContext::getMap() at /tmp/factorio-build-SUjZLz/src/GlobalContext.cpp:1839
#6  0x0000000000bf352f in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-build-SUjZLz/src/Util/CrashHandler.cpp:188
#7  0x0000000000cf0291 in CrashHandler::commonSignalHandler(int) at /tmp/factorio-build-SUjZLz/src/Util/CrashHandler.cpp:606
#8  0x0000000000cf15ec in CrashHandler::SignalHandler(int) at /tmp/factorio-build-SUjZLz/src/Util/CrashHandler.cpp:620
#9  0x0000000000e45d53 in ?? at ??:0
#10 0x0000000000f1c1f4 in Chunk::preSaveHook(MapSerialiser&) at /tmp/factorio-build-SUjZLz/src/Surface/Chunk.cpp:173
#11 0x00000000019642ef in Surface::preSaveHook(MapSerialiser&) at /tmp/factorio-build-SUjZLz/src/Surface/Surface.cpp:788
#12 0x00000000000076db in Map::save(MapSerialiser&, ProgressObserver*) const at /tmp/factorio-build-SUjZLz/src/Map/Map.cpp:1342
#13 (nil) in Scenario::saveMap(SaveType, PackageWriter&, TargetSerialiser&, ProgressObserver*, bool&) at /tmp/factorio-build-SUjZLz/src/Scenario/Scenario.cpp:1000
#14 (nil) in Scenario::saveAs(Filesystem::Path const&, std::string const&, Filesystem::Path const&, ProgressObserver*, SaveType) at /tmp/factorio-build-SUjZLz/src/Scenario/Scenario.cpp:887
#15 0x000000000000007d in ParallelScenarioSaver::doSave(ParallelScenarioSaver*) at /tmp/factorio-build-SUjZLz/src/Scenario/ParallelScenarioSaver.cpp:99
#16 0x0000000000568af6 in execute_native_thread_routine at blake2s.c:?
#17 (nil) in ?? at ??:0
#18 0x0000000000545af0 in ?? at ??:0
Stack trace logging done
2323.106 Warning Logger.cpp:518: Symbols.size() == 14, usedSize == 13
2323.106 Error CrashHandler.cpp:189: Map tick at moment of crash: 648001
2323.106 Error Util.cpp:97: 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.
2342.790 Info SystemUtil.cpp:538: Started /usr/bin/xdg-open; trampoline PID: 1199
2342.790 Uploading log file
2342.821 Info SystemUtil.cpp:538: Started /opt/factorio/bin/x64/factorio; trampoline PID: 1200

Please let me know if I can provide any more information.

Re: [0.17.64] Crash while autosaving: Chunk::preSaveHook

Posted: Tue Aug 13, 2019 4:15 pm
by Loewchen
Was this a one time thing or does it always crash?

Re: [0.17.64] Crash while autosaving: Chunk::preSaveHook

Posted: Tue Aug 13, 2019 8:17 pm
by giantmechahamham
I have never had factorio crash for me before, period. This happened immediately after upgrading to 0.17.64 using the automatic update. I think it autosaved once or twice successfully and then crashed during the autosave 'stutter'.

-- Edit --

I attempted to reopen the last autosave and Factorio refused to load it. However the second-to-last autosave loaded and I've been playing on it for about an hour with no issue.

Re: [0.17.64] Crash while autosaving: Chunk::preSaveHook

Posted: Wed Aug 14, 2019 1:02 am
by Rseding91
Looking at the place it crashed in, that only way I know of for that to happen is due to memory corruption. Can you try running some kind of memory test on your computer and see if it shows anything?

Without some way to reproduce the crash on my end there's nothing I can do about this.

Re: [0.17.64] Crash while autosaving: Chunk::preSaveHook

Posted: Wed Aug 14, 2019 2:18 am
by giantmechahamham
Sure. I'll run memtest and see if anything turns up. I'll attach any results to this post.