"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:
[2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)
-
- Burner Inserter
- Posts: 6
- Joined: Fri Nov 01, 2024 6:05 am
- Contact:
[2.0.13] Crash when train enters shunting station... (AutomatedTrainController::getPathTarget)
- Attachments
-
- swap.zip
- (10.83 MiB) Downloaded 11 times
-
- factorio-current.log
- (12.89 KiB) Downloaded 8 times
-
- 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)
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.
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 9 times
-
- swap.zip
- (10.81 MiB) Downloaded 8 times
-
- 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)
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
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