I reported a critical crash bug with a repro project to Unity this morning happening using VFX graph (14.0.4) on NVIDIA GPUs (doesn’t happen on AMD GPUs), in Player.
We also have crashes in the Editor that we think are related to the same thing, but the error is more generic:
Failed to present D3D11 swapchain due to device removed
We tried to change the project version from 2022.2.1 to 2022.2.10 and 2023.1.0 and still encountered it.
It is a random crash when playing VFX with a reproduction rate something like 1 out 20 times.
We reproduced it on both Windows 10 and Windows 11, on DX11, DX12 and Vulkan graphics API.
Also happens more on macOS, Metal.
The error that we sometimes see in the Player.log is:
D3D11: Failed to create RenderTexture (1 x 1 fmt 53 aa 1), error 0x887a0005
d3d11: failed to create buffer (target 0x5 mode 1 size 1280) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 1 size 60) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 1 size 26680) [0x887A0005]
d3d11: attempt to lock null buffer
D3D11: Failed to create RenderTexture (4096 x 4096 fmt 53 aa 1), error 0x887a0005
D3D11: Failed to create RenderTexture (1 x 1 fmt 53 aa 1), error 0x887a0005
or
D3D11: Failed to create RenderTexture (1920 x 1080 fmt 27 aa 1), error 0x887a0005
D3D11: Failed to create RenderTexture (1920 x 1080 fmt 19 aa 1), error 0x887a0005
d3d11: failed to create buffer (target 0x5 mode 1 size 1280) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 1 size 60) [0x887A0005]
We still don’t know the exact cause, but doesn’t seem related to a specific VFX.
Anyone else noticed this?
We use GPU Events on all of our VFX. It could be related to this thread: 1277585: Major crash on some GPUs if "trails" are used
But we don’t use trails.
We managed to reproduce it on those:
NVIDIA GeForce GTX 1080, driver 31.0.15.3129
NVIDIA GeForce GTX 1660 Ti, driver 31.0.15.2756
NVIDIA GeForce RTX 2060, driver 31.0.15.3129
NVIDIA GeForce RTX 2070, driver 31.0.15.3129
NVIDIA GeForce RTX 3070, driver 31.0.15.2756
NVIDIA GeForce RTX 3070, driver 31.0.15.1694
NVIDIA GeForce RTX 3090, driver 31.0.15.3129