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