# Does anybody know how to fix d3d device being lost?

**URL:** <https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, UE4-26\
**Created:** [June 14, 2021, 11:16am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377 "2021-06-14T11:16:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mexicanparfait](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mexicanparfait/32/88715_2.png) [@mexicanparfait](https://forums.unrealengine.com/u/mexicanparfait)\
**Post date:** [June 14, 2021, 11:16am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/1 "2021-06-14T11:16:55Z")

</div>

Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0020 - ‘INTERNAL\_ERROR’)  
this only happens in UE4 and it crashes every 10-15 minutes randomly, while i can use UE5 perfectly with zero crashes i have not got one crash from UE5.

i have uninstalled UE4, verified the files and the problem persists. i also have my gpu up to date using the studio drivers, windows is up to date, and i have no antivirus.

im using a 2070super, ryzen 5 3600, 32G of ram so my specs are clearly above the recommended especially since i can run UE5 flawlessly with the new features like lumen and not get any crashes at all.

---

<div class="post-metadata">

**Author:** ![Necronomicron8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/necronomicron8/32/88714_2.png) [@Necronomicron8](https://forums.unrealengine.com/u/Necronomicron8)\
**Post date:** [June 28, 2021, 3:52am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/2 "2021-06-28T03:52:49Z")

</div>

I have it in both 4.26 and 5.0, but I don’t have it in 4.23. The thing I hate the most in this situation is that there is no proper support. I can’t submit a bug report to somebody and then get simple: «Hey, we are aware and working on that!»  
We are not alone with this problem but this problem isn’t very common either.  
[My issue](https://answers.unrealengine.com/questions/1031583/unreal-engine-is-exiting-due-to-d3d-device-being-l-34.html).

---

<div class="post-metadata">

**Author:** ![alitali](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alitali](https://forums.unrealengine.com/u/alitali)\
**Post date:** [July 8, 2021, 4:45pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/3 "2021-07-08T16:45:28Z")

</div>

Weird. I only get that crash when using UE5

---

<div class="post-metadata">

**Author:** ![Ridderhaspels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ridderhaspels](https://forums.unrealengine.com/u/Ridderhaspels)\
**Post date:** [July 17, 2021, 3:24pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/4 "2021-07-17T15:24:42Z")

</div>

I’ve the same issue with 4.26 and .27. No problems with UE5 too.  
Do you have the issue with raytracing enabled or also with out raytracing enabled?

Cheers,  
Ridder

---

<div class="post-metadata">

**Author:** ![NilsonLima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NilsonLima](https://forums.unrealengine.com/u/NilsonLima)\
**Post date:** [July 17, 2021, 3:55pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/5 "2021-07-17T15:55:37Z")

</div>

I was building a second gamedev machine with some parts I had laying around to use at my father’s (he is ill and need someone to be there for few days) and I started to have “D3D device being lost” with some projects that my main machine was not showing. So I will present a comparison between both hardware and the software fix which removed the issue, at least for now.

main machine: AMD Ryzen 1700 with 32GB RAM and RTX 3070 8GB, project files on a NVMe SSD and tools on a SATA hard drive, OS into a SATA SSD. Motherboard ASUS with 450 chipset

machine with issues: Intel i5 with 32GB RAM and RX5700XT 8GB, project files on a SATA hard drive, tools on a SATA hard drive, OS into a SATA SSD. Motherboard ASUS with B85 chipset

There were project with not much complex shaders which were ok on the second machine, but the projects with complex shaders was hanging for a bit, terminating with a crash reporting the message in question. So, all pointed out that a long operation was making the software stack at the very bottom to think there were issues with the GPU and sent the fault, which was producing then a fault cascade on all the upper software layers, so meaning something between Windows 10 and the GPU drivers.  
Then I remembered that Allegorithmic has presented in the past some changes into Windows 10 registry to add a delay to the GPU to give some time for the GPU to finish a long operation and then not producing that fault. These are the steps they suggested:

### 1 - Open the Run window

Click on **Start** then **Run** or press the **Windows** and **R key**.  
It will open the **Run** window.

### 2 - Launch the registry editor

Type " **regedit**" in the text field and press " **OK**".

### 3 - Navigate to the GraphicsDrivers registry key

The registry window will open.  
In the left pane, navigate in the tree to the **GraphicsDrivers** key by going into: **Computer\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers**

Be sure to **stay on** “GraphicsDrivers” and **to not click** on the Registry **keys below** before going through the next steps.

### 4 - Add or Edit the TdrDelay value

If the **TdrDelay** value **doesn’t exist yet** , right-click in the right pane and choose **New \> DWORD (32bit) Value**. Name it " **TdrDelay**". The case is important, be sure to follow it (and check that there are no other characters such as trailing space).

In the **right pane** , double click on the value **TdrDelay**. Change the **Base** setting to **Decimal**. Set the value to something else than the default **2** (we recommend **60** ).

This value indicates in seconds how long the operating system will wait before considering that the GPU is unresponsive during a computation.

### 5 - Add or Edit the TdrDdiDelay value

If the **TdrDdiDelay** value **does not exist** , right-click in the right pane and choose **New \> DWORD (32bit) Value**. name it " **TdrDdiDelay**". The case if important, be sure to follow it (and check that there are no other characters such as spaces).

In the **right pane** , double click on the value **TdrDdiDelay**. Change the **Base** setting to **Decimal**. Set the value to something else than the default **5** (we recommend **60** ).

This value indicates in seconds how long the operating system will wait before considering that a software took too much time to leave the GPU drivers.

**Hexadecimal** is the default value, simply switch to **decimal** to display the right value. Note that **3C** (Hexadecimal) equals to **60** (Decimal).

### 6 - Finish and Restart

**Close** the Registry editor. **Restart** the computer by using **Start** then **Restart**.

The TdrValue is only looked at when the computer start, so to force a refresh a reboot is necessary.

I hope this info help you aswel. Values bigger than 60 are possible since they represent the amount of seconds of delay, so you can try 90 or even 120 there.

---

<div class="post-metadata">

**Author:** ![pizzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pizzo](https://forums.unrealengine.com/u/pizzo)\
**Post date:** [September 28, 2021, 8:41pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/6 "2021-09-28T20:41:43Z")

</div>

Tried that. It still doesn’t work ☹

---

<div class="post-metadata">

**Author:** ![NilsonLima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NilsonLima](https://forums.unrealengine.com/u/NilsonLima)\
**Post date:** [September 28, 2021, 9:34pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/7 "2021-09-28T21:34:54Z")

</div>

There are some reports around that NVidia card users are able to get rid of this particular issue by installing the NVidia Studio Driver instead of the Game Ready Driver. While I was not experiencing the issue on one machine, definitely the Studio driver reduced the amount of engine crashes by a lot.

---

<div class="post-metadata">

**Author:** ![pizzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pizzo](https://forums.unrealengine.com/u/pizzo)\
**Post date:** [September 28, 2021, 10:13pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/8 "2021-09-28T22:13:57Z")

</div>

It didn’t work. Thank you for the suggestion!

The crash happens:  
• Only in FULLSCREEN.  
• Only in earlier versions (I think from 4.26.1, anyway I’m sure with 4.23 it doesn’t happen).  
• Only if the integrated GPU (Intel(R) HD graphics 630) is active.  
• When Unreal creates a UI (for example: clicking with the right mouse button on the content creator, overlying the cursor on a level/mesh/anything in content creator/modes/word outliner…).

Some people claim they solved it by reinstalling Windows or changing the Windows version because it happens only in Windows 10. So another condition could be:  
• Only in Windows 10 devices.

I’m gonna create a new topic I guess, thank you again for your time.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [September 29, 2021, 12:46am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/9 "2021-09-29T00:46:09Z")

</div>

I’ve seen the “device lost” problem for two reasons:

1. Because of the “MPO” (mis)feature in the NVIDIA graphics drivers. There’s a registry file you can load to fix this, if it’s the reason. (Typically, this will make overlay windows and menus turn black a while before you’d get a device lost problem)  
[After updating to NVIDIA Game Ready Driver 461.09 or newer, some desktop apps may flicker or stutter when resizing the window on some PC configurations | NVIDIA](https://nvidia.custhelp.com/app/answers/detail/a_id/5157/~/after-updating-to-nvidia-game-ready-driver-461.09-or-newer%2C-some-desktop-apps)

2. Because of some hardware problem in CPU / Motherboard / Power supply / Graphics card. For me, upgrading the power supply to be significantly more than “should be enough,” and then moving the graphics card one slot away from where it was, solved the repeated problems.

---

<div class="post-metadata">

**Author:** ![pizzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pizzo](https://forums.unrealengine.com/u/pizzo)\
**Post date:** [September 29, 2021, 10:03am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/10 "2021-09-29T10:03:42Z")

</div>

WOW, thank you so much. After literally hours (in more days) I finally got the solution.

I’m going to create an article on my website so that nobody will lose as much time as I did with non-working solutions (if they even find one, because you’re the first pointing out this). Thank you again!

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [September 29, 2021, 10:21am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/11 "2021-09-29T10:21:22Z")

</div>

What do you mean by moving the graphics card one slot away from where it was ? Make sure the gpu is still placed on a pcie X16 for full performance.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [September 30, 2021, 4:06am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/12 "2021-09-30T04:06:47Z")

</div>

Yes, my motherboard luckily has several PCI-Ex x16 slots, I moved my card from slot 1 to slot 2 and it worked well there, when it hadn’t in slot 1.

But even so, if you had the choice of “PCI-Ex x8 and it works, or PCI-Ex x16 and it crashes,” I think you would be less unhappy with the the working x8.

Also: The PC-Ex transfer rate really isn’t the limiting factor for many things we do – VRAM is so much faster anyway, that if you’re PCI-Ex limited, you’ll probably need to tune that anyway 🙂

---

<div class="post-metadata">

**Author:** ![Feeding\_Wolves](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/feeding_wolves/32/1090105_2.png) [@Feeding\_Wolves](https://forums.unrealengine.com/u/Feeding_Wolves)\
**Post date:** [November 27, 2021, 9:06pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/13 "2021-11-27T21:06:33Z")

</div>

same here

---

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [December 11, 2021, 1:18am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/14 "2021-12-11T01:18:23Z")

</div>

For anyone having this issue or experiencing of getting an “Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION” when using DirectX 12. I found the fix that works for me:  
On windows desktop, right-click, Display Settings, Graphics Settings, Choose an app to set preferences, Browse, select UE4Editor.exe (mine is at C:\Program Files\Epic Games\UE\_4.27\Engine\Binaries\Win64) then select Power saving.  
This works for me and I hope it will work for everyone.

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/3/a3715a3f56e7413b1f61dde22ff5e9196aa0086b.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0bcf5b93](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0bcf5b93](https://forums.unrealengine.com/u/anonymous_user_0bcf5b93)\
**Post date:** [December 16, 2021, 9:55pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/15 "2021-12-16T21:55:06Z")

</div>

I had this issue with a RTX 3080 Nvidia Card on the Razer 15"

This issue was plaguing me for a long time. Ultimately, I solved the problem by installing the latest Studio Driver for NVIDIA through GeForce Experience

And then following this Registry Edit:

[https://nvidia.custhelp.com/app/answers/detail/a\_id/5157/~/after-updating-to-nvidia-game-ready-driver-461.09-or-newer%2C-some-desktop-apps](https://nvidia.custhelp.com/app/answers/detail/a_id/5157/~/after-updating-to-nvidia-game-ready-driver-461.09-or-newer%2C-some-desktop-apps)

---

<div class="post-metadata">

**Author:** ![Kris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kris/32/758129_2.png) [@Kris](https://forums.unrealengine.com/u/Kris)\
**Post date:** [December 24, 2021, 11:12am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/17 "2021-12-24T11:12:57Z")

</div>

Try some of the things mentioned here: [Unreal Engine is exiting due to D3D device being lost](https://steamcommunity.com/app/16900/discussions/1/1640917832748442812/).

---

<div class="post-metadata">

**Author:** ![TimothyBrake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimothyBrake](https://forums.unrealengine.com/u/TimothyBrake)\
**Post date:** [January 2, 2022, 2:59pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/18 "2022-01-02T14:59:08Z")

</div>

Like others have mentioned, install the Studio Driver for NVIDIA using GeForce Experience instead of the Game Ready driver. Then you do need to update the registry like mentioned above only 60s isn’t good enough for me and increased to 120s. Make sure to restart your computer after installing the Studio Driver.

---

<div class="post-metadata">

**Author:** ![LionXXXXXX\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LionXXXXXX\_1](https://forums.unrealengine.com/u/LionXXXXXX_1)\
**Post date:** [March 1, 2022, 4:15pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/19 "2022-03-01T16:15:04Z")

</div>

thanks!!!

---

<div class="post-metadata">

**Author:** ![jisco3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jisco3](https://forums.unrealengine.com/u/jisco3)\
**Post date:** [April 24, 2022, 2:53pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/20 "2022-04-24T14:53:40Z")

</div>

oh i m working it !! again

---

<div class="post-metadata">

**Author:** ![Centurione\_xD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Centurione\_xD](https://forums.unrealengine.com/u/Centurione_xD)\
**Post date:** [May 7, 2022, 11:16pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377/21 "2022-05-07T23:16:20Z")

</div>

I have the same problem and I tried all the same as you. i need help

[Next page](https://forums.unrealengine.com/t/does-anybody-know-how-to-fix-d3d-device-being-lost/235377.md?page=2)
