Out of Memory Exception OpenRails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • norfolksouthern26
    New Member
    • May 2012
    • 4
    • Middletown, NJ

    #1

    Out of Memory Exception OpenRails

    When I try to launch an SLI engine only in OpenRails, I get the following log error:

    Loading TRK TDB SIGCFG DAT ACT RDB CARSPAWN SIGSCR
    W(repeats) W(repeats) W(repeats) W(repeats) W(repeats) W(repeats) WWWWWWWWWW


    Warning: Some of this STF file was not parsed. in C:\Program Files (x86)\Microsoft Games\Train Simulator\trains\trainset\SLI.BNSF\CABVIEW\BNSF-DASH9.cvf:line 232

    Information: C:\Program Files (x86)\Microsoft Games\Train Simulator\trains\trainset\SLI.BNSF\BNSF_C44_9W_489 7.eng

    Error: System.IO.InvalidDataException: Error loading the player locomotive. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    at System.Collections.Generic.List`1.set_Capacity(Int 32 value)
    at System.Collections.Generic.List`1.EnsureCapacity(I nt32 min)
    at System.Collections.Generic.List`1.Add(T item)
    at MSTS.CVCDiscrete.<>c__DisplayClass12.<.ctor>b__8()
    at MSTS.STFReader.ParseBlock(TokenProcessor[] processors)
    at MSTS.CVCDiscrete..ctor(STFReader stf, String basepath)
    at MSTS.CabViewControls.<>c__DisplayClass16.<.ctor>b_ _8()
    at MSTS.STFReader.ParseBlock(TokenProcessor[] processors)
    at MSTS.CabViewControls..ctor(STFReader stf, String basepath)
    at MSTS.CVFFile.<>c__DisplayClass8.<.ctor>b__4()
    at MSTS.STFReader.ParseBlock(TokenProcessor[] processors)
    at MSTS.CVFFile.<>c__DisplayClass8.<.ctor>b__0()
    at MSTS.STFReader.ParseFile(TokenProcessor[] processors)
    at MSTS.CVFFile..ctor(String filePath, String basePath)
    at ORTS.MSTSLocomotive.InitializeFromWagFile(String wagFilePath)
    at ORTS.MSTSWagon..ctor(Simulator simulator, String wagFilePath, TrainCar previousCar)
    at ORTS.MSTSLocomotive..ctor(Simulator simulator, String wagPath, TrainCar previousCar)
    at ORTS.MSTSDieselLocomotive..ctor(Simulator simulator, String wagFile, TrainCar previousCar)
    at ORTS.RollingStock.Load(Simulator simulator, String wagFilePath, TrainCar previousCar)
    at ORTS.Simulator.InitializePlayerTrain()
    --- End of inner exception stack trace ---
    at ORTS.Simulator.InitializePlayerTrain()
    at ORTS.Simulator.InitializeTrains()
    at ORTS.Simulator.Start()
    at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
    at ORTS.Program.Start(UserSettings settings, String[] args)
    at ORTS.Program.Main(String[] args)

    Can somebody please help!!
  • twpol
    Senior Member
    • Oct 2009
    • 434
    • United Kingdom

    #2
    Open \TRAINS\TRAINSET\SLI.BNSF\CABVIEW\BNSF-DASH9.cvf and find line 246: "NumPositions ( 10 1056964608 0 0 0 0 0 0 0 0 0 )" - remove the large number in position 2, i.e. "1056964608" and save the file. It should now load.
    James Ross
    Open Rails Management Team
    sigpic

    Comment

    • norfolksouthern26
      New Member
      • May 2012
      • 4
      • Middletown, NJ

      #3
      Worked! The engine is invisible though

      Comment

      • wjcurrey
        Member
        • Jun 2010
        • 28

        #4
        Originally posted by norfolksouthern26
        Worked! The engine is invisible though
        Use following line at line 246:
        NumPositions ( 10 0 1 2 3 4 5 6 7 8 9 )

        Comment

        • norfolksouthern26
          New Member
          • May 2012
          • 4
          • Middletown, NJ

          #5
          didnt work
          any other suggestions?
          Last edited by norfolksouthern26; 10-21-2012, 16:11.

          Comment

          • Trainz2004
            Member
            • Sep 2014
            • 99
            • USA

            #6
            Hi. I apologizze for bumpin such an old tread but can you plz tell me what are your OS specs?

            Comment

            • baldwin
              6000 Post Veteran


              • Nov 1999
              • 6358
              • Chippenham, Wiltshire, UK.
              • ORTS

              #7
              This thread ended three years ago. Do you want to know what Operating System was in use, or what the computer specs were at the time of the error?. Perhaps if you told us what sort of problem you are having we may be able to sort it out.
              Beer is not a matter of life or death, it is much more serious than that.

              Comment

              • Trainz2004
                Member
                • Sep 2014
                • 99
                • USA

                #8
                yes.

                Comment

                • lineman
                  Senior Member

                  • Mar 2007
                  • 539
                  • Phoenix AZ
                  • General

                  #9
                  Good answer???

                  Comment

                  • Vince
                    6500 Post Veteran

                    • Nov 1999
                    • 6961
                    • Mohave

                    #10
                    Originally posted by Trainz2004
                    Hi. I apologizze for bumpin such an old tread but can you plz tell me what are your OS specs?
                    OS three (3) years ago was a mix of Win Vista and Win XP.

                    So now maybe you can answer a question for me: Why do you need to know what OS was in use three (3) years ago when you could have easily looked it up? IOW, why are you asking us to do YOUR work?
                    regards,
                    ............Vince ..............
                    ...... Author NECv4 .......
                    .... LIRR BUILD PHOTOS ....
                    ...... Eschew Obsfucation ......

                    On the The Statue of Liberty in New York Harbor there is a Tablet. On it is written:
                    "Give me your tired, your poor, your huddled masses yearning to breathe free,
                    the wretched refuse of your teeming shore, send these, the homeless, tempest-tossed to me,
                    I lift my lamp beside the golden door!"

                    Comment

                    Working...