Page 1 of 1

[Rseding91] [2.0.32] Crash "Optional.hpp:63: *this was not true"

Posted: Sun Jan 26, 2025 1:19 am
by mikelat
I'm playing with the mod warp drive machine and I'm getting what seems to be a hard crash from a c++ error. It appears to be trying to give me a message popup but the game crashes with an SDL error:
Stack trace logging done
17.331 Error Optional.hpp:63: *this was not true
17.331 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
17.331 Info LuaEventDispatcher.cpp:136: dispatching nth_tick. script mod-Warp-Drive-Machine
17.331 Error CrashHandler.cpp:190: Map tick at moment of crash: 5176080
17.331 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.
17.381 Error MessageDialog.cpp:53: Unable to show message dialog. SDL Error: [Couldn't load font -*-*-medium-r-normal--*-120-*-*-*-*-*-*]
I'm not sure what the mod is trying to do or how it's happening but since it seems related to the factorio core I'm posting it here.

I'm on linux (arch) wayland.

The save I've included has the crash happen a few seconds after. It might be an event of related to the ship console in the mod as if I editor out the entity then it no longer crashes. It consistently happens to me otherwise.

Re: [2.0.32] Crash "Optional.hpp:63: *this was not true"

Posted: Sun Jan 26, 2025 12:40 pm
by Rseding91
Thanks for the report. This issue was fixed internally a few days ago and is pending a release. The issue is one of the mods you're using trying to set_multi_command with an invalid command. In the next release it will error saying so rather than crash the entire game.

Re: [Rseding91] [2.0.32] Crash "Optional.hpp:63: *this was not true"

Posted: Sun Jan 26, 2025 6:55 pm
by mikelat
thank you!