Search Issue Tracker

Won't Fix

Votes

9

Found in

2018.3.0a1

2018.3.5f1

2019.1.0a1

2019.2.0a1

2019.3.0a1

Issue ID

1127974

Regression

No

Editor crashes with GfxDeviceD3D11Base::CopyRenderSurfaceDesc after changing Editor layout using laptop GeForce Battery Boost

Graphics - LowLevel

-

How to reproduce:
1. Open new Unity project
2. Unplug the laptop from charging
3. Turn on Battery Boost on GeForce Experience
4. Change Editor layouts several times and move any window afterward
5. After one tab turns completely white, change the layout a few more times
-----------------------------
Observe the crash

Reproduced with: 2018.3.6f1, 2019.1.0b4, 2019.2.2f1, 2019.3.0a12

Notes:
1) IMPORTANT! The laptop must be unplugged and GeForce Experience Battery Boost must be turned on.
2) Lately, there have been users stating that the issue reproduces even when the laptop is plugged in and GeForce Experience Battery Boost is disabled

Errors:
Assertion failed on expression: 'SUCCEEDED(hr)'
d3d11: swap chain: w=1143 h=542 fmt=28
d3d11: failed to create swap chain [0x887a0005]
D3D11: Failed to create RenderTexture (910 x 397 fmt 27 aa 1), error 0x887a0005
D3D11: Failed to create render texture primary DSV (error 0x80070057)

  1. Resolution Note:

    This issue is caused because of Timeout Detection Recovery (TDR). This is a way for the Windows display manager to recover from bad situations or potentially hung GPUs, however it can be very aggressive and we as programmers or content producers have to be careful not to throw too much work on the GPU in the same "batch" unless it triggers.

    The principle is this: if you submit work for a frame (or more correctly a piece of a frame) that takes more than a certain amount of time TDR kicks in and restarts the driver. It's nothing we at Unity can do much about sadly. However we have already added a new message dialogue for this in upcoming versions so you should get more information.

    What you, as a user, can do is to either reduce workload (less vertices, fewer objects, simpler shaders), ensure the GPU can run at full speed (have laptop plugged in and cooled) or you can potentially increase the timeout as described on this Microsoft page:
    https://docs.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys

    NVIDIA also has some tools in the Control Panel to play around this limitation.

Comments (21)

  1. kfkiernan

    Jul 06, 2020 16:01

    Support sent me here saying this is my issue, but I am on a desktop with a fresh install of Unity and an empty project trying to enable XR support for Oculus. Not sure what’s up just yet.

  2. ippdev

    Mar 25, 2020 17:15

    This is locking up my desktop PC over and over. I have updated the GTX 1080 drivers, tried both studio and game version. Support sends me vague instruction to find some obscure RegistryKey with no instructions or wants me to boot using command line with no instructions. These people need to do their job properly. You do not just dismiss these things and keep collecting a paycheque. Your job description is to fix bugs. If you can't fix it and provide a workaround then be very specific. I checked the MS pages for the TDR Registry keys and that gives no clue as to what settings to use.

  3. rzsbr

    Feb 11, 2020 15:37

    Downloaded 2 2019 versions of Unity and the editors all display just a black and pink screen except for the options at the top of the window.

  4. Farresto

    Jan 20, 2020 20:27

    I supposedly had this issue according to Unity crash notification, but I'm not using a laptop nor I was doing anything strange.
    Sometimes, after long periods of work and changes, the inspector window doesn't properly refresh when I click on different objects, and I normally solve this by resetting the layout to a saved profile. When I did that, the crash occurred.

  5. TankThunderbird

    Dec 06, 2019 11:24

    Also happens in 2018.4.7f1 while plugged in, simply changing the editor layout between various presets too quickly triggers it. Using NVIDIA GeForce GTX 1060.

  6. Lleibl

    Nov 20, 2019 17:50

    Hello. What does it means "By Design"? I cant get it. I having this issue in 2019.2.12.... In 2019.2.9 there is no problems at all. Tdr level up to 60. Still not helping me

  7. HD_901

    Sep 14, 2019 17:50

    the only way ive been able to get it to work if you have a nividia graphics card go to https://www.nvidia.com/Download/index.aspx?lang=en-us# choose all your options and when you get to download type choose studio driver

  8. Harry_Style

    Sep 05, 2019 12:46

    Thanks for everyone for solving this problem and it now fix by disabling battery boost.Once again thanks for helping.

  9. unity_Xoue6ucwCwwXdg

    Jul 10, 2019 14:03

    Unity was crashing when switching to scene view after running the game.

    Make sure unity has default application settings in your graphic card driver settings. Overriding them caused the crash for me.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.