[kovarex] [0.15.18] Loop causing collision between two trains

This subforum contains all the issues which we already resolved.
ultramn
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun May 21, 2017 3:50 pm
Contact:

[kovarex] [0.15.18] Loop causing collision between two trains

Post by ultramn »

> What did you do?
An automatic train network was set up with many trains, tracks and signals.
> What happened?
Two automatic trains collided despite proper signaling.
> What did you expect to happen instead? It might be obvious to you, but do it anyway!
I expected one of the trains to wait until the other one cleared the intersection.

I tried to annotate what is happening here:
crashed-train-2.png
crashed-train-2.png (4.51 MiB) Viewed 2683 times
(1) A train enters and exits the intersection as expected. I believe this causes the fast petrol train to repath.
(2) Another train comes up to the intersection and stops because the block is reserved.
(3) A very fast petrol train comes up and reserves a loop that comes back around and includes the intersection.
(4) After the petrol train leaves the intersection, the train in (2) enters it. When the petrol train loops back around, it crashes.

Here's a video of what's happening:
https://www.youtube.com/watch?v=KunZCXAM5IM

I attached the save in question, as well as a screenshot of where it's happening about 10 seconds after the save is loaded. (I couldn't run over there quick enough to resave at that location.)

Save file:
2017-megabase-mods-pre-crashed-train-1.zip
(64.04 MiB) Downloaded 130 times
Screenshot of where to look:
crashed-train-3.png
crashed-train-3.png (735.82 KiB) Viewed 2683 times
User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.15.18] Loop causing collision between two trains

Post by TruePikachu »

The looping train is probably moving so fast that it reserves the collision block for the second time (via the stopping point) before it has actually cleared the block for the first time. This might be related to the old self-intersecting route bug.
IV 
Inserter
Inserter
Posts: 46
Joined: Thu Oct 27, 2016 2:16 pm
Contact:

Re: [0.15.18] Loop causing collision between two trains

Post by IV  »

I think this may be related to what happens here: viewtopic.php?f=7&t=48209 .
A train leaves a block (in your case the intersection) that it will enter again, without enough space to break in between. This means that when it leaves the block, it should still have the block reserved. It wrongfully gives up its reservation after the first time it exits this block.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [0.15.18] Loop causing collision between two trains

Post by kovarex »

I loaded the save and tried it in the current stable (0.15.34) and no crash happened on the location, so I guess it was fixed in the meantime.
Post Reply

Return to “Resolved Problems and Bugs”