[2.0.32] Crash when bots try to place a train ghost while there is an existing train on the Track

This subforum contains all the issues which we already resolved.
TunikaGruss
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Feb 03, 2025 6:11 pm
Contact:

[2.0.32] Crash when bots try to place a train ghost while there is an existing train on the Track

Post by TunikaGruss »

Hi,

1600 hours in and my first bug report :)

1. What did I do?
I have a existing train station with one train that is going from a outpost to this station and unloads its cargo.
Now I wanted to build a new station that unloads the same cargo. I build ghosts for the new Station right next to it to let it be built by my construction bots. The Rails are placed and the Station is placed by my bots, but the locomotive and the 4 cargo wagons are still a ghost. (I also copied the train settings from the old locomotive to the locomotive ghost, I dont know if this is important). Since the new station has the same name as the old station, the old existing train now drives to the new station where there is still the new ghost locomotive + 4 cargo wagons.

Then, the old train unloads its cargo and drives off while constuction bots try to place the new train on the ghosts. While that happens, the game crashes in this exact moment while the train leaves and the bots try to place the new train.
I tried to reload my autosave 3 times and managed to get a screenshot from the exact moment the game crashed. On the screenshot you can see the existing train is leaving the station and the construction bots are building the new train "on" the old train. I also did a screen recording of the exact moment the crash happens.
02-03-2025, 19-30-27.png
02-03-2025, 19-30-27.png (3.49 MiB) Viewed 727 times
Bug_Report_Factorio.mp4
(44.73 MiB) Downloaded 38 times
2. What happend:
The game crashed as soon as the train is leaving and the bot tries to place the new train.

3. What did you expect to happen instead:
That the game would not crash and the train gets placed as soon as the old train leaves the station.

4. Does it happen always, once, or sometimes?
Everytime I load the autosave and try to play it crashes at the moment the train leaves and the bots try to place the new locomotive.

From the logs it looks like I get this error:

Code: Select all

  59.669 Error Rail.cpp:181: this->state == RailConnectionDirection::None was not true
  59.669 Error CrashHandler.cpp:643: Received 22
Crash could be resolved by deleting the ghosts before the bots got to them, but I dont think this is intended behaviour :)

I am happy to provide more information!
Attachments
factorio-previous.log
(37.52 KiB) Downloaded 29 times
factorio-current.log
(37.66 KiB) Downloaded 35 times
_autosave11.zip
(25.03 MiB) Downloaded 39 times
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 587
Joined: Tue May 19, 2015 1:56 am
Contact:

Re: [2.0.32] Crash when bots try to place a train ghost while there is an existing train on the Track

Post by Reika »

I just had this happen myself: Image

Code: Select all

Stack trace logging done
  77.737 Error Rail.cpp:181: this->state == RailConnectionDirection::None was not true
  77.737 Error CrashHandler.cpp:643: Received 22
Image
Rseding91
Factorio Staff
Factorio Staff
Posts: 15869
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.32] Crash when bots try to place a train ghost while there is an existing train on the Track

Post by Rseding91 »

hanks for the report. This is now 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”