DirectX error 0x887A0005 crash fix for Marvel Rivals
This crash happens in Marvel Rivals when DirectX loses the GPU connection mid-match. Here's how to fix it step by step.
You're in the middle of a Marvel Rivals match on a high-end rig—maybe an RTX 3070 or RX 6800 XT, Windows 11, latest drivers. Suddenly the screen freezes for a second, then you get a popup: "DXGI_ERROR_DEVICE_HUNG" with error code 0x887A0005. The game closes. This usually happens during heavy action scenes when the GPU is maxed out. I've seen it most often on systems with factory-overclocked cards or when MSI Afterburner is running.
What actually causes 0x887A0005?
DirectX sends a chunk of work to the GPU and expects a response within a few seconds. If the GPU doesn't respond—because it's overloaded, overclocked too high, or a driver bug kicks in—DirectX reports a "device hung" situation. Marvel Rivals uses Unreal Engine 5, which pushes modern GPUs hard with Nanite and Lumen. That extra load makes borderline overclocks unstable. The real fix is to give the GPU more breathing room.
Step-by-step fix for 0x887A0005
- Update your GPU drivers cleanly.
Don't just install over old drivers. Use Display Driver Uninstaller (DDU) in Safe Mode to remove everything. Then install the latest driver from Nvidia or AMD. After the install, restart. You should see a clean driver version in the GPU control panel. - Turn off any GPU overclocking software.
Close MSI Afterburner, EVGA Precision X1, or AMD Adrenalin auto-overclock. Even a +50 MHz core offset can cause this crash under load. Set everything back to stock clocks and voltages. Then restart the game and test for a match. - Disable GPU hardware acceleration in Windows.
Go to Settings > System > Display > Graphics. Toggle "Hardware-accelerated GPU scheduling" to Off. This stops Windows from interfering with how the game uses the GPU. You'll need to restart your PC after this change. - Reduce graphics settings in Marvel Rivals.
In the game's video settings, drop these: Shadow Quality to Low, Global Illumination to Medium, and set Anti-Aliasing to TSR Low. Disable Ray Tracing (if it's on). Also set Resolution Scale to 100% (no upscaling). This cuts GPU load by about 15-20% on average. - Verify game files (Epic Games Store).
Open Epic Games Launcher, go to Library, click the three dots on Marvel Rivals, select Manage, then Verify. This takes a few minutes. It replaces any corrupted or missing files without you needing to reinstall the whole game. I've had this fix it for several users on the Nvidia forums. - Change DirectX version if possible.
Marvel Rivals defaults to DirectX 12. Some players have a stable experience switching to DirectX 11. Add this launch option in Epic: go to Library, click the three dots on the game, select Manage, then in the Launch Options box type-dx11. Run the game. If it works better, keep it. If not, remove the launch option. - Increase TDR timeout (advanced).
This is the Windows timeout that DirectX uses to decide the GPU is hung. By default it's 2 seconds. You can raise it to 8 or 10 seconds to stop the crash when the GPU is just slow. Open Registry Editor (regedit), go toHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers. Right-click, create a new DWORD (32-bit) namedTdrDelay, set it to 8 (decimal). Restart. This gives the GPU more time to finish big frame chunks without triggering the error.
What if it still crashes after all this?
If you're still seeing 0x887A0005 after these steps, there's a good chance your GPU isn't getting enough power. Check your power supply unit (PSU) wattage. A 650W PSU for an RTX 3080 is borderline under load. Also monitor GPU temps with a tool like HWMonitor—if the core hits 85°C or higher, you might have a thermal throttle issue. Clean dust from your case fans and GPU heatsink. As a last resort, underclock the GPU core by -100 MHz using MSI Afterburner (but don't touch voltage). This reduces performance by about 5% but eliminates the crash for most people.
Was this solution helpful?