# D3D device being lost HUNG

**URL:** <https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 5, 2022, 8:47am UTC](https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354 "2022-05-05T08:47:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanchezgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sanchezgi](https://forums.unrealengine.com/u/sanchezgi)\
**Post date:** [May 5, 2022, 8:47am UTC](https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354/1 "2022-05-05T08:47:45Z")

</div>

Hi everyone,

I’m working on a project involving lighting and the DMX plugin. All was working perfectly fine until a week ago, every single time I start the application and activate a light ( even a single one, even though before the project run fine with more than 200), the demo freezes and after a few seconds later it throws the D3D device being lost error.

I know it must be something involved with a shader, because if I remove the beam material ( just unlink de node) the application runs smoothly. The weird thing, this is not even a material i made myself, it came within the DMX plugin, and before has worked fine.

I know there is a ton of information about this topic, but none of the solutions worked for me. I tried to deactivate antivirus, update nvidia drivers, install studio nvidia drivers, etc.

I will attach the crash log and some images to explain my self better.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/8/1088d0df597a8d5ef87c6a6a9d2b677f65391d30.jpeg)

This is the materiali was talking about earlier, if I unplug the nodes the application runs perfectly, no error, but if i keep it like this, it will crash. I know it has sin and cos but is not enough reason to crash with only one light using this material.

The error:  
 ![Captura1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/1/43128dfcd8057ee39143e123ad426daccb8840bd.png)

And the error log:  
[MyDemo\_2.log](https://forums.unrealengine.com/uploads/short-url/bKrojgNKqTPnA8vDcwPdRdftS7u.log) (78.4 KB)

Any help is much appreciated.

Kind regards,

Alejandro.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [May 5, 2022, 9:45am UTC](https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354/2 "2022-05-05T09:45:55Z")

</div>

Hi sanchezgl,

Is there anything you did on your computer before it started doing this?

From the logs I see you’re running it at 2560x1920 which isn’t maxed out or anything - but it looks like there are also a lot of render targets at high resolutions - is it possible the gfx card is running out of memory and loosing the direct x 11 device?

Have you tried it with DirectX 12?

---

<div class="post-metadata">

**Author:** ![sanchezgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sanchezgi](https://forums.unrealengine.com/u/sanchezgi)\
**Post date:** [May 5, 2022, 10:03am UTC](https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354/3 "2022-05-05T10:03:42Z")

</div>

First of all , thnak you for the quick response!

Actually I use several render targets in order to do a multiple editor viewport like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/5/a8520de1621c1267a9e38d2e0e0814815de9c853.jpeg)

The thing is the multiple window only is created when i press a certain button (up righ corner). Are the render targets in memory even if I’m not using them? That may be the problem.

Edit: I have tried to reduce the resolution of all render targets ( 450 x 175) and it still crashes. As I said before, if the light is not active all works fine, once the application has to render the light it crahses again.

I’m running the app with a Nvidia GeForce GTX 1660 Ti, I know it’s not the most powerful one, but it may be possible I’m running out of memory.

btw I haven’t tried it with DirectX 12.

---

<div class="post-metadata">

**Author:** ![sanchezgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sanchezgi](https://forums.unrealengine.com/u/sanchezgi)\
**Post date:** [May 24, 2022, 8:56am UTC](https://forums.unrealengine.com/t/d3d-device-being-lost-hung/549354/4 "2022-05-24T08:56:36Z")

</div>

Any updates? I’m still encountering this problem. I tried to isollate the problem creating a new default level ( no render targets, no UI, anything) just one light. It still crasesh, in best case scenario frames drop like crazy (Only GPU, game and draw thread are fine)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/1/ad1f65175e81fd3568539b90e80ae02042539c8c.jpeg)

I’m starting to thing my GPU is broken, the light and all its shaders and materials are the ones provided by the DMX plugin , so I don’t think I have messed up on something.
