[1.1.107] Loading saves crashes with targetFluidBox->connections.size() was not true

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
feofeujo32m3r
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Apr 05, 2023 12:26 pm
Contact:

[1.1.107] Loading saves crashes with targetFluidBox->connections.size() was not true

Post by feofeujo32m3r »

My recent save games were not loading anymore. My game would crash almost immediately on hitting load on any of those saves with this stack trace:

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-ZPkTbZ/src/Util/Logger.cpp (336): Logger::writeStacktrace(FileWriteStream*, StackTraceInfo*)
/tmp/factorio-build-ZPkTbZ/src/Util/Logger.cpp (346): Logger::logStacktrace(StackTraceInfo*)
/tmp/factorio-build-ZPkTbZ/src/Util/Logging.cpp (101): Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [clone .constprop.0]
/tmp/factorio-build-ZPkTbZ/src/Util/Logging.cpp (93): Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, char const*, ...) [clone .constprop.0]
/tmp/factorio-build-ZPkTbZ/src/Fluid/FluidManager.cpp (474): FluidManager::setupConnections()
/tmp/factorio-build-ZPkTbZ/src/Fluid/FluidManager.cpp (40): FluidManager::load(MapDeserialiser&)
/tmp/factorio-build-ZPkTbZ/src/Map/Map.cpp (519): Map::loadData(MapDeserialiser&, GlobalModSettings const&, ProgressObserver*)
/tmp/factorio-build-ZPkTbZ/src/Map/Map.cpp (314): Map::load(MapInterface, MapDeserialiser&, GlobalModSettings const&, ProgressObserver*) [clone .isra.0]
/tmp/factorio-build-ZPkTbZ/src/Scenario/Scenario.cpp (258): Scenario::loadFactory(MapInterface, Filesystem::Path const*, Filesystem::Path const&, ScenarioExecutionContext, LoadType, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, ProgressObserver*, bool, InputListener*) [clone .constprop.1]
/tmp/factorio-build-ZPkTbZ/src/Scenario/ParallelScenarioLoader.cpp (172): ParallelScenarioLoader::doLoad(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>)
/opt/gcc-13.2.0/include/c++/13.2.0/bits/invoke.h (61): void std::__invoke_impl<void, void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum>(std::__invoke_other, void (*&&)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface&&, ParallelScenarioLoader*&&, MapDeserialiser*&&, InputType&&, InputHandler*&&, MultiplayerManagerBase*&&, NamedBool<EnableReplayTag>::Enum&&)
/opt/gcc-13.2.0/include/c++/13.2.0/bits/invoke.h (96): std::__invoke_result<void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum>::type std::__invoke<void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum>(void (*&&)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface&&, ParallelScenarioLoader*&&, MapDeserialiser*&&, InputType&&, InputHandler*&&, MultiplayerManagerBase*&&, NamedBool<EnableReplayTag>::Enum&&)
/opt/gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h (292): void std::thread::_Invoker<std::tuple<void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum> >::_M_invoke<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul>)
/opt/gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h (299): std::thread::_Invoker<std::tuple<void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum> >::operator()()
/opt/gcc-13.2.0/include/c++/13.2.0/bits/std_thread.h (244): std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>), MapInterface, ParallelScenarioLoader*, MapDeserialiser*, InputType, InputHandler*, MultiplayerManagerBase*, NamedBool<EnableReplayTag>::Enum> > >::_M_run()
/tmp/tmp.AizlpDmMs1/objdir/../gcc-13.2.0/libstdc++-v3/src/c++11/thread.cc (104): execute_native_thread_routine
0x7fd19d74edec
0x7fd19d7d20db
0xffffffffffffffff
Stack trace logging done
 136.749 Error FluidManager.cpp:474: connectionRecord.otherConnectionIndex < targetFluidBox->connections.size() was not true
 136.749 Error CrashHandler.cpp:641: Received 6
Logger::writeStacktrace skipped.

Since it hinted at something fluid related and Pipe Visualizer was the most recent fluid related mod I added, I tried removing the mod and then got different results:
  • my 3 autosaves all showed an ingame error message after loading for a while.

    Image

    Log excerpt from loading error

    Code: Select all

           25603.459 Loading map /home/maritz/.factorio/saves/_autosave2 (pipe vis crash).zip: 196774595 bytes.
           25603.496 Loading level.dat: 667273037 bytes.
           25603.504 Info Scenario.cpp:204: Map version 1.1.107-0
           25613.325 Warning Map.cpp:337: Map loading failed: Invalid bool loaded from input file. File could be corrupted.
           25614.357 Error AppManagerStates.cpp:1659: Invalid bool loaded from input file. File could be corrupted.
  • my most recent manual save (from 40 minutes before latest autosave) worked again (yey!)

Factorio: 1.1.107
Pipe Visualizer: 2.2.1
OS: Linux

Save file (187mb and link expires in 7 days. can reupload if needed afterwards)


(Continued from the github issue of the mod as per raiguard: https://github.com/raiguard/PipeVisualizer/issues/36)
Attachments
factorio-previous_crash.log
(322.33 KiB) Downloaded 13 times
Last edited by feofeujo32m3r on Mon Jun 17, 2024 11:34 pm, edited 2 times in total.

feofeujo32m3r
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Apr 05, 2023 12:26 pm
Contact:

Re: [1.1.107] Loading saves crashes with targetFluidBox->connections.size() was not true

Post by feofeujo32m3r »

Something I just realized: I did most likely have RAM issues while those saves were being made. It might be possible my game state was corrupted because of that and then this may have caused those saves to be corrupted too.

Post Reply

Return to “Technical Help”