Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Open Rails Crash Code, System.ArgumentOutOfRangeException: Index was out of range.

  1. #1

    Exclamation Open Rails Crash Code, System.ArgumentOutOfRangeException: Index was out of range.

    So i got Rick Bergs Monon Route running on OR and everything works fine in the 1950s era, it isn't until i era swap to any other era that i get this code. it doesn't happen immediately either. the route starts up fine but when i get a couple yards out with my consist it crashes and gives me the code. any help would be appreciated!

    here is the full error code.

    System.ArgumentOutOfRangeException: Index was out of range. Must
    be non-negative and less than the size of the collection,
    Parameter name: index
    at
    System.ThrowHelper.ThrowArqumentOutO/RangeException(ExceptionA
    rgument argument, ExceptionResource resourte)
    at Orts.Viewer3D.TrackSoundSource.UpdateTType(Boolean
    stateChange) in C:Venkins Jobs Open Ralls
    Stable\workspace\Source RunActivity Vlewer30 Sound esiline 303
    at Orts. Viewer3D. TrackSoundSource Update0 in CVenkinsVobs\Open
    alls StablelworkspacelSource\RunActivity\Vlewer3D(Sound ,cstline334
    at Orts, Viewer3D.Processes, SoundProcess,Sound@ in
    C/VenkinsUobs\Open Rails
    Stable\workspace\Source\RunActivity Viewer3D\Processes SoundProces
    < csiline 132
    at Orts. Viewer3D.Protesses, SoundProcess. Dosoundo in
    C/VenkinsVobs|Open Rails
    Stable\workspace\Source\RunActivity/Viewer3D\Processes\SoundProces
    s.egiline116

  2. #2
    Join Date
    Nov 1999
    Location
    Eltham, Victoria, Australia.
    Posts
    7,309

    Default

    Hi Austin,

    When trying to get a bug like this fixed, you need to post the complete log file.
    There is other information that we can use to help with the problem.
    Cheers
    Derek

  3. #3

    Default

    where do i find the complete log files?

  4. #4

    Default full log

    here is full log

    Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)
    at Orts.Viewer3D.TrackSoundSource.UpdateTType(Boolean stateChange) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Sound .cs:line 303
    at Orts.Viewer3D.TrackSoundSource.Update() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Sound .cs:line 334
    at Orts.Viewer3D.Processes.SoundProcess.Sound() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 132
    at Orts.Viewer3D.Processes.SoundProcess.DoSound() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 116
    at Orts.Viewer3D.Processes.SoundProcess.SoundThread() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 100
    at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()


    Information: Game.PopState()

  5. #5
    Join Date
    Nov 1999
    Location
    Eltham, Victoria, Australia.
    Posts
    7,309

    Default

    On the desktop, openrailslog.txt
    Cheers
    Derek

  6. #6

    Default

    Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)
    at Orts.Viewer3D.TrackSoundSource.UpdateTType(Boolean stateChange) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Sound .cs:line 303
    at Orts.Viewer3D.TrackSoundSource.Update() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Sound .cs:line 334
    at Orts.Viewer3D.Processes.SoundProcess.Sound() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 132
    at Orts.Viewer3D.Processes.SoundProcess.DoSound() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 116
    at Orts.Viewer3D.Processes.SoundProcess.SoundThread() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\SoundProcess.cs:line 100
    at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()


    Information: Game.PopState()[/QUOTE]

  7. #7
    Join Date
    Nov 1999
    Location
    Chippenham, Wiltshire, UK.
    Posts
    6,999

    Default

    That is not the full log, merely the last part. The full log is normally found on your desktop, so long as logging is enabled.

    The portion you have posted indicates a problem withing the sound setup of something. The something may well have generated warnings or errors in the full log, which is why we need to see it.
    Last edited by baldwin; 11-05-2022 at 06:17 AM. Reason: Addition.
    Beer is not a matter of life or death, it is much more serious than that.

  8. #8

    Default

    it wont let me post the full log and it wont let me add the log as a file because they are both too large.

  9. #9
    Join Date
    Nov 1999
    Location
    Chippenham, Wiltshire, UK.
    Posts
    6,999

    Default

    Zip it, then attach to a post
    Beer is not a matter of life or death, it is much more serious than that.

  10. #10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •