Sorry if this is already known about...
There seems to be an issue with control cars crashing the sim.
Using testing version: T1.5.1-794-g4cad06780
Tried initially with some of my own physics/eng files (that worked previously) and noticed the issue. Tested with the test stock for control cars from the coals to newcastle site (au_ctn_test_model_dmu_control_trailer_v2.exe) and results in same issue.
It seems rolling stock set up as control cars cause the sim to crash or not load at all. In the test today the sim did not load, I just get the following error message (also shown at bottom of log file):
Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Orts.Simulation.RollingStocks.MSTSControlTrailerCar.Update(Single elapsedClockSeconds) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\Orts.Simulation\Simulation\RollingStocks\MSTSControlTrailerCar.cs:line 199
at Orts.Simulation.Physics.Train.physicsUpdate(Single elapsedClockSeconds) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 1964
at Orts.Simulation.Physics.Train.Update(Single elapsedClockSeconds, Boolean auxiliaryUpdate) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 1847
at Orts.Simulation.Simulator.Update(Single elapsedClockSeconds) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\Orts.Simulation\Simulation\Simulator.cs:line 848
at Orts.Viewer3D.Viewer.Update(RenderFrame frame, Single elapsedRealTime) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Viewer.cs:line 748
at Orts.Viewer3D.Processes.UpdaterProcess.Update() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 128
at Orts.Viewer3D.Processes.UpdaterProcess.DoUpdate() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 108
at Orts.Viewer3D.Processes.UpdaterProcess.UpdaterThread() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 74
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
With my own stock I did get the simulation to load, but as soon as OR was un-paused after starting it crashed with the same or similar error.
Everything seems to work ok with the control car trailing but trying to drive from the control car results in game crash.
Hopefully not too difficult to fix.
Regards;
-Paul
Attached File(s)
-
OpenRailsLog.txt (19.46K)
Number of downloads: 39