Total Miner Forums

Testing => Bug Reports [PC Beta] => Topic started by: united4isak on February 20, 2021, 10:26:53 PM

Title: Scripting Crash
Post by: united4isak on February 20, 2021, 10:26:53 PM
Happened when I was in the middle of Scripting and then exited Total Miner to do something else. Then I come back and see this.

Total Miner.  Please take a photo of this screen and post it on TotalMinerForums.net, so that we can fix it. Thank you.

System.InvalidOperationException: A previous Draw call threw an unhandled exception. See InnerException for details. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at StudioForge.TotalMiner.Screens.GameplayScreen.SetupRenderTargets()
   at StudioForge.TotalMiner.Screens.GameplayScreen.LoadContent()
   at StudioForge.Engine.GameState.ScreenManager.LoadContent()
   at Microsoft.Xna.Framework.DrawableGameComponent.DeviceCreated(Object sender, EventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Microsoft.Xna.Framework.GraphicsDeviceManager.OnDeviceCreated(Object sender, EventArgs args)
   at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
   at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
   at Microsoft.Xna.Framework.GraphicsDeviceManager.EnsureDevicePlatform()
   at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.BeginDraw()
   at Microsoft.Xna.Framework.Game.BeginDraw()
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Paint(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameWindow.OnPaint()
   at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_Paint(Object sender, PaintEventArgs e)
   --- End of inner exception stack trace ---
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at StudioForge.Engine.Game.BaseGame.Run[T]()
Title: Re: Scripting Crash
Post by: Crab on February 22, 2021, 11:03:43 AM
Hi united4isak,

Thanks for reporting this. I hope the problem doesn't affect you too much.

Currently the game is going through an intense re-design to ensure it works well on PC with Multiplayer.

With that in mind, please keep reporting issues when you come across them as they will all be fixed in due course.

Thanks,
Crab.