What is this error message telling me. It happens at a certain point, going west on the Northern Montana route and it occurs whether I start 60 miles before it, or 5 before it?
Jerry Sullivan
Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xna.Framework.Graphics.IndexBuffer.Gener ateIfRequired()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Pl atformApplyState(Boolean applyShaders)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Pl atformDrawInstancedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 startIndex, Int32 primitiveCount, Int32 instanceCount)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dr awInstancedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 startIndex, Int32 primitiveCount, Int32 instanceCount)
at Orts.Viewer3D.ShapePrimitiveInstances.Draw(Graphic sDevice graphicsDevice) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Shape s.cs:line 1864
at Orts.Viewer3D.SceneryMaterial.Render(GraphicsDevic e graphicsDevice, IEnumerable`1 renderItems, Matrix& XNAViewMatrix, Matrix& XNAProjectionMatrix) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Mater ials.cs:line 921
at Orts.Viewer3D.RenderFrame.DrawSequences(GraphicsDe vice graphicsDevice, Boolean logging) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 911
at Orts.Viewer3D.RenderFrame.DrawSimple(GraphicsDevic e graphicsDevice, Boolean logging) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 830
at Orts.Viewer3D.RenderFrame.Draw(GraphicsDevice graphicsDevice) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 730
at Orts.Viewer3D.Processes.RenderProcess.Draw() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\RenderProcess.cs:line 316
at Orts.Viewer3D.Processes.Game.Draw(GameTime gameTime) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\Game.cs:line 149
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.TickOnIdle(O bject sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.Sys tem.Windows.Forms.UnsafeNativeMethods.IMsoComponen t.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Orts.Program.Main(String[] args) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Program.cs:lin e 66
Jerry Sullivan
Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xna.Framework.Graphics.IndexBuffer.Gener ateIfRequired()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Pl atformApplyState(Boolean applyShaders)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Pl atformDrawInstancedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 startIndex, Int32 primitiveCount, Int32 instanceCount)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dr awInstancedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 startIndex, Int32 primitiveCount, Int32 instanceCount)
at Orts.Viewer3D.ShapePrimitiveInstances.Draw(Graphic sDevice graphicsDevice) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Shape s.cs:line 1864
at Orts.Viewer3D.SceneryMaterial.Render(GraphicsDevic e graphicsDevice, IEnumerable`1 renderItems, Matrix& XNAViewMatrix, Matrix& XNAProjectionMatrix) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Mater ials.cs:line 921
at Orts.Viewer3D.RenderFrame.DrawSequences(GraphicsDe vice graphicsDevice, Boolean logging) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 911
at Orts.Viewer3D.RenderFrame.DrawSimple(GraphicsDevic e graphicsDevice, Boolean logging) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 830
at Orts.Viewer3D.RenderFrame.Draw(GraphicsDevice graphicsDevice) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Rende rFrame.cs:line 730
at Orts.Viewer3D.Processes.RenderProcess.Draw() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\RenderProcess.cs:line 316
at Orts.Viewer3D.Processes.Game.Draw(GameTime gameTime) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\Game.cs:line 149
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.TickOnIdle(O bject sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.Sys tem.Windows.Forms.UnsafeNativeMethods.IMsoComponen t.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Orts.Program.Main(String[] args) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Program.cs:lin e 66





Comment