Page 1 of 1

[kovarex][2.0.13] Crash on repathing after placing a rail signal (RailChainSignal, LuaEventDispatcher::checkEventsAreAll

Posted: Thu Oct 31, 2024 2:47 pm
by posij118
The crash happened twice in an hour, placing a rail signal usually works fine, so not easy to reproduce.

Attached is the log and the save.

Re: [2.0.13] Crash on repathing after placing a rail signal

Posted: Thu Oct 31, 2024 3:10 pm
by posij118
From this autosave, the game should crash in ~1 minute.

Re: [2.0.13] Crash on repathing after placing a rail signal (RailChainSignal::setup -> LuaEventDispatcher::checkEventsAr

Posted: Thu Oct 31, 2024 5:53 pm
by boskid
Ref 118867 119034 119036 118937 118925 119479

I suspect may be related: 118975 (AutomatedTrainController::getPathTarget)
Given 118922 (AutomatedTrainController::getPathTarget) i am even more suspicious those 2 crashes are related (and fixed for 2.0.14 by reverting 117530)

Re: [2.0.13] Crash on repathing after placing a rail signal (RailChainSignal::setup -> LuaEventDispatcher::checkEventsAr

Posted: Thu Oct 31, 2024 9:47 pm
by shelmak.gc@gmail.com
Same with this save, the game crashes completelly after I put a new signal on a track.

I tried uninstalling all mods that added trains, also on this save I heavilly use the interrupt to manage the train pathfinding.
Hope it helps, I cannot add more train routes and I am running out of stone, wish me luck.

Update: If I interrupt the tracks and allow almost all the trains to stop by allowing them to repath to my depots (there is an interrupt triggered when destination is not reachable),the moment almost all trains are stopped I can safelly edit the track signals without crashing. Then I can build again these tracks and everything starts moving.

I've tried removing the "No path" interrupt on all trains with no luck, so it seems it's not caused by this. Something is happening with the train pathfinding when I have more than 20 trains running simultaneously.

Edit: Confirming it has been fixed on experimental 2.0.14

Re: [kovarex][2.0.13] Crash on repathing after placing a rail signal (RailChainSignal, LuaEventDispatcher::checkEventsAr

Posted: Sun Nov 03, 2024 10:15 am
by boskid
I am moving this to resolved since in 2.0.14 that is already released (currently in experimental branch) this issue should not happen.

Re: [kovarex][2.0.13] Crash on repathing after placing a rail signal (RailChainSignal, LuaEventDispatcher::checkEventsAr

Posted: Sun Nov 03, 2024 9:17 pm
by Hugorscht
Thank you very much for fixing this so fast !!!