Constant Crashes - Failed to present D3D11 swapchain due to device removed.

But this did not happen prior to 2020 unity, so is something that was changed between versions

BTW, i try to use a project i have in an Intel NUC with Iris 655 GPU and just cant, i used 2018 latest version and had a severe issue where the interface would just get stuck and mouse not press half the items in the unity screens, only the top menu is pressable, so have to kill Unity.

Then tried 2019 latest and had it crash 4 times during initial conversion without any reason.

Then 2021 which did convert and has this DX11 issue, note that 2018 was the only one that did work fine, until it got bugged in GUI few minutes after operation.

At first i was frustrated, now i just have a nervous laughter at this experience.

I did check and have the latest GPU drivers too.

problem fixed here :

6 Likes

That is great to know it works that way, though should be fixed so can use both cards as is the normal operation, hopefully in next versions will be handled properly as well, this is a great way to keep working though, will check asap

I keep getting this error everytime i boot up a project.
I have ONLY the unity window opened
And replacing,uninstalling and updating the graphic cards isnā€™t an option

Iā€™ve been having this issue when my game scene gets a little busy (2020.2).
I ā€˜seemā€™ to have fixed this (the game now gets past the point it would previously crash - but more testing is needed to be 100% sure) by turning off the Resolution & Presentation setting: ā€˜Use DXGI Flip Mode Swapchain for D3D11ā€™

Hope that helps someone out there!

3 Likes

The only thing that worked for me was a system restore point I luckily had the day before the accident.
I was working with 2019.4.25f1 DX11 version at the time.
I have switched to UV Charts option which I believe caused it to crash due to having a lot of objects and light sources in the scene.

Some of the solutions I tried:
Disabling one graphic card worked but not optimal.
I tried deleting the library folder but didnā€™t work.
I updated the drive but didnā€™t seem to do anything at all.

I was going to try using a driver uninstaller to completely remove the drive and update it again if the system restore point didnā€™t work as I have seen a similar issue solved like this, so if nothing works might try this one out.

I didnā€™t try turning off the resolution & presentation setting, that might have worked too.

I tried a number of options including updating graphics card drivers and changing TdrDelay value.

One thing that worked for me is:
In the list of Projects shown in Unity Hub, press on the 3 dots at the right of the project name
Press ā€˜Advanced Project Settingsā€™, an empty text area should appear.
Type: -force-d3d12
Press Done and open the Project

It started working for me but at the bottom of the editor, it constantly shows
ā€˜d3d12: Profiler is enabled, but stable power state is not. GPU timing errors are expected.ā€™

I shall update here if I face any further issues.

9 Likes

I havenā€™t found a solution for this yet. Lately, itā€™s been happening when I have Photoshop open at the same time with large files loaded (2GB+).

1 Like

Can you guys post computer specs on which you are running into these issues? Are these desktop machines? Laptops? Tablets?

Windows 10 desktop
RTX 2060 6GB VRAM
4K monitor

1 Like

Windows 10 Enterprise or Home
Laptop Alienware m17 R2, Intel Core i7-9750H, X 16 GB (2 x 8 GB) DDR4 2.666 MHz
NVIDIA GeForce RTX 2080 8 GB GDDR6 withMax-Q Design
Latest Nvidia driver

Best regards
Joerg

It started to happen to me too. Iā€™m pretty sure itā€™s either the nVidia driver version, or the geforce experience (I donā€™t know what of this 2 because I updated both at the same time). Try rolling back to a older driver or uninstalling geforce experience.

I have this happening across four different driver versions and geforce experience has never been installed (since itā€™s just spyware).

I had this issue today. I also submitted a bug report earlier but in short, it was occurring when launching any project (existing or new) in 2020 & 2021 after updating NVIDIA drivers to the newest version, (as well as various other versions on the NVIDIA site I installed after that to attempt to fix it). Using Windows 8.1, NVIDIA GeForce GTX 860M, also have an Intel(R) HD Graphics 4600. I tried disabling the Intel one in the Device Manager and while it stopped the error, the scene/game in the Unity editor was still super slow (But fine when playing games or launching a build from one of my projects).

In case it helps anyone else, I uninstalled the NVIDIA driver through the Control Panel / Programs And Features and restarted the PC. It seemingly reinstalled some older versions (possibly previous ones I had installed? Or perhaps windows chose specific stable ones, idk). It didnā€™t work the first time but I did the same thing again and it installed an even older one (385.46). Perhaps not ideal to use older drivers, but it has fixed the error and lets me continue using Unity at least. Maybe this method will work for others too.

Was happening once in a while before, but since I updated to latest nvidia drivers it happens constantly after 30 mins or so of usage.

Then I used DDU to completely remove old drivers before installing new ones and so far I didnā€™t get another crash.

Unity 2020.3.1 On URP 10.3.2

Windows 10 Pro
Ryzen 5600x
GeForce RTX 3070

That worked for me ā€¦ Thank you so much

It worked for me too but I donā€™t feel comfortable using an experimental api. Using d3d12 also causes the game window to have severe tearing, regardless of framerate or vsync settings.

hi, try this, seems to work for me.
https://substance3d.adobe.com/documentation/spdoc/gpu-drivers-crash-with-long-computations-tdr-crash-128745489.html

Edit: again crashedā€¦

1 Like

RTX 2070 8GB
32GB RAM DDR4
I7 10th gen 8 cores
window 10
both
Unity 2020.3.13f1 LTS
Unity 2020.1.6f
crashing sometimes
Since I added water shader!

RTX 3070 8Gb
32 Gb RAM DDR4
i7 11700 11th 8 cores
windows 10
Unity 2020.3.2f1 HDRP
crashed sometimes after 5mn in the timeline
the same scene donā€™t crash at work on another pc (GTX 1080)

itā€™s clearly a problem with RTX Cardā€¦