[2.0.69] Crash with Warp Drive Machine mod "ChartNavigator.cpp:191: Surface with index 6 does not exist"

Post your bugs and problems so we can fix them.
pentaquark
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Oct 24, 2024 3:34 am
Contact:

[2.0.69] Crash with Warp Drive Machine mod "ChartNavigator.cpp:191: Surface with index 6 does not exist"

Post by pentaquark »

I found a (probably quite rare) crash with the Warp Drive Machine mod. The mod has an event where the warp button is sometimes teleported a distance away from the ship. If that event happens shortly before warp, and then after warp you click on the small map that shows where the warp button is, the game crashes.

Unfortunately I haven't been able to repro, since the relevant event is rare. I'm guessing the following should work: load the attached save; click "warp"; when warp is about 10-20 seconds away, manually trigger the mod event that moves the warp button far away (I don't know how to do this step); after the warp occurs, click the small map that showed up when the event was triggered.

This crash only occurs with modded games, but I have the impression that anything that crashes the entire game is a bug in the base game.

Code: Select all

/opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h (61): __invoke_impl<bool, (lambda at /tmp/factorio-build-N23DVK/src/Input/PlayerInputSource.cpp:134:3) &, const Event &>
/opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h (114): __invoke_r<bool, (lambda at /tmp/factorio-build-N23DVK/src/Input/PlayerInputSource.cpp:134:3) &, const Event &>
/opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_function.h (290): _M_invoke
/opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_function.h (591): operator()
src/Input/ActionsTriggeredByInput.cpp (22): process
src/Input/PlayerInputSource.cpp (390): processEvent
src/MainLoop.cpp (914): processEvent
src/MainLoop.cpp (808): processEvents
src/MainLoop.cpp (609): prePrepare
src/MainLoop.cpp (689): mainLoopStep
src/MainLoop.cpp (413): run
src/Main.cpp (906): fmain
src/Main.cpp (928): main
../sysdeps/nptl/libc_start_call_main.h (58): __libc_start_call_main
../csu/libc-start.c (360): __libc_start_main_impl
_start
0xffffffffffffffff
Stack trace logging done
6208.295 Error ChartNavigator.cpp:191: Surface with index 6 does not exist
6208.295 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
6208.295 Error CrashHandler.cpp:190: Map tick at moment of crash: 3596401
6208.295 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.
6213.749 Uploading log file
6213.787 Info SystemUtil.cpp:837: Started /home/nate/bin/factorio/bin/x64/factorio; trampoline PID: 32664
Attachments
warp drive machine.zip
(3.41 MiB) Downloaded 2 times
factorio-current.log
(27.75 KiB) Downloaded 3 times
pentaquark
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Oct 24, 2024 3:34 am
Contact:

Re: [2.0.69] Crash with Warp Drive Machine mod "ChartNavigator.cpp:191: Surface with index 6 does not exist"

Post by pentaquark »

I found a reliable repro, and it turns out I was somewhat mistaken about how to repro this issue. Load the new attached save and hover the mouse cursor over the text "Location: 120.0, -248.0, Fervidius magma", which will show a preview of the location of the button, and keep the mouse cursor there. A couple seconds after the ship warps to space, it will crash.
Attachments
warp crash 4.zip
(3.39 MiB) Downloaded 4 times
Post Reply

Return to “Bug Reports”