How to reproduce:
1. Open the attached “IN-135841.zip” project
2. Open the “_Recovery/0 (1).unity” scene
3. Enter Play Mode
4. Select the “Cube” GameObject and note down the VideoPlayer component URL field in the Inspector
5. Using WASD keys, move the Player towards the “Cube” GameObject until the VideoPlayer URL changes
6. Move the Player away from the “Cube” GameObject until the VideoPlayer URL changes again
7. Observe the crash or repeat steps 6 and 7
Reproducible in: 6000.0.73f1, 6000.3.14f1, 6000.4.4f1, 6000.5.0b5, 6000.6.0a4
Couldn’t test with: 2023.3.0a1 (compilation errors when downgrading)
Reproducible on: Windows 11 (GTX 1060)
Not reproducible on: Windows 11 (RTX 3080 Ti Laptop)
Notes:
- Crash does not reproduce with DirectX 11
- On 6000.0.73f1, the crash takes significantly more attempts to reproduce
First few lines of stacktrace:
0x00007FFECE2098B0 (nvwgf2umx) NVENCODEAPI_Thunk
0x00007FFECE4DA3F3 (nvwgf2umx) OpenAdapter10
0x00007FFECE39C11D (nvwgf2umx) SetDependencyInfo
0x00007FFF1F03C85E (D3D12Core) (function-name not available)
0x00007FFED3DFBC39 (Unity) TexturesD3D12::AllocateAndCreateSRV
0x00007FFED3E00169 (Unity) TexturesD3D12::RegisterNativeTexture
0x00007FFED600D18D (Unity) `WindowsVideoTextureOutput::RegisterNativeTextureWithMainDevice'::`55'::Local::RegisterNativeTexture
0x00007FFED3E4ABE6 (Unity) GfxDeviceD3D12::InsertCustomMarkerCallbackAndDataWithFlags