Duck Game

Duck Game

View Stats:
Joseph 5 Feb, 2023 @ 10:36am
game loads to start but when I am actually tabbed into the game and press keys it crashes
Crash Source:
Mods apparently were not responsible for this crash.

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'GraphicsDevice'.
at Microsoft.Xna.Framework.Helpers.CheckDisposed(Object obj, IntPtr pComPtr)
at Microsoft.Xna.Framework.Graphics.DepthStencilState.Apply(GraphicsDevice device)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.set_DepthStencilState(DepthStencilState value)
at Microsoft.Xna.Framework.Graphics.SpriteBatch.SetRenderState()
at Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
at DuckGame.MTSpriteBatch.End() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Render\MTSpriteBatch.cs:line 128
at DuckGame.Level.DoDraw() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 1050
at DuckGame.Level.DrawCurrentLevel() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 198
at DuckGame.MonoMain.RunDraw(GameTime gameTime) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 2524
at DuckGame.MonoMain.Draw(GameTime gameTime) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 2246
Last 8 Lines of Console Output:
Level Switch (null -> BIOSScreen)
Initializing level (255)
Level Switch (BIOSScreen -> CorptronLogo)
Initializing level (255)
Level Switch (CorptronLogo -> AdultSwimLogo)
Initializing level (255)
Level Switch (AdultSwimLogo -> TitleScreen)
Initializing level (255)

Date: 02/05/2023 18:33:02
Version: 1.1.7717.16376
Platform: Windows 10 (Steam Build 8782838)(SFX)
Online: 0
Mods: nomods
Time Played: 00:00:18 (935)
Special Code: finished DuckGame.YellowBarrel, DuckGame, Version=1.1.8175.33388, Culture=neutral, PublicKeyToken=null
Resolution: (A)1920x1080 (G)1280x720 (Windowed)(RF 2)
Level: DuckGame.TitleScreen
Command Line: