Page 1 of 1

[Tobias] [2.0.10] Crash removing station from train group schedule (Schedulable.cpp:324: Invalid current index: 1 >= 1)

Posted: Fri Oct 25, 2024 12:40 am
by isogash
I was able to trigger this in the attached save file a couple of times but not sure the exact sequence.

1. What did you do? -> I clicked to remove a stop of the train schedule, whilst the trains were moving.
2. What happened? -> Crash
4. Does it always happen? -> No but it has happened more than once.

Re: [2.0.10] Crash removing station from train group schedule (Schedulable.cpp:324: Invalid current index: 1 >= 1)

Posted: Mon Nov 11, 2024 10:06 pm
by robot256
Tested on 2.0.16 for a while, unable to reproduce.

Re: [Tobias] [2.0.10] Crash removing station from train group schedule (Schedulable.cpp:324: Invalid current index: 1 >=

Posted: Wed Nov 20, 2024 8:39 am
by Tobias1595
Thank you for the report, your autosave helped narrowing down what the issue was. A fix will be included in the 2.0.21 update.

For those interested, this crash had to do with "waypoint" stops, stops in the schedule without any conditions, causing the train to pass through the station without stopping. The crash occurred if the final stop in the schedule is a waypoint stop, and the schedule gets shortened while another train in the group is using that waypoint at that very moment.