Unity Issue Tracker - Editor Crashes on CreateDirect3D11SurfaceFromDXGISurface when calling Material.SetFloat() or Material.SetInt()
Closed
UUM-55991
Editor Crashes on CreateDirect3D11SurfaceFromDXGISurface when calling Material.SetFloat() or Material.SetInt()
Unity: DirectX11
Fixed
6.2.X
Won't Fix
6.1.X
6.0.X
2023.3.X
2023.2.X
2023.1.X
2022.3.X
This 6.1 version of Unity is no longer being updated. This issue may be fixed in a future version.
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
This Unity version will no longer be receiving patch updates.
How to reproduce:
1. Open the “IN-59842“ project
2. Open the “SampleScene“
3. Select the “Cube“ GameObject
4. In the Inspector window, undock from the lower left corner of the Material component
5. Change the Mode to a different Color
Expected result: Editor continues to run
Actual result: Editor crashes
Reproducible with: 2022.3.5f1, 2023.1.20f1, 2023.2.0f1, 2023.3.0a14
Could not test with: 2021.3.32f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
First few lines of Stack Trace:
0x00007FFBE5089B71 (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FFAB0893359 (Unity) GfxDeviceD3D11Base::SetSamplers
0x00007FFAB062CB63 (Unity) GpuProgram::ApplySamplerParameters
0x00007FFAB088696D (Unity) D3D11CommonShader::ApplyGpuProgram
0x00007FFAB0893825 (Unity) GfxDeviceD3D11Base::SetShadersThreadable
Prioritise and Follow this issue
Have a workaround or additional info about this issue?