The International Simutrans Forum

Simutrans Extended => Simutrans Extended Development => Topic started by: Freahk on May 09, 2020, 10:35:59 PM

Title: [BUG] Directional reservation deadlocks
Post by: Freahk on May 09, 2020, 10:35:59 PM
What happened?
A directionally signalled track deadlocked in a situation where it should not.

How to reproduce?
Load the attached save, open the block reservation tool and observe the trains moving. The deadlock will occour soon.

What's to observe?
1. The train in the west is waiting for clearance.
Note: There is a directional reservation flashing at (12,9). It doesn't seem to be the cause for the deadlock but looks like there is something wrong.
Further note: Directional reservations ownership on further sections switches in between different trains approaching from the east.
2. Train (6) will correctly move ro land stop 1
3. Note that shorty after departing at land stop 1, train (4) will depart at land stop 4 before land stop 1 is cleared (https://forum.simutrans.com/index.php/topic,19856.new.htm)
4. When train (4) departs at land stop 1, train (3) will correctly wait for clearance.
5. Train (1) will use that opportunity to reservate as far as he can
=> deadlock!
Title: Re: [BUG] Directional reservation deadlocks
Post by: jamespetts on August 16, 2020, 12:23:22 AM
I note that I had missed this report from some time ago and then it had got to page 3 of the development forum out of sight - I will note this to look into it when I have a moment.
Title: Re: [BUG] Directional reservation deadlocks
Post by: jamespetts on August 19, 2020, 08:02:08 PM
I notice that Freddy pushed a patch relating to this a few days ago. Can I check whether this has addressed this problem or whether this is still outstanding?