DXGI_ERROR_DEVICE_REMOVED on UpdateBounds?

A user got this crash, I’m not sure what caused it, it looks like the window resized? But that shouldn’t be possible…

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()
at MonoGame.Framework.WinFormsGameWindow.OnClientSizeChanged(Object sender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnClientSizeChanged(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.Form.WndProc(Message& m)
at Microsoft.Xna.Framework.Windows.WinFormsGameForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What type of project is this?

UWP?
Desktop?

Can you recreate the issue and use the mentioned method to identify the exact issue?

Message: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.

This is a Windows game.

The error seems to appear randomly, from different code locations. We are getting it on our development systems also. Googling the error gives very little useful information, something about a video card being removed, or a driver being updated. Totally unrealistic scenarios.

Is your graphicsdevicemanager being disposed? Or are you forgetting an applychanges() to it somewhere?

This seems to conflict with the title :slight_smile: Which is it?

Desktop? UWP?

[UWP = Universal Windows Platform also known as UAP previously]

Desktop

                        :penguin::elephant:

Now you can narrow down the questions…

[Rambling]

People for some reason assume we know their project head to toe…

if only…

[/Rambling]

Excuse me, but… why ask for more information unless you have some possible answers?

Is this your first forum?

It saves time for others who can help with the issue, but you need to give as much relevant data which if not provided already may put them off from bothering…

**

You have to help us to help you…

**

Also you are often too vague with your explanations… I think I saw this in another of your threads… might have been another but you should consider understanding, we do not magically know your project… if you get annoyed at people asking questions… then you really should drop asking for support…

For all we know your project is on the Atari 2600…

Food For Thought…

Also, whether I have an answer or not is irrelevant, I may be wishing to partake in the discovery or explanation of the resolution for my own interests…

This may help you understand what a forum is for:

More specifically:

1
A meeting or medium where ideas and views on a particular issue can be exchanged.

And:

1.1
An Internet site where users can post comments about a particular issue or topic and reply to other users’ postings.

I hope this helps…