Page 1 of 1

[0.12.21] crash when loading corrupted save game

Posted: Wed Jan 06, 2016 3:47 pm
by prg
Factorio crashes when loading the corrupted save game mentioned in https://forums.factorio.com/forum/viewtop ... 49&t=18713.

Code: Select all

   0.000 2016-01-06 16:17:54; Factorio 0.12.21 (Build 17548, linux64)
   0.000 Operating system: Linux
   0.000 Program arguments: "./factorio" "--load-game" "SV1" 
   0.000 Read data path: /home/prg/Downloads/factorio/data
   0.000 Write data path: /home/prg/Downloads/factorio
   0.000 Binaries path: /home/prg/Downloads/factorio/bin
   0.034 Available display adapters: 2
   0.034  [0]: resolution 1280x1024px at [0,0]
   0.034  [1]: resolution 1024x768px at [1280,0]
   0.034 Create display on adapter 1. Size 1280x720 at position [0, 134]. Monitor 0
   0.100 Initialised OpenGL:[1] GeForce GTX 660/PCIe/SSE2; driver: 4.5.0 NVIDIA 358.16
   0.123 Graphics options: [FullScreen: false] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [Screen: 255]
   0.145 Loading mod core 0.0.0 (data.lua)
   0.147 Loading mod base 0.12.21 (data.lua)
   0.415 Initial atlas bitmap size is 16384
   0.418 Created atlas bitmap 16384x7759
   5.803 Factorio initialised
   5.804 Loading map /home/prg/Downloads/factorio/saves/SV1.zip
   5.813 Info Scenario.cpp:123: Map version 0.12.20-1
   6.337 Warning Logger.cpp:316: Symbols.size() == 15, usedSize == 9
Factorio crashed. Generating symbolized stacktrace, please wait ...
   6.715 Warning Logger.cpp:316: Symbols.size() == 14, usedSize == 8
#0  0x7f80a3b55440 in ?? at ??:0
#1  0x7c7ba8 in Chunk::load(MapDeserialiser&, Surface&) at /tmp/factorio-vptwVf/src/Map/Tile.cpp:233
#2  0x947c26 in load at /tmp/factorio-vptwVf/src/Surface/Chunk.cpp:287
#3  0x9f0e1c in Map::Map(MapDeserialiser&, ProgressObserver*, bool) at /tmp/factorio-vptwVf/src/Surface/Surface.cpp:497
#4  0x9f24ea in Map::Map(MapDeserialiser&, ProgressObserver*, bool) at /tmp/factorio-vptwVf/src/Map/Map.cpp:491
#5  0xd41d3f in Version::Version() at /tmp/factorio-vptwVf/src/Info/Version.hpp:14
#6  0x7f80a573e324 in ApplicationVersion::ApplicationVersion() at /tmp/factorio-vptwVf/src/Info/ApplicationVersion.hpp:8
#7  0x7f80a3c0a1cd in std::pair<ApplicationVersion, ApplicationVersion>::pair() at /usr/include/c++/5/bits/stl_pair.h:109
   6.715 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Segmentation fault (core dumped)

Re: [0.12.21] crash when loading corrupted save game

Posted: Wed Jan 06, 2016 4:05 pm
by kovarex
Well, if the save is corrupted, Factorio can't load it.

Re: [0.12.21] crash when loading corrupted save game

Posted: Wed Jan 06, 2016 4:17 pm
by prg
kovarex wrote:Well, if the save is corrupted, Factorio can't load it.
Right, but it still must not segfault because of it.

Re: [0.12.21] crash when loading corrupted save game

Posted: Fri Jan 08, 2016 4:07 pm
by kovarex
We don't aim to make it that corrupt saves never crash Factorio. It is too much work not worth it.