Reproduction steps:
1. Download, extract and open the attached “repro-project“
Expected result: The project opens successfully
Actual result: A “Unity Error“ pop-up appears, and the Editor shuts down
Reproducible with: 2021.3.30f1, 2022.3.10f1, 2023.1.14f1, 2023.2.0b10, 2023.3.0a6
Reproduced on: Windows 10 Pro, Windows 11 (by reporter)
Not reproducible on: No other environment tested
Note:
1. The full error: ”Failed to present D3D11 swapchain due to device reset/removed. This error can happen if you draw or dispatch very expensive workloads to the GPU, which can cause Windows to detect a GPU Timeout and reset the device. (see https://docs.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery). if you believe this error is due to built-in Unity functionality, please submit a bug. This is an unrecoverable error and the editor will shut down.”
2. Originally the project crashed after opening a scene with the following first few lines of the stack trace:
0x00007FF7B735590C (Unity) TexturesD3D11::UploadTextureSubData2D
0x00007FF7B7349ED7 (Unity) GfxDeviceD3D11Base::UploadTextureSubData2DImpl
0x00007FF7B7101118 (Unity) GfxDevice::UploadTextureSubData2D
0x00007FF7B89DE6A5 (Unity) GfxDeviceWorker::RunCommand
0x00007FF7B89E768B (Unity) GfxDeviceWorker::RunExt