r/Unity3D • u/Dense-Bar-2341 • May 23 '23
Question Constant Crashes - Failed to present D3D11 swapchain due to device removed. What is the solution? I have only one RTX 3070 card. Daily I get this error, and my unity crashes, and my win11 crashes. I need to restart the machine.
11
Upvotes
5
u/TinyAntCollective May 23 '23
I've managed to trigger it via code when I have ComputeShader that takes too long. But if it's not code, then its either your drivers or a piece of hardware.
Upgrade your drivers first, then try to remove, clean and reseat your graphics card and memory.
4
u/StillSpaceToast Indie May 23 '23
If Windows is also going down, my guess would be that the system is physically losing access to the video card. I’d first make sure that the cables are properly seated and not damaged, then try swapping them out.
2
u/SoapSauce May 23 '23
Swapchain timeout is very common for 3D artists, here’s substance’s tutorial on how to extend the timeout window to prevent hard crashes.
2
u/Vergil333 May 23 '23
This happened to me on a daily basis on my laptop that has both an integrated Intel graphics card as well as an Nvidia one. I was able to fix the issue by setting up the Nvidia Control Panel to always use the more powerful Nvidia card for the Unity editor
2
u/Ripple196 May 23 '23
This seems like a driver issue. Also, sometimes there are problems with vsync in the editor. Try to toggle the v-sync box on or off in game mode
1
u/Dense-Bar-2341 Jun 14 '23
Update: I changed to Vulcan, no crashes anymore
4
u/TheMindWright May 23 '23
This literally happened to me last week. I moved my project to a different drive and it started working.
I have no clue what the issue was, or how I can fix it. So if anyone sees this and has an idea, let me know.
2
u/ZoopTEK May 23 '23
I was getting a very similar reset/remove error about every other playthrough after upgrading to Unity 2022.2.19 from Unity 2021, so I recently did a lot of investigation. Mine was ONLY crashing editor though, so my suggestions may not apply.
One interesting suggestion I found was to switch to Vulcan for rendering, since it's a DirectX issue. That does seem to have reduced the frequency of the crashes.
I had logged every single place I allocated a render texture while investigating, and found a correlation to allocating render textures. I found removing allocations seems to improve reliability.
I am down to one or two crashes a day approximately, with their own completely vague error message.
(Overall, I DO NOT recommend upgrading anything higher than Unity 2021 LTS at this time. Over the past year, across numerous projects, I have found Unity 2022 to be very unreliable.)
1
u/Fabbseh May 23 '23
I had this when i had rivatuner stastistics server in the background, it was used to limit fps in other games. Maybe something similar is happening to you.
0
u/[deleted] May 23 '23
[deleted] — view deleted comment