System.ArgumentOutOfRangeException at Orts.Simulation.Activity..ctor (X4263, ATSF Seligman Sub 2.0, Amtrak 3 From ABQ, Warning: PlatformStartID 503 is not present in TDB file)

Bug #1798494 reported by Derek Morton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Medium
Carlo Santucci

Bug Description

OR should not crash when platform not present

Tags: crash activity
Revision history for this message
Derek Morton (derek-a) wrote :
Revision history for this message
Carlo Santucci (carlosanit1) wrote :

I agree only partly. Such event occurs if the activity has been built for a different route version. One could protect the code from this crash, but he could get further crashes in other locations of the code because of this incompatibility.
Looking at the code it comes out that there were more than one not present platforms: the first one could be catched and generated the warning, while the second one generated the crash. So there were at least two incompatible platforms. How many other? And maybe some AI train has a broken path.

Revision history for this message
Carlo Santucci (carlosanit1) wrote :

OK, the protecting check was simple so I added it in x.4264. But don't expect that this incompatible activity runs flawlessly now.

Changed in or:
assignee: nobody → Carlo Santucci (carlosanit1)
status: New → In Progress
status: In Progress → Fix Committed
tags: added: activity crash
James Ross (twpol)
summary: - Warning: PlatformStartID 503 is not present in TDB file
+ System.ArgumentOutOfRangeException at Orts.Simulation.Activity..ctor
+ (X4263, ATSF Seligman Sub 2.0, Amtrak 3 From ABQ, Warning:
+ PlatformStartID 503 is not present in TDB file)
Changed in or:
importance: Undecided → Medium
milestone: none → 1.3
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.