Skip to content

DSAS Fails to Handle the Case of DXGI_ERROR_DEVICE_REMOVED #57

@Caritas-Dei

Description

@Caritas-Dei

An unhandled exception is thrown when DXGI_ERROR_DEVICE_REMOVED occurs. In my case, it was because I left DSAS open during graphics driver updating. Occurs on DSAS 4.9.7.

Stacktrace:

SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.

   at SharpDX.Result.CheckError()
   at SharpDX.DXGI.SwapChain.ResizeBuffers(Int32 bufferCount, Int32 width, Int32 height, Format newFormat, SwapChainFlags swapChainFlags)
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.CreateSizeDependentResources() in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Platform\Graphics\GraphicsDevice.DirectX.cs:line 758
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.OnPresentationChanged() in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Platform\Graphics\GraphicsDevice.DirectX.cs:line 898
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset() in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 672
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset(PresentationParameters presentationParameters) in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Graphics\GraphicsDevice.cs:line 684
   at Microsoft.Xna.Framework.GraphicsDeviceManager.ApplyChanges() in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\GraphicsDeviceManager.cs:line 360
   at MonoGame.Framework.WinFormsGameWindow.UpdateBackBufferSize() in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Platform\Windows\WinFormsGameWindow.cs:line 443
   at MonoGame.Framework.WinFormsGameWindow.OnResize(Object sender, EventArgs eventArgs) in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Platform\Windows\WinFormsGameWindow.cs:line 384
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.Form.OnResize(EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Microsoft.Xna.Framework.Windows.WinFormsGameForm.WndProc(Message& m) in C:\Users\Green\GitHub\meme\DSAnimStudio\MonoGame\MonoGame.Framework\Platform\Windows\WinFormsGameForm.cs:line 80
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

If further details are needed, the full details of the unhandled exception are available but contain personal system information. Please DM me on Discord for these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions