I know this post is getting a bit aged, I too have been plagued with this, so much so I started having BSOD issues, and all signs pointed to bad GPU. Well… 2 months and $2600 later on a new system… same issue. Today I just found a random post about using debug mode in NVidia Control panel, and I thought oh ■■■■ that disables things like Reflex and “auto overclocking” and the such but guess what. Just put in like 6hrs on a raytracing everything ArchViz project and not a single crash. (Used to happen like every 20-25min.)
The overclocking issue / Debug Mode is mentioned in the link above ![]()
Regardless, it is not something you should have to do, given the expense.
I’m using Unreal Engine 4.26.2, stock, on Windows 10 Pro, on a 128 GB machine with a NVIDIA RTX 3090 running drivers version 471.11, connected to two 1440p displays.
Every hour or two of using Unreal Editor, the editor provokes the system into “D3D Device Lost” (the hard part, where it resets the desktop, restarts the monitor links, makes Photoshop crash, etc.)
Why am I picking on UE editor? No other program causes this to happen, although I realize that, theoretically, the driver should never allow this in the first place. Several programs do misbehave after it happens, not just Photoshop. Youtube Music Desktop, Slack, and a few other programs also tend to misbehave after device lost, presumably because the Chromium rendering engine they use has some problem with that, because device lost is intended to be “uncommon” these days …
Is there some known resource leak that can be patched? Is there something I can do to debug this? (I will try the latest Studio drivers, because apparently there’s a newer version now.)
FWIW, experimentation shows that, if I disable the “mpo” registry hack (previously needed to avoid menus/windows becoming black after a bit of use,) then the “desktop crash / device lost” seems to have changed itself to a “loss of window sync and return” which doesn’t lose the device, and the editor can keep working. But it’s still annoying, and I don’t know if this just shoves the problem under the rug, to pop up as a crash/black-window sometime later.
Also, now that I think about it, this might be more a NVIDIA thing than an UE thing, because I believe I saw the device loss problem once in Cubase, which uses some 3D accelerated API to display its editor windows. UE wasn’t running at the time, so the finger points towards Santa Clara.
Sounds like what happens routinely if you crank the overclock sliders a bit too high.
Totally stock system.
D3D Device Lost Fix!
Hello UE Community!, I am fairly new to unreal engine and wanted to share this possible fix with you.
After suffering for a whole month of constantly crashing and having to redo some of my work or imports again and again..
How To Replicate
Simply interacting with the UE editor in any form like editing blueprints, importing assets or even saving and it will randomly crash whenever it feels like it
Fixes Related To Drivers
I have gone and tried every possible solution I could find on the internet, but they only extended the interval between crashes and didn’t actually fix the problem. I made a bug submission but they couldn’t help me fix it either…
They suspected it was a Nvidia driver problem and were waiting Nvidia to address it as they had no exact workaround for it.
What I have previously tried and only extended the crash interval:
**
- Stopped Overclocking GPU
- Updated drivers
- Reinstalled drivers
- Changed to Nvidia Studio drivers
- Reinstalled Windows
- Disabled XMP profile
- Stopped overclocking my CPU
- Manually ran the prerequisite installer
**
Fixes Unrelated To Drivers
I got so desperate because unreal engine was amazing, but I can’t keep on working with it like that…
Luckily I remembered that I had faced problems before while developing with the antivirus interfering and stopping my programs from manipulating files and so on.
So what I tried and actually worked:
**
- I stopped overclocking my GPU
- I stopped my antivirus
**
After confirming it was the antivirus, I have made an exception to both the installed unreal engine path and my project’s path in the antivirus and activated it again and it still works.
After that all of my unreal engine versions stopped crashing no matter what I do from importing to connecting lots of nodes in the BP editor.
This whole time it was the antivirus that was causing the crash… I don’t know why epic didn’t suspect it was an antivirus problem rather than a driver problem…
Also, the thing is.. the antivirus doesn’t show notification that it has interfered with UE so it took me a long time to figure out it was the cause.
I hope this helps newcomers from avoiding the awesome unreal engine because of the silliness of having to deal with such a thing.
My Setup:
GPU: Nvidia RTX 2070 Super
CPU: AMD Ryzen 7 3700x
Antivirus: AVG Free Antivirus
I currently switched to UE5 Early Access after fixing the crashes
If You Are a UE Dev
- Please try to check why is it triggering the antivirus to stop unreal engine editor from working.
- It would help a lot if you can give different stack trace errors in the UE bug reporter for what is actually caused by a driver and what is caused by the antivirus or another software blocking UE editor
Please Read This
If this fix doesn’t work for you or if you had any different hardware/software setup please share them and the fix that helped you in the comments.
Also, try to limit the discussion to only have fixes for this problem because finding one that works for your specific setup is really hard as not all the fixes on the internet work for all setups, and most people posting about it don’t list their hardware/software setup.
Summary
This text will be hidden
Hi…
I am using unreal engine 4.26 it shows me ( " unreal engine is existing due to d3d device lost I have tried all methods mentioned in youtube website etc…but nothing worked for me,…is there any other way to solve
Project specifications :
C++
Mobile
It often crashes after 5 or 7 minutes only while I’m working if do nothing just kept the ue4 editor running for more than 15 minutes it not crashing but when I started working it crashes in 5 or 7 minutes PLZZ anyone help me with this problem…
Many possible issues, I think most frequent issue here is drivers somehow being corrupt. Maybe do a clean install using DDU.
Any game I try and play that uses Unreal Engine keeps crashing with that error… I have my Nvidia driver’s up to date and I even rolled them back to 497.19 and it still does it…
I have an i9-10850K, 3080 TI, 32 GB RAM
Mods/Admins?
What’s going on in this thread? Last response is 2019, several responses before that are from 2017, several before THOSE are from the last few weeks, this thread is like totally out of time.
The mods are tying to merge common questions into unioned topics. They’re hoping to turn the forums into some kind of knowledge base. I wish them the best of luck, as that would be a valuable outcome!
For those of you still experiencing this, you can set the RHI target to and it will “fix” the issue. DX11 seems to also work but it will stutter for a few seconds instead of the usual crash. Not an ideal solution.
So this is a long and old running post but I can not find the answers I found before.
This occurred in the editor around Toast notifications like when blueprints or shaders were compiled. When the toast would fade out and be removed, BOOM, crash.
I had found some changes that I just kept in a personal perforce change list that gave the system retries ( I think it went to 10 ) for the attempt instead of crashing immediately and this basically made my experience stable again. But I am having a hard time finding that code again as this is now not happening on my system but on another persons. Has anyone come across those changes in their hunt for this? Id love to snag them again and get my shelf back just in case its needed.