Results 1 to 10 of 10

Thread: System Null reference exception

  1. #1

    Default 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 Images Attached Images

  2. #2
    Join Date
    Nov 1999
    Location
    Doreen, Victoria, Australia.
    Posts
    7,040

    Default

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

  3. #3

    Default

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

  4. #4

    Default

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

  5. #5
    Join Date
    Nov 1999
    Location
    Doreen, Victoria, Australia.
    Posts
    7,040

    Default

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

  6. #6
    Join Date
    Nov 1999
    Location
    Torino, Italy.
    Posts
    870

    Default

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

  7. #7

    Default

    Sorry for the delay!

    Have attached the entire log file.Openrails log.zip

  8. #8
    Join Date
    Nov 1999
    Location
    Doreen, Victoria, Australia.
    Posts
    7,040

    Default

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

  9. #9

    Default

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

  10. #10
    Join Date
    Nov 1999
    Location
    Doreen, Victoria, Australia.
    Posts
    7,040

    Default

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

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

Posting Permissions

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