Announcement

Collapse
No announcement yet.

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

Collapse
Only viewable if you're a logged in user
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    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.

    Comment


      #3
      where do i find the complete log files?

      Comment


        #4
        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()

        Comment


          #5
          On the desktop, openrailslog.txt

          Comment


            #6
            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]

            Comment


              #7
              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, 06:17 AM. Reason: Addition.
              Beer is not a matter of life or death, it is much more serious than that.

              Comment


                #8
                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.

                Comment


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

                  Comment


                    #10
                    zip

                    OpenRailsLog.zip

                    Comment


                      #11
                      Oh my. Where to start.
                      First thing I would do is move your MSTS stuff out of the protected programs folder. That will make everything else you need to do so much easier.

                      Randy

                      Comment


                        #12
                        First...as Randy advises move all train sim folders out of the microsoft program folder....make a folder under "C" drive...something like
                        C:\TrainSim\ or C:\ORTS\ --- whatever makes sense to you.

                        Second, fix the sound errors, then fix the missing stock in the consist files...you will need to use ConBuilder ( a version is located here in the file library ) or use the TSRE consist editor.
                        Cheers, Gerry
                        It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
                        Forever, ridin' drag in railroad knowledge.
                        Audi, Vide, Tace, Si Vis Vivere In Pace

                        Comment


                          #13
                          Can anyone tell me why any of the train sims won't run on my smartphone/tablet? Especially that big 8gb route?
                          My Open Rails videos https://www.youtube.com/channel/UClc...1kBPO2A/videos

                          Comment


                            #14
                            Actually there's One Version of Trainz that will. I see Videos of It being done all The time, But, The Main reaons Alot of The Sims Won't is because The File Types & Space. However, a Few Years ago, someone did find a Way to,"Dry-Hack" The "Jearl-"Version" of MSTS onto a Phone, but you needed several programs to change Files & Program Types.

                            Comment

                            Working...
                            X