System.ArgumentOutOfRangeException at ORTS.DeadlockInfo.SetTrainDetails (X.2065)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Expired
|
Medium
|
Unassigned |
Bug Description
When starting some activities on the SLI Scenic Sub 2.0 the sim will crash while loading.
System argument out of range exception, Index was out of range. Must be non negative and less than the size of the collection. Parameter name: Index
Open Rails is starting...
Argument 0 = -start
Argument 1 = H:\Train Simulator\
Version = X.2065
Build = 0.0.5172.33706 (2014-02-28 18:43:32Z)
Logfile = C:\Users\
-------
AdhesionMovingA
Alerter = False
AvatarURL = (user set) http://
BrakePipeChargi
BreakCouplers = False
Cab2DStretch = 0
CarVibratingLevel = (user set) 1
CurveResistance
CurveResistance
CurveResistance
DataLogger = (user set) True
DataLoggerSeparator = comma
DataLogMisc = (user set) True
DataLogPerformance = True
DataLogPhysics = (user set) True
DataLogSpeedUnits = route
DataLogStart = False
DataLogStationStops = False
DataLogTrainSpeed = False
DataLogTSContents = 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
DataLogTSInterval = 10
DayAmbientLight = (user set) 26
DistantMountains = (user set) True
DistantMountain
DoubleWire = False
DynamicShadows = (user set) True
FullScreen = (user set) True
GraduatedRelease = False
Language =
LoadingDelay = 0
LODAlwaysMaximum = (user set) True
LODViewingExtention = (user set) True
Logging = True
LoggingFilename = OpenRailsLog.txt
LoggingPath = C:\Users\
Menu_Selection = (user set) H:\Train Simulator, H:\Train Simulator\
MSTSBINSound = True
Multiplayer = False
Multiplayer_Host = (user set)
Multiplayer_Port = 30000
Multiplayer_
Multiplayer_User = (user set)
MultiplayerClient = False
MultiplayerServer = False
OverrideNonElec
PerformanceTuner = False
PerformanceTune
Precipitation = (user set) True
PreferDDSTexture = False
Profiling = False
ProfilingFrameCount = 0
ProfilingTime = 0
ReplayPauseBefo
ReplayPauseBefo
ScreenshotPath = C:\Users\
ShaderModel = 3
ShadowAllShapes = False
ShadowMapBlur = True
ShadowMapCount = 4
ShadowMapDistance = 1500
ShadowMapResolution = 1024
ShowAvatar = False
ShowErrorDialogs = True
SoundDetailLevel = 5
SoundVolumePercent = 100
SuperElevationGauge = 1435
SuperElevationM
SuppressConfirm
TrainLights = (user set) True
UseAdvancedAdhesion = True
UseLocationPass
UseMSTSEnv = False
UseSuperElevation = (user set) 1
VerticalSync = False
ViewDispatcher = (user set) True
ViewingDistance = (user set) 3000
ViewingFOV = 45
WindowGlass = (user set) True
WindowPosition_
WindowPosition_
WindowPosition_
WindowPosition_
WindowPosition_
WindowPosition_Help = (user set) 50, 46
WindowPosition_
WindowPosition_Quit = (user set) 42, 35
WindowPosition_
WindowPosition_
WindowPosition_
WindowSize = (user set) 1360x768
Wire = False
WorldObjectDensity = 10
-------
Mode = Activity
Activity = H:\Train Simulator\
-------
Loading TRK TDB SIGCFG DAT ACT RDB CARSPAWN SIGSCR WWWWWWWWWWWWWWW
Error: System.
Parameter name: index
at System.
at System.
at System.
at ORTS.DeadlockIn
at ORTS.Train.
at ORTS.Train.
at ORTS.Train.
at ORTS.AITrain.
at ORTS.AI.
at ORTS.AI.
at ORTS.AI.
at ORTS.Simulator.
at ORTS.Processes.
at ORTS.Processes.
at ORTS.Processes.
at ORTS.Processes.
at ORTS.Processes.
at ORTS.Processes.
at System.
at System.
at System.
Loader: Time = 00:04:02.1068255 ms
Loader: Expected = 95,344,798 bytes
Loader: Actual = 12,143,377 bytes
Loader: Difference = -83,201,421 bytes (-87.3 %)
Information: Game.PopState()
summary: |
- Some activities crash while loading + System.ArgumentOutOfRangeException at ORTS.DeadlockInfo.SetTrainDetails |
tags: | added: crash signals |
tags: | added: experimental |
Changed in or: | |
status: | New → Triaged |
importance: | Undecided → Medium |
summary: |
System.ArgumentOutOfRangeException at ORTS.DeadlockInfo.SetTrainDetails + (X.2065) |
It seems to me something has gone wrong with the installation of Open Rails.
Just tried this activity on version X2071, and all went well (see attached log). There have been no changes to this code since X2048.
Also, these are the lines around the line where the crash occured :
public int SetTrainDetails(int trainNumber, int subpathRef, float trainLength, Train.TCSubpath Route subpath, int elementRouteIndex) athIndex( trainNumber, subpathRef);
Train. TCSubpathRoute partPath = null; // retreived route of train through deadlock area
{
int trainSubpathIndex = GetTrainAndSubp
// search if trains path has valid equivalent
Clearly, there is na array in there.
There were problems in this routine earlier but these were corrected in version X2048. It seems somehow you still have the old version of RunActivity.exe.