What DXGI_ERROR_DEVICE_HUNG means
DXGI (DirectX Graphics Infrastructure) is the part of Windows a game talks to when it draws on the graphics card. Microsoft defines DXGI_ERROR_DEVICE_HUNG (0x887A0006) as the application's device failing due to badly formed commands sent by the application. On a gaming PC, the common real-world trigger is the graphics driver hanging until Windows resets the card, which leaves the game with a device it can no longer use.
Behind the code sits TDR (Timeout Detection and Recovery): when the card takes longer than expected, Windows resets the graphics path so the system stays responsive. The desktop survives that reset. The game usually cannot, so it closes and shows this error.
A sibling code, DXGI_ERROR_DEVICE_REMOVED (0x887A0005), is documented as the card being physically removed or a driver upgrade occurring; the game experiences it the same way, as a device that is suddenly gone. The same tests below apply to both. Neither code says why the card stopped answering.
First, find out how far it reaches
Three questions narrow it down before you change anything.
- Does every 3D game crash this way, or only one title?
- Did it start after overclocking or undervolting the card, or after a driver update?
- Is Event ID 4101 logged at the crash time? Open Event Viewer → Windows Logs → System and look for a Display warning at that minute.
A 4101 at crash time confirms the driver hung and Windows reset it — the tune and driver sections apply. No 4101, with only one game failing, points at that game's files first. If the screen goes black, the fans run at full speed, and only the power button works, that is a different fault; see the related black-screen page.
NoahNoah reads the System log around each crash and lists the 4101 entries it finds, then lists the installed software and versions. An empty result does not prove nothing failed, because a hard hang can end before Windows writes the event. Noah cannot see the game's shaders — the small programs that draw its effects — or its engine state, and it cannot measure GPU temperature or power draw. Run this check on your PC →
An overclock or undervolt is unstable
Every game crashes, and the crashes started after clocks or voltages changed.
This is the classic DEVICE_HUNG trigger. A tune that holds on the desktop can fail in a heavy scene, where the card holds high clocks for minutes. System memory counts too: XMP (Intel) and EXPO (AMD) run memory at its rated speed instead of the board's slower default, and an unstable profile can surface as a graphics crash.
Fixreturn every tune to stock — GPU clocks and voltage, and memory to its default — then replay the exact scene that crashed. If it runs clean, bring the tune back in small steps until the crash returns. The last step changed is the cause.
The driver is damaged or buggy
Every game crashes, and the first crash landed right after a driver update.
A driver update replaces the very software TDR caught hanging. A damaged install, from an interrupted update, looks the same. When the timing lines up, treat the driver as the suspect before the hardware.
Fixdownload the current driver from your card maker's site — NVIDIA, AMD, or Intel — run the installer, and choose its clean-install option (on NVIDIA, Custom (Advanced) then Perform a clean installation). Restart, then replay the crashing scene.
If it started right after an update and the same version clean-installed changes nothing, roll back. In Device Manager → Display adapters, open the card's Properties → Driver tab and choose Roll Back Driver if it is offered.
NoahNoah lists the software installed on the PC, including the graphics driver package and its version, so an update can be dated against the first crash. Noah has no built-in way to install or roll back a graphics driver; that step stays with you and the maker's installer. Run this check on your PC →
Only one game crashes
Other 3D games run clean. One title fails, often in the same scene.
When only one game loses the device, suspect its own files — a damaged shader cache or a half-applied patch — before the card. Verifying replaces damaged files without a full reinstall.
Fixin Steam, right-click the game, choose Properties → Installed Files → Verify integrity of game files. In the Epic Games Launcher, click the game's … menu, choose Manage, then Verify. Then replay the crashing scene. As a test, cap the game's frame rate (frames drawn per second) for one run. A crash that stops at the lower load points back at tune, heat, or power.
Heat and power still apply when the crash needs a long session. Watch the GPU temperature overlay — the on-screen readout from your card maker's app — during the scene. Reseat the GPU power cables with the PC off and unplugged if it runs hot or browns out.
Every game still fails
Stock clocks, a clean driver, and verified files — and the error survives.
Repair Windows' own files. DISM supplies good copies of system files, and SFC (System File Checker) uses them to replace damaged ones. Microsoft says to run DISM before SFC.
Fixtype cmd in the Search box, right-click Command Prompt, and choose Run as administrator. Then run these one at a time:
C:\Windows\System32> DISM.exe /Online /Cleanup-image /RestorehealthRun in the administrator Command Prompt. It can take several minutes. Wait until it reports the operation completed successfully.
C:\Windows\System32> sfc /scannowRun after DISM finishes. Don't close the window until verification reaches 100%. Then restart and test again.
NoahNoah has no built-in DISM or SFC repair. It can read the System log again afterwards, so a repeat 4101 after the repair is visible instead of guessed.
What to avoid
- Raising TdrDelay in the registry — Windows' database of system and program settings. Microsoft documents those keys for testing and debugging. A longer timeout only stretches each freeze before the reset; the hang survives.
- Downloading a "fixed" game file or driver from a forum or driver site. Those copies come from unknown sources. Verify files in the launcher and get drivers from the card maker.
- Reinstalling Windows on the first DEVICE_HUNG. Stock clocks, a clean driver, and a file verify answer most cases, and each takes minutes.