[1.12.7] Crash while running event on_train_changed_state

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Jorn86
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sun May 01, 2016 7:08 pm
Contact:

[1.12.7] Crash while running event on_train_changed_state

Post 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
Attachments
427520_screenshots_20200324201622_1.jpg
427520_screenshots_20200324201622_1.jpg (568.27 KiB) Viewed 2935 times
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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.
Jorn86
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sun May 01, 2016 7:08 pm
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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.
Jorn86
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sun May 01, 2016 7:08 pm
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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 2893 times
Jorn86
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sun May 01, 2016 7:08 pm
Contact:

Re: [1.12.7] Crash while running event on_train_changed_state

Post 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.
Post Reply

Return to “Logistic Train Network”