[2.1.7] Crash involving train wait conditions

This subforum contains all the issues which we already resolved.
boomshroom
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Jun 21, 2025 3:16 am
Contact:

[2.1.7] Crash involving train wait conditions

Post by boomshroom »

After updating my save, a few minutes later the game suddenly crashed. I was eventually able to save mere moments before the crash to make it easier to replicate, and confirmed that it happens with and without mods enabled. The exact enum value reported in the crash log seems to change each run though.

Code: Select all

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/Logging.cpp (59): logStackTrace
src/Util/Logging.cpp (107): logAndAbortOrThrow
src/Util/Logging.cpp (96): logAndAbortOrThrow
_ZN7Logging22logEnumAndAbortOrThrowIN13WaitCondition4TypeEEEvPKcj8LogLevelT_
src/Schedule/WaitConditions.cpp (0): isFulfilled
src/Schedule/Schedulable.cpp (522): isCurrentFulfilled
src/Train/Train.cpp (871): getStatus
src/Entity/RollingStock.cpp (324): getStatus
src/Entity/Locomotive.cpp (55): draw
src/Graphics/EntityRenderer.cpp (446): prepareRow
src/Graphics/EntityRenderer.cpp (314): threadJob
/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/Util/WorkerThread.cpp (70): loop
/tmp/gcc.jm3N0kuu/objdir/../gcc-16.1.0/libstdc++-v3/src/c++11/thread.cc (105): execute_native_thread_routine
start_thread
__clone3
0xffffffffffffffff
Stack trace logging done
  23.333 Error WaitCondition.cpp:423: Unknown enum value: 149
  23.333 Error CrashHandler.cpp:616: Received 6
Logger::writeStacktrace skipped.
  23.333 Error CrashHandler.cpp:163: Map tick at moment of crash: 2822875
  23.333 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.
  28.825 Uploading log file
  28.880 Info SystemUtil.cpp:850: Started /home/USER/.xdg/data/Steam/steamapps/common/Factorio/bin/x64/factorio; trampoline PID: 44176
In case it's relevant my operating system is NixOS 26.05.20260430.15f4ee4 (Yarara), Linux 7.0.3 on x86_64.
Attachments
2.1 World - post update.zip
(8.95 MiB) Downloaded 4 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16967
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Crash involving train wait conditions

Post by Rseding91 »

Thanks for the report. Do you have this save file from before it was migrated? I suspect one of the trains on screen was recently upgraded and the logic to preserve the train stop during upgrade was messed with by a mod. I'd like to reproduce the full issue from the original save if possible.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16967
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Crash involving train wait conditions

Post by Rseding91 »

Actually, I was wrong. I see the issue now and it's fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”