Unity Issue Tracker - Editor crashes when Ray Tracing Shaders are not compiled properly
Closed
UUM-10113
Editor crashes when Ray Tracing Shaders are not compiled properly
Unity: DirectX12
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2019.4.X
2019.3.X
2019 is out of support. Please upgrade to 2020 which will have this bugfix once it's complete.
Reproduction steps:
Open the attached project (“Crash_Shaders.zip“)
Open Assets/Scenes/DxrSampleScene2
Enter Play Mode
Expected result: Scene is being played
Actual result: Editor crashes
Reproducible with: 2019.4.40f1, 2020.3.36f1, 2021.3.6f1, 2022.1.10f1
Couldn't test with: 2022.2.0b1 (Unable to dispatch Ray Tracing Shader "RayTracingShader". Unsupported shader type for "ClosestHitMain". This shader type is supported in .shader files only.), 2023.1.0a2(Unable to dispatch Ray Tracing Shader "RayTracingShader". Unsupported shader type for "ClosestHitMain". This shader type is supported in .shader files only.)
First lines of stacktrace:
0x00007FF698C4BAE5 (Unity) GfxDeviceD3D12Base::DrawBuffersCommon
0x00007FF698C4AE6E (Unity) GfxDeviceD3D12Base::DrawBufferRanges
0x00007FF698C4B0F0 (Unity) GfxDeviceD3D12Base::DrawBuffers
0x00007FF69A255752 (Unity) GfxDeviceWorker::RunCommand
Reproducible on: Windows 11
[^Crash_Shaders.zip]
Prioritise and Follow this issue
Have a workaround or additional info about this issue?