[2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)

Things that has been reported already before.
Bag o Walnuts
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Nov 01, 2024 6:05 am
Contact:

[2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)

Post by Bag o Walnuts »

"Crash when train enters shunting station after fuel runs low between stations"

I got stuck for a bit with a repeating crash in my save and I think I found what was causing it. It kept crashing when a copper ore train entered my shunting station, which uses an interrupt, after also hitting the threshold for its fuel interrupt on the way. Both interrupts use the "interrupt other interrupts" to work correctly, but they had been working in tandem for some time.

With no interaction, the attached game save (swap.zip) crashes after about 60 seconds, right as the copper ore train enters the shunting station. I can delay the crash if I delay the train by slowing the ore loading, and it crashes at the same place on the track each time.

Fortunately I'm not stuck, I can stop the crash if I walk over and add a bit of fuel to the train by hand, or manually activate the fuel interrupt at any point before the crash. Perhaps this de-syncs whatever unfortunate timing is causing the bug?

Either way the crash seems have something to do with the timing of the fuel running below the interrupt threshold between stations, though there may be another factor that I can't pinpoint; I certainly thought the interrupt list order would set a hierarchy to solve exactly such conflicts of interrupting interrupts, ah, interrupting each other.

Something else of note: the crash happens the moment the train enters a big block with 23 rail signal exits, not as it gets to the station itself on the other side of the signal. Also I apologize for the lack of radar coverage, I was in the middle of moving my radar grid.

The relevant bits:
the moment of the crash
the moment of the crash
11-01-2024, 03-55-20.png (7.08 MiB) Viewed 269 times
before it left last station
before it left last station
11-01-2024, 03-48-56.png (22.51 KiB) Viewed 269 times
burned through the 50 threshold on the way
burned through the 50 threshold on the way
11-01-2024, 03-49-41.png (127.35 KiB) Viewed 269 times
shunting interrupt shunting as intended (F and E stations were off)
shunting interrupt shunting as intended (F and E stations were off)
11-01-2024, 03-51-46.png (403.63 KiB) Viewed 269 times
Attachments
swap.zip
(10.83 MiB) Downloaded 11 times
factorio-current.log
(12.89 KiB) Downloaded 8 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3031
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)

Post by boskid »

Thanks for the report. I suspect this issue may be the same as 118975 or maybe even be related to 118822 so i will move this to duplicates but i will keep a reference to this topic since it may contain extra details not provided by other topics.
Bag o Walnuts
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Nov 01, 2024 6:05 am
Contact:

Re: [2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)

Post by Bag o Walnuts »

Thanks for taking a look.

It just happened again in virtually the exact same way later on (and with the same train) so I'll upload for posterity. Crash happens less than 2 min after this save.

I thought it worth noting that the copper ore train that is causing this is the only one with this setup that is alone in its group; each other group has 2 trains or has a custom setup. If it happens again I'll probably add another to the group and see if it clears up.

In any case you guys are awesome, thanks for everything and keep up the amazing work.
Attachments
factorio-current.log
(12.89 KiB) Downloaded 10 times
swap.zip
(10.81 MiB) Downloaded 9 times
Bag o Walnuts
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Nov 01, 2024 6:05 am
Contact:

Re: [2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)

Post by Bag o Walnuts »

Update: just happened again with an iron ore train that has 2 in the group, so that's wasn't it. The consistencies are still running below the fuel interrupt threshold between stops and the game crashing when the train is somewhere in the shunting yard (it gets further along this time, almost to the station). I may disconnect the exits I'm not using right now and see if that helps.

Here's this example, crashes about 40 seconds after the save. Probably the last I'll update here unless more info is requested.

Edit: psych! Just noticed the beta 2.0.14 and after updating I can confirm the crash no longer occurs. Presumably from this:

" - Reverted a fix for train interrupts not being checked when passing a station without conditions (117530) because it crashed the game. (118822)"

Happy bug hunting! I'm off to squash some of my own now
Attachments
swap.zip
(10.84 MiB) Downloaded 8 times
factorio-current.log
(13.49 KiB) Downloaded 14 times
Post Reply

Return to “Duplicates”