System Null reference exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • achuaswin
    New Member
    • Nov 2016
    • 5

    #1

    System Null reference exception

    Hi All,

    Hope all are doing well!!

    During the 16128_Guv_ms_exp activity in southern railway v2. I am facing the attached error around the play schedule railway time of 6:26 AM. Dont know exactly what is wrong. Request your assistance in this regards.

    Thanks
    Attached Files
  • derekmorton
    5500 Post Veteran



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

    #2
    You always need to post your openrails.txt here when you get a problem.
    Its on your desktop.

    Comment

    • achuaswin
      New Member
      • Nov 2016
      • 5

      #3
      Error: System.NullReferenceException: Object reference not set to an instance of an object.
      at Orts.Simulation.AIs.AuxActionHornItem.HandleAction (Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2027
      at Orts.Simulation.AIs.AuxActionHornItem.ProcessActio n(Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2061
      at Orts.Simulation.AIs.AuxActionsContainer.ProcessGen Action(AITrain thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 335
      at Orts.Simulation.AIs.AITrain.AIUpdate(Single elapsedClockSeconds, Double clockTime, Boolean preUpdate) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AITrain.cs:line 691
      at Orts.Simulation.AIs.AI.AIUpdate(Single elapsedClockSeconds, Boolean preUpdate) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AI.cs:line 552
      at Orts.Simulation.Simulator.Update(Single elapsedClockSeconds) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 680
      at Orts.Viewer3D.Viewer.Update(RenderFrame frame, Single elapsedRealTime) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Viewe r.cs:line 588
      at Orts.Viewer3D.Processes.GameStateViewer3D.Update(R enderFrame frame, Double totalRealSeconds) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateViewer3D.cs:line 121
      at Orts.Viewer3D.Processes.UpdaterProcess.Update() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 128
      at Orts.Viewer3D.Processes.UpdaterProcess.DoUpdate() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 108
      at Orts.Viewer3D.Processes.UpdaterProcess.UpdaterThre ad() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 74
      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()

      Comment

      • achuaswin
        New Member
        • Nov 2016
        • 5

        #4
        Below is the error message:

        Error: System.NullReferenceException: Object reference not set to an instance of an object.
        at Orts.Simulation.AIs.AuxActionHornItem.HandleAction (Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2027
        at Orts.Simulation.AIs.AuxActionHornItem.ProcessActio n(Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2061
        at Orts.Simulation.AIs.AuxActionsContainer.ProcessGen Action(AITrain thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 335
        at Orts.Simulation.AIs.AITrain.AIUpdate(Single elapsedClockSeconds, Double clockTime, Boolean preUpdate) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AITrain.cs:line 691
        at Orts.Simulation.AIs.AI.AIUpdate(Single elapsedClockSeconds, Boolean preUpdate) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AI.cs:line 552
        at Orts.Simulation.Simulator.Update(Single elapsedClockSeconds) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 680
        at Orts.Viewer3D.Viewer.Update(RenderFrame frame, Single elapsedRealTime) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Viewe r.cs:line 588
        at Orts.Viewer3D.Processes.GameStateViewer3D.Update(R enderFrame frame, Double totalRealSeconds) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateViewer3D.cs:line 121
        at Orts.Viewer3D.Processes.UpdaterProcess.Update() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 128
        at Orts.Viewer3D.Processes.UpdaterProcess.DoUpdate() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 108
        at Orts.Viewer3D.Processes.UpdaterProcess.UpdaterThre ad() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 74
        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()

        Comment

        • derekmorton
          5500 Post Veteran



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

          #5
          You will need to attach the zip of the complete log, there is not enough information here.

          Comment

          • csantucci
            Senior Member
            • Nov 1999
            • 856
            • Torino, Italy.

            #6
            Waiting that you do as Derek suggests, you should use a newer version of OR. You are using stable release 1.2, which is very outdated. I suggest you download the latest testing version from here http://www.openrails.org/download/program/ .
            sigpic

            Comment

            • achuaswin
              New Member
              • Nov 2016
              • 5

              #7
              Sorry for the delay!

              Have attached the entire log file.Openrails log.zip

              Comment

              • derekmorton
                5500 Post Veteran



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

                #8
                When you have updated OR, try it again and attach the log if necessary.

                Comment

                • achuaswin
                  New Member
                  • Nov 2016
                  • 5

                  #9
                  I have updated the OR, but getting the error again.Openrails log (2).zip

                  Comment

                  • derekmorton
                    5500 Post Veteran



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

                    #10
                    Could you now run the testing version as requested by Carlo.

                    This will provide other information, the bug may already be fixed.

                    Comment

                    Working...