Page 1 of 1

[Genhis][2.0.42] Crash replacing train stop ghost with LTN version "Failed to get EntityGhost"

Posted: Sun Mar 30, 2025 12:36 am
by boywithumbrella
Factorio 2.0.42 with LTN 2.3.2 crashes when replacing a regular train station ghost with an LTN station ghost in map view.

log snippet:

Code: Select all

ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF96A39E8D7)
00007FF96A39E8D7 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF96A69BF6C)
00007FF96A69BF6C (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  79.322 Error Entity.cpp:3587: Failed to get EntityGhost for [name=logistic-train-stop, type=train-stop(TrainStop), position={-783.000, -585.000}, direction=West, force=player, surface=nauvis, setup=false, owned-by-ghost=true, to-be-deconstructed=false, to-be-upgraded=false, simulation=true]
  79.322 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
  79.322 Info LuaEventDispatcher.cpp:754: dispatching event on_entity_color_changed (ID 196), script mod-SpidertronPatrols
  79.322 Error CrashHandler.cpp:190: Map tick at moment of crash: 45695396
  79.357 Info CrashHandler.cpp:318: Executable CRC: 2611162946
  79.357 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.
  89.036 Uploading log file
  89.098 Error CrashHandler.cpp:270: Heap validation: success.
  89.099 Creating crash dump.
  89.256 CrashDump success
log, mod list, and crash dump attached. Cross-posted to LTN bug reports:
https://mods.factorio.com/mod/LogisticT ... b0b243c793

Re: [2.0.42] Crash replacing train stop ghost with LTN version "Failed to get EntityGhost"

Posted: Sun Mar 30, 2025 12:47 am
by Loewchen
Post the save please, see 3638.

Re: [2.0.42] Crash replacing train stop ghost with LTN version "Failed to get EntityGhost"

Posted: Sun Mar 30, 2025 2:35 am
by boywithumbrella
attached is a save file (with its factorio log and crash dump). Steps to reproduce:
1. load save, switch to map view, switch to Nauvis (on Nauvis, there is a spidertron standing next to a disconnected set of tracks, with a station ghost attached to those tracks)
2. left-click on spidertron to open its inventory, press Q, left-click on LTN train station in spidertron's inventory, press E to close inventory window, place the LTN train station with the mouse cursor over the train station ghost, left-click to replace the train station ghost with the LTN train station
3. observe the crash

Re: [Genhis][2.0.42] Crash replacing train stop ghost with LTN version "Failed to get EntityGhost"

Posted: Fri Apr 18, 2025 7:11 am
by Genhis
Thanks for the report and for the attached save file. The crash is fixed for the next release, 2.0.46.