Elvas Tower: System.IndexOutOfRangeException - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

System.IndexOutOfRangeException Route does not work Rate Topic: -----

#1 User is offline   Lenny 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 4
  • Joined: 07-December 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 11 January 2021 - 11:55 AM

Hello guys! Maybe they already talked about this issue that arises in some routes and in fact I was looking at the threads regarding this problem but I can't find the solution to the problem. It is a route that I am creating and when I tested it I got the warning "System.IndexOutOfRangeException: Index outside the limits of the array". I attach the description of the error.


Error: System.IndexOutOfRangeException: Índice fuera de los límites de la matriz.
en Orts.Simulation.Signalling.SignalObject.AddHead(Int32 trItem, Int32 TDBRef, SignalItem sigItem) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:línea 9999
en Orts.Simulation.Signalling.Signals.AddSignal(Int32 trackNode, Int32 nodeIndx, SignalItem sigItem, Int32 TDBRef, TrackSectionsFile tsectiondat, TrackDatabaseFile tdbfile, Boolean& validSignal) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:línea 1084
en Orts.Simulation.Signalling.Signals.ScanSection(TrItem[] TrItems, TrackNode[] trackNodes, Int32 index, TrackSectionsFile tsectiondat, TrackDatabaseFile tdbfile, Dictionary`2 platformList, List`1 milepostList) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:línea 960
en Orts.Simulation.Signalling.Signals.BuildSignalList(TrItem[] TrItems, TrackNode[] trackNodes, TrackSectionsFile tsectiondat, TrackDatabaseFile tdbfile, Dictionary`2 platformList, List`1 milepostList) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:línea 648
en Orts.Simulation.Signalling.Signals..ctor(Simulator simulator, SignalConfigurationFile sigcfg, CancellationToken cancellation) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Signalling\Signals.cs:línea 128
en Orts.Simulation.Simulator.Start(CancellationToken cancellation) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Simulator.cs:línea 416
en Orts.Viewer3D.Processes.GameStateRunActivity.Start(UserSettings settings, String acttype, String[] args) en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:línea 288
en Orts.Viewer3D.Processes.GameStateRunActivity.<>c__DisplayClass35_0.<Load>b__3() en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:línea 159
en Orts.Viewer3D.Processes.GameStateRunActivity.Load() en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:línea 200
en Orts.Viewer3D.Processes.LoaderProcess.Load() en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:línea 158
en Orts.Viewer3D.Processes.LoaderProcess.DoLoad() en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:línea 138
en Orts.Viewer3D.Processes.LoaderProcess.LoaderThread() en E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:línea 109
en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()

This post has been edited by Lenny: 11 January 2021 - 11:58 AM


#2 User is offline   vince 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,312
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 11 January 2021 - 02:00 PM

Please attach to a post the entire OpenRailsLog.txt file which should be on your desktop if the 'Logging' box on bottom of the OR opening screen is checked.

If the log is too large then zip (compress) the file before attaching to your post.
The info in the file will aid in solving your problem. Thanks.

regards,
vince

#3 User is offline   Lenny 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 4
  • Joined: 07-December 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 11 January 2021 - 02:55 PM

Aqui adjunto el registro

Attached File(s)



#4 User is offline   vince 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,312
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 11 January 2021 - 07:49 PM

View PostLenny, on 11 January 2021 - 02:55 PM, said:

Aqui adjunto el registro

There are errors in your signal files.
The lines in said files are called out in the log and should be easy to locate.
Use a text processing app or CONTEXT text editor that provides a line count.

Context is my preferred but there are others.

regards,
vince

#5 User is offline   Lenny 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 4
  • Joined: 07-December 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 12 January 2021 - 03:41 PM

Quote

Hay errores en sus archivos de señales.
Las líneas de dichos archivos se indican en el registro y deberían ser fáciles de localizar.
Utilice una aplicación de procesamiento de texto o un editor de texto CONTEXT que proporcione un recuento de líneas.

El contexto es mi preferido, pero hay otros.

saludos,
vince





Thanks, Vince. After finding the lines, which the registry marks me as an error, do I delete those lines?

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users