Page 1 of 1

[1.12.7] Crash while running event on_train_changed_state

Posted: Tue Mar 24, 2020 7:25 pm
by Jorn86
Factorio version 0.18.15. We were playing multiplayer, 3 players connected. Let me know if you need more info.

Screenshot with stacktrace is attached

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Tue Mar 24, 2020 8:55 pm
by Optera
Jorn86 wrote:
Tue Mar 24, 2020 7:25 pm
Factorio version 0.18.15. We were playing multiplayer, 3 players connected. Let me know if you need more info.
Always give all information listed here: viewtopic.php?f=214&t=60889

Especially what you where doing, so i can reproduce that error.

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Tue Mar 24, 2020 10:00 pm
by Jorn86
I wasn't doing anything LTN related at the time, just minding my own business when it crashed. I can't speak for the other players, but since the error happens in an event handler I doubt it's related to anything they did either.

We restarted the game and played for several more hours, and the crash didn't happen again. So I have no idea what caused it or how to reproduce it.

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Wed Mar 25, 2020 5:52 pm
by Optera
The error should only be possible if the first schedule entry when leaving a requester either has nil as stop name, or an invalid rail segment.
I don't see how that could happen in normal gameplay.

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Wed Mar 25, 2020 6:05 pm
by Jorn86
The stop names do have rich text (icons), but they all do so that should be fine. I guess it's possible someone was changing the station settings or signals at the time, but it'd be pretty hard to reproduce if it hat to be at that exact tick.

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Wed Mar 25, 2020 6:26 pm
by Optera
Even with a deliberate invalid temp stop on top of the schedule it doesn't crash.
Doesn't matter if it's the only stop beside the requester either.
2020-03-25-19-20-27-0754368.png
2020-03-25-19-20-27-0754368.png (148.74 KiB) Viewed 2501 times

Re: [1.12.7] Crash while running event on_train_changed_state

Posted: Wed Mar 25, 2020 6:49 pm
by Jorn86
I'm not sure what else I can tell you beyond it happened :) But since it never happened again and won't be easy to reproduce, I guess we'll have to leave it be.