Page 1 of 1

[raiguard][2.1.9] Crash on closing the game (segfault in AsyncScenarioSaver)

Posted: Mon Jul 13, 2026 5:22 am
by Laar
Crash during the closing of the game, after playing for about an hour on a multiplayer server.

The last things I did were:
  • Saving the multiplayer session
  • Maybe a few things in between
  • Exiting multiplayer
  • Closing the game via the exit button
To see if it is reproducible I loaded the game again and directly pressed the exit button, that did not crash. Neither does loading the saved multiplayer and exiting after that.

Platform: archlinux, steam
Log report attached, just redacted the user name. Contact me if that is useful.

Re: [raiguard][2.1.9] Crash on closing the game (segfault in AsyncScenarioSaver)

Posted: Tue Aug 11, 2026 3:26 pm
by MRX8024
It seems I’ve encountered the same error, and I can reproduce it. All you need to do is save the game while in multiplayer (using the "non-blocking" save option, as both the author and I did) and then click the button to exit from multiplayer game.

Code: Select all

42779.244 Info AppManagerStates.cpp:2029: Saving game as /... (non-blocking)
42779.376 Info AsyncScenarioSaver.cpp:177: Saving process PID: 1460701
42780.261 Info ClientMultiplayerManager.cpp:138: Disconnecting multiplayer connection. Reason: Quit.
42780.261 Info ClientMultiplayerManager.cpp:608: UpdateTick(42863494) changing state from(InGame) to(DisconnectScheduled)
42780.268 Info ClientMultiplayerManager.cpp:608: UpdateTick(42863494) changing state from(DisconnectScheduled) to(WaitingForDisconnectConfirmation)
42780.368 Info ClientMultiplayerManager.cpp:608: UpdateTick(42863494) changing state from(WaitingForDisconnectConfirmation) to(Disconnected)
42780.373 Info ClientMultiplayerManager.cpp:874: Disconnect notification for peer (1)
42780.373 Info ClientMultiplayerManager.cpp:217: Deleting active scenario (global = true).
42784.384 Info UDPSocket.cpp:238: Closing socket
42784.384 Info UDPSocket.cpp:268: Socket closed
42785.022 Info ChildProcessAgent.cpp:61: Child 1460701 exited with return value 0
42785.022 Uploaded files to cloud
42785.023 Time travel logging:
6555.470 Popped blueprint record (player-index: 65535, ID: 11)
18315.247 Scenario is being deleted
21776.986 Popped blueprint record (player-index: 65535, ID: 246) from book (player-index: 65535, ID: 0)
21777.736 Popped blueprint record (player-index: 65535, ID: 245) from book (player-index: 65535, ID: 0)
21778.469 Popped blueprint record (player-index: 65535, ID: 5) from book (player-index: 65535, ID: 0)
26009.152 Popped blueprint record (player-index: 65535, ID: 261) from book (player-index: 65535, ID: 0)
26011.152 Popped blueprint record (player-index: 65535, ID: 262) from book (player-index: 65535, ID: 0)
26046.608 Popped blueprint record (player-index: 65535, ID: 243)
34665.002 Popped blueprint record (player-index: 65535, ID: 258) from book (player-index: 65535, ID: 0)
34669.919 Popped blueprint record (player-index: 65535, ID: 258) from book (player-index: 65535, ID: 0)
37386.519 Popped blueprint record (player-index: 65535, ID: 11)
37398.452 Popped blueprint record (player-index: 65535, ID: 264)
42780.373 Scenario is being deleted
42785.023 Error CrashHandler.cpp:616: Received 6
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (340): writeStacktrace
src/Util/Logger.cpp (385): logStacktrace
src/Util/CrashHandler.cpp (154): writeStackTrace
src/Util/CrashHandler.cpp (617): commonSignalHandler
src/Util/CrashHandler.cpp (625): SignalHandler
0x7fc4cc0447af
pthread_kill
gsignal
abort
0x7fc4cc0269cf
0x7fc4cc0b986d
0x7fc4cc0bb5df
0x7fc4cc0bb740
/tmp/gcc.EVZpSFz4/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/new_allocator.h (183): std::__new_allocator<char>::deallocate(char*, unsigned long)
/tmp/gcc.EVZpSFz4/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/alloc_traits.h (689): std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned long)
/tmp/gcc.EVZpSFz4/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h (304): std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned long)
/tmp/gcc.EVZpSFz4/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h (298): std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()
/tmp/gcc.EVZpSFz4/objdir/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc (380): std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)
/tmp/gcc.EVZpSFz4/objdir/../gcc-16.1.0/libstdc++-v3/src/c++17/fs_path.cc (533): std::filesystem::__cxx11::path::operator=(std::filesystem::__cxx11::path const&)
src/Filesystem/Filesystem.hpp (78): operator=
src/Scenario/AsyncScenarioSaver.cpp (171): operator()
/opt/gcc-16.1.0/lib/gcc/x86_64-pc-linux-gnu/16.1.0/../../../../include/c++/16.1.0/bits/invoke.h (63): __invoke_impl<void, (lambda at /factorio/src/Scenario/AsyncScenarioSaver.cpp:144:5) &, int, ChildProcessAgent::ProcessStatus>
/opt/gcc-16.1.0/lib/gcc/x86_64-pc-linux-gnu/16.1.0/../../../../include/c++/16.1.0/bits/invoke.h (113): __invoke_r<void, (lambda at /factorio/src/Scenario/AsyncScenarioSaver.cpp:144:5) &, int, ChildProcessAgent::ProcessStatus>
/opt/gcc-16.1.0/lib/gcc/x86_64-pc-linux-gnu/16.1.0/../../../../include/c++/16.1.0/bits/std_function.h (295): _M_invoke
/opt/gcc-16.1.0/lib/gcc/x86_64-pc-linux-gnu/16.1.0/../../../../include/c++/16.1.0/bits/std_function.h (581): operator()
src/ChildProcessAgent.cpp (76): check
src/MainLoop.cpp (582): prePrepare
src/MainLoop.cpp (695): mainLoopStep
src/MainLoop.cpp (416): run
src/Main.cpp (951): fmain
src/Main.cpp (973): main
0x7fc4cc027c4d
__libc_start_main
_start
0xffffffffffffffff
Stack trace logging done
42786.144 Error Util.cpp:95: 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.

Code: Select all

Aug 11 05:18:43 mrx steam[3016709]: 42779.244 Info AppManagerStates.cpp:2029: Saving game as /... (non-blocking)
Aug 11 05:18:49 mrx steam[3016709]: double free or corruption (out)
Aug 11 05:18:49 mrx steam[3016709]: Factorio crashed. Generating symbolized stacktrace, please wait ...

Hope this helps; thanks.