System.NullReferenceException at ORTS.AITrain.UpdateFollowingState (SLI BNSF Seligman 2, Headin to Phoenix)

Bug #1310429 reported by Edward Keenan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Medium
r.roeterdink

Bug Description

I am currently using V2189 and tested as far back as V2180. There was an immediate crash that took place at the start of the activity. This is the first experiencing this issue since I can run a different activity under the same route and not crash so its possible this may be activity related. The route is "SLI's BNSF Seligman 2" and the activity is "Headin to Phoenix". Log file is included.

Edward K.

Tags: ai crash signals
Revision history for this message
Edward Keenan (edwardk) wrote :
James Ross (twpol)
summary: - Immediate crashing at start of activity.
+ System.NullReferenceException at ORTS.AITrain.UpdateFollowingState (SLI
+ BNSF Seligman 2, Headin to Phoenix)
tags: added: ai crash
tags: added: signals
Changed in or:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
r.roeterdink (r-roeterdink) wrote :

The crash is indeed related to the activity.
From the info on the crash, it seems to me that an AI train is routed through a permissive signal unto a track allready occupied by a static train, and this happens before the activity is actually started.
Surprisingly, it is the first time I have come accross such a situation in the two-and-a-bit years I'm now working on OR.
So there is always a chance for something new ...

I've made a patch but cannot commit at the moment due to other ongoing work which will take a couple of days to complete.
WIll let you know when the patch is committed.

Changed in or:
status: Triaged → In Progress
assignee: nobody → r.roeterdink (r-roeterdink)
Revision history for this message
jeroenp (j-paasschens) wrote :

Dear Rob,
Just for completeness, I did find, just now, the same issue in a completely other route (Bernina pass, running X2186). I am attaching the log to make it perhaps easier to debug (if not already solved by your patch). Also, probably it is not that uncommon, or something changed recently such that this now pops up.
In the debugger, I found that the 'OtherTrain' is not an AITrain, but a regular Train. Does this include static trains? Or is this the player train that is mistakingly already present?
Best regards. Jeroen.

Changed in or:
status: In Progress → Fix Committed
James Ross (twpol)
Changed in or:
milestone: none → 1.0
James Ross (twpol)
Changed in or:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.