openrails / test-launchpad-bugs

TEST repository for Launchpad bug migration exploration
0 stars 0 forks source link

[BUG 1992236] Restore reports "Invalid reservation for train" #2588

Open twpol opened 1 year ago

twpol commented 1 year ago

Imported from https://bugs.launchpad.net/bugs/1992236

Property Value
Reported by cjakeman (cjakeman)
Date reported Sat, 08 Oct 2022 10:44:50 GMT

First reported by Dan Reid at http://www.elvastower.com/forums/index.php?/topic/36334-open-rails-15-is-coming-soon/page__view__findpost__p__287973

Deatils are refined in later posts. Seems to be a brief time window of an activity during which Save files can be created which cannot be fully restored.

The Restore operation reports problems and then completes. In this case, the problem leads to fatal errors some minutes later, such as:

Error: System.NullReferenceException: Object reference not set to an instance of an object. at Orts.Simulation.Signalling.TrackCircuitSection.ClearSectionsOfTrainBehind(TrainRouted trainRouted, TrackCircuitSection startTCSectionIndex) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:line 7656