Error Message: System.NullReferenceException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freeway2
    Member
    • May 2010
    • 28

    #1

    Error Message: System.NullReferenceException

    Hi
    I keep getting the error message:
    System.NullReferenceException: Object reference not set to an instance of an object. at ORTS,Viewer3D, PrepareFrame (RenderFrame frame, ElapsedTime elapsedTime at ORTS, Updater Process. UpdateLoop()

    I am trying the new ORTS download and get this message on all routes, the earliest ORTS program worked for me so I believe I had all the required extra programs installed.
    Can anyone explain to me what a fix might be?

    Thanks so much,
    Tom
  • twpol
    Senior Member
    • Oct 2009
    • 434
    • United Kingdom

    #2
    You should attach the OpenRailsLog.txt from your Desktop.
    James Ross
    Open Rails Management Team
    sigpic

    Comment

    • longiron
      1000 Post Veteran and Moderator

      • Jan 2007
      • 1453
      • Just south of NYC

      #3
      Tom,
      As James suggested, attaching the Open Rails log file is extremely important. Some more info on which Routes (names)/ Activities you've tried would help, too.
      thanks
      Chris
      "True rail fans have two favorite railroads. The B&O and one other."

      Comment

      • freeway2
        Member
        • May 2010
        • 28

        #4
        Here is the Open Rails Log:



        SVN V = 360
        BUILD = 0.0.3911.24215 2010.09.16. 14:27

        Starting Explore = C:\Program Files\Microsoft Games\Train Simulator\ROUTES\GN_Hi-Line\paths\xplore - Agawam.pat C:\Program Files\Microsoft Games\Train Simulator\trains\consists\ChrisTrains Jet Train.con

        ------------ ---------- ------------ ----------
        Loading TRK TRP TDB DAT ACT CON
        CSTTTTTTTTTWWWWWc:\program files\microsoft games\train simulator\routes\gn_hi-line\textures\spring\


        runactivity.exe : Error : 0 : System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files\microsoft games\train simulator\routes\gn_hi-line\textures\spring\'.
        at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
        at MSTS.ACEFile.Texture2DFromFile(GraphicsDevice GraphicsDevice, String filename)
        at ORTS.SharedTextureManager.Get(GraphicsDevice device, String path)

        S(repeats) SSSSSSSSSSSSSWWWW

        runactivity.exe : Error : 0 : System.NullReferenceException: Object reference not set to an instance of an object.
        at ORTS.Viewer3D.PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
        at ORTS.UpdaterProcess.UpdateLoop()

        Comment

        • twpol
          Senior Member
          • Oct 2009
          • 434
          • United Kingdom

          #5
          Did you by any chance set Sound Detail Level to 0 in the Options? Unfortunately setting that to 0 is broken in V360 (it's been fixed in the development versions since).
          James Ross
          Open Rails Management Team
          sigpic

          Comment

          • freeway2
            Member
            • May 2010
            • 28

            #6
            Thank you James. The sound was indeed set to zero, when I changed it, Open Rails worked!
            Thank you and Chrisvw for the help.
            Tom

            Comment

            • VAISHAK124
              New Member
              • Jun 2018
              • 1

              #7
              Warning: Cannot find main track for node 44 in path F:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\Western Railways V2\PATHS\22944 Indore - Pune Express Part 2.PAT

              Warning: Invalid path F:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\Western Railways V2\PATHS\22944 Indore - Pune Express Part 2.PAT for AI train : 22944 Indore - Pune Express Part 2 ; train not started


              Error: System.NullReferenceException: Object reference not set to an instance of an object.
              at Orts.Simulation.Simulator.InitializeAPPlayerTrain( ) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 1144
              at Orts.Simulation.Simulator.InitializeAPTrains(Cance llationToken cancellation) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 521
              at Orts.Simulation.Simulator.Start(CancellationToken cancellation) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 394
              at Orts.Viewer3D.Processes.GameStateRunActivity.Start (UserSettings settings, String acttype, String[] args) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateRunActivity.cs:line 275
              at Orts.Viewer3D.Processes.GameStateRunActivity.<>c__ DisplayClass8.<Load>b__3() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateRunActivity.cs:line 149
              at Orts.Viewer3D.Processes.GameStateRunActivity.Load( ) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateRunActivity.cs:line 190
              at Orts.Viewer3D.Processes.LoaderProcess.Load() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 158
              at Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 138
              at Orts.Viewer3D.Processes.LoaderProcess.LoaderThread () in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 109
              at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
              at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
              at System.Threading.ThreadHelper.ThreadStart()


              pls help me how to get rid of this.

              Comment

              • derekmorton
                5500 Post Veteran



                • Nov 1999
                • 5699
                • Eltham, Victoria, Australia.
                • ORTS

                #8
                Do NOT attach your question to another post.

                Create your own post.

                Comment

                Working...