Does anybody know how to fix d3d device being lost?

I am getting the dreaded “Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0020 - ‘INTERNAL_ERROR’)” on a Windows 10 x64 with NVIDIA RTX 2060 GPU and AMD Ryzen CPU. I am running UE5.2. All drivers updated to latest.

I can cause the crash every time just by renaming folders in the project. But it is doing it at random times too.

The problem has only just started after I switched to the Studio driver and changed NVDIA control panel settings trying to improve performance (I have switched the settings back but it is still happening). I also switched from Vulkan (that was crashing when rendering) to use DirectX11. but I did a few other things too so it might not be caused by any of these.

This is very likely because of a hardware or hardware-related problem.
The kinds of problems that cause these errors are:

  • motherboard BIOS bugs
  • motherboard hardware bugs
  • graphics card BIOS bugs
  • graphics card hardware bugs
  • corruption on hard disk
  • additional management software (fan controllers, GPU boosters, etc)
  • bad hardware (bad RAM, bad CPU, corroded connectors, microcracks, bad cooling, …)

To debug this, you’ll have to try the same project on another system. If the same action works fine there, then it’s very likely a hardware problem. To debug that, you’re going to have to go through the hardware stress test procedures that you can find on sites like tomshardware and such – they take forever, they require lots of boring long tests, and they may or many not help you isolate the problem (as opposed to just detect that, yes, there is a problem!)
It sucks, but there’s no better option. Unless you can afford to just buy a new computer and hope that one does better :slight_smile:

Seems a drastic assumption to have to buy new computer. Esp since its been running fine until today, and I think it is more to do with settings I changed (I changed a lot last night trying to get the rendering working).

FYI since resetting the NVIDIA graphics card back to default settings for the “unreal engine” program it hasn’t happened again. Fingers’ x’d it was something in there it didn’t like.

I’m glad it’s working for you.
Computers are so complex, nobody understands all the bits of the pipeline at the same time, so “it works for me now” is the best we can hope for sometimes :-/

1 Like

What worked in my case is to set scalability “on” in target hardware, i also set directx 12 as default rhi.
First I changed Tdr Delay and disabled nvidia mpo like someone advised but this didn’t solve the problem. I didn’t revert these settings back to default though.
By the way I have a gtx 1060 6gb and haven’t geforce experience.
I3 7100.
Unreal Engine 5.1

I also got this issue on Windows 11 using NVIDIA 4070 with latest game ready drivers and UE 4.27. I don’t think its a windows OS version issue

Getting the same problem on AMD. Trying the time delay registry, but I also reinstalled windows and changed to the latest drivers. 5600x3d and 6950xt

Weird. I only get that crash when using UE5

To fix the “D3D device being lost” error, try the following steps:

  1. Update Graphics Drivers: Ensure your graphics drivers are up to date.
  2. Check for Overheating: Ensure your GPU isn’t overheating.
  3. Adjust In-Game Settings: Lower the graphics settings in the game.
  4. Disable Overclocking: If your GPU is overclocked, revert to default settings.
  5. Reinstall DirectX: Update or reinstall DirectX.
  6. Verify Game Files: If you’re using a platform like Steam, verify the integrity of the game files.

If the problem persists, it might be hardware-related, and consulting with a professional could be necessary.

Thanks for this. Just to add a bit more - I had this error with a B450 MOBO + AMD RX580 using 4.27. I recently upgraded to an AMD RX6600XT GPU + X570 + more powerful PSU and still have this error in my old 4.27 project (trying to move to 5.4). Setting the graphics setting from “Let Windows Decide” to “High Performance” for Unreal Engine in the Windows Settings > Graphics Settings (Windows 11) as you suggested has worked for me (so far anyway). Ta.