DirectX · high

How to fix DXGI_ERROR_DEVICE_REMOVED (0x887A0005)

DirectX troubleshooting guide

What this error means

A game or app lost its connection to the graphics card and had to stop. Microsoft lists the situations that cause it: the graphics driver was updated, a laptop switched from its power-saving to its performance GPU, the graphics card stopped responding and was reset, or a graphics adapter was attached or removed. The game may show a related reason: DXGI_ERROR_DEVICE_HUNG (0x887A0006) or DXGI_ERROR_DEVICE_RESET (0x887A0007) mean badly formed graphics commands, and DXGI_ERROR_DRIVER_INTERNAL_ERROR (0x887A0020) means the driver hit an error and reset the device.

Updated

Applies to
Windows 11 and Windows 10, DirectX 11 and 12 games
Difficulty
Beginner to intermediate
Before changes
Low

Reviewed by Matyáš Rada · Documentation checked: 2026-10-31 · Checked against Microsoft's DXGI error and Direct3D device-removed documentation; not tested with every game.

Before you begin

Write down the exact message and any reason code the game shows (HUNG, RESET or DRIVER_INTERNAL_ERROR). If the whole PC crashes with a blue screen instead, see the VIDEO_TDR_FAILURE guide on this site. If Windows cannot start, see the startup guide.

Work through these checks

0 of 7 complete
01Note when it happens and which reason is shown

Microsoft's list of causes is short, and the situation usually tells you which one applies.

  1. Did it happen while a graphics driver was updating in the background? Then simply restart the game.
  2. On a laptop, did it happen when plugging in or unplugging the charger or a monitor? Go to step 4.
  3. Does it happen in one game under heavy load? Continue with step 2.
  4. Open Event Viewer (Win + R, eventvwr.msc) > Windows Logs > System and look for Display warnings that the display driver stopped responding at the same time.
What to expect

You know whether a driver update, GPU switching or a GPU hang caused it.

If it does not help

"Display driver stopped responding" warnings mean the GPU hung and was reset; steps 2, 3 and 6 address that.

Browse related errors
02Reinstall the graphics driver cleanly

A driver upgrade causes device removal, and a damaged or buggy driver causes the hangs behind it.

  1. Download the current driver for your graphics card from NVIDIA, AMD or Intel (laptops: also check the laptop maker).
  2. Run the installer and choose its clean installation or factory reset option, if it has one.
  3. If the error started after a driver update, install the previous version instead.
What to expect

The game runs without the error.

If it does not help

If it continues, completely remove the driver in Safe Mode with Display Driver Uninstaller (DDU) and reinstall.

Browse related errors
03Remove GPU and memory overclocks

Unstable clocks make the GPU stop responding, which Windows handles by resetting it.

  1. Reset any overclock or undervolt in MSI Afterburner, the NVIDIA app or AMD Software, and close those tools.
  2. Turn off XMP or EXPO memory profiles and CPU overclocks in the BIOS for testing.
  3. For a factory-overclocked NVIDIA card, turn on Help > Debug Mode in the NVIDIA Control Panel to test at reference clocks.
What to expect

The error stops at stock settings.

If it does not help

Re-enable settings one by one to find the unstable one.

Browse related errors
04Set the game to use the performance GPU

Microsoft lists switching from the power-saving to the performance graphics adapter as a cause of device removal.

  1. Open Settings > System > Display > Graphics.
  2. Find the game (use Add desktop app or Browse if it is missing), open its options and choose High performance (the dedicated GPU).
  3. Keep the laptop on its charger while gaming, and avoid connecting or disconnecting monitors during play.
What to expect

The game stays on one GPU and the error stops.

If it does not help

Some laptops also have a GPU mode switch in the maker's control app or the BIOS (for example a dedicated GPU only mode).

Browse related errors
05Update and repair the game

Microsoft describes HUNG and RESET as badly formed commands sent by the application, which game updates fix.

  1. Install the latest game update and verify or repair the game files in its launcher (Steam: Properties > Installed Files > Verify integrity of game files).
  2. Try the game's other graphics API option if it has one (for example DirectX 11 instead of 12), and turn off overlays.
  3. Lower the graphics preset, especially ray tracing and upscaler options, to test.
What to expect

The game runs stably.

If it does not help

If it happens only in one game with current drivers, check the game's official support pages for known issues and report it to the developer.

Browse related errors
06Check temperatures and power

An overheating or underpowered graphics card stops responding under load.

  1. Watch GPU temperature while gaming (Task Manager > Performance, or the GPU maker's overlay).
  2. Clean dust from the card and case, and check that the fans spin.
  3. Make sure all PCIe power connectors on the card are fully inserted and the power supply meets the card maker's recommendation.

Switch off and unplug the PC before working inside it.

What to expect

Temperatures stay within specification and the card has stable power.

If it does not help

If the card runs very hot even when clean, contact its maker.

Browse related errors
07Follow the hardware checks if it continues

Repeated GPU resets that no setting fixes can mean a failing graphics card or system instability.

  1. Run Windows Memory Diagnostic (Win + R, mdsched.exe) to rule out RAM.
  2. Update the BIOS and chipset drivers from your PC or motherboard maker.
  3. Test the graphics card in another PC, or another card in yours, if possible.
What to expect

You find out whether the graphics card or another part is faulty.

If it does not help

The VIDEO_TDR_FAILURE guide on this site covers GPU hangs in more depth.

Browse related errors

Possible causes

  • The graphics card stopped responding and Windows reset it
  • A graphics driver update or a damaged driver installation
  • Unstable GPU overclock, undervolt or memory settings
  • Switching between integrated and dedicated graphics on laptops
  • A game bug that sends invalid graphics commands

Useful Windows tools

These commands open Windows tools. Review changes before applying them.

dxdiag
eventvwr.msc

Sources & further reading