Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2020.3.X
Votes
1
Found in
2019.1
2019.2
2019.3
2019.3.0f6
2020.1
2020.2
Issue ID
1227781
Regression
Yes
Crash on CreateDirect3D11SurfaceFromDXGISurface when a material in Mesh Renderer is selected
Reproduction steps:
1. Open the attached project ("1227781.zip")
2. Open "SampleScene"
3. Select "CrashyMeshGO" in the Hierarchy
4. In the Inspector find the Mesh Renderer Component
5. Attempt to select a material for "Element 0" under "Materials"
Reproducible with: 2019.1.0a10, 2019.3.6f1, 2020.1.0b2, 2020.2.0a4
Not reproducible with: 2018.4.19f1, 2019.1.0a1
Couldn't test with: 2017.4.38f1(no SRP), versions in between 2019.1.0a1 and 2019.1.0a10 as I encountered way more trouble trying to test it with an SRP than I anticipated
Stacktrace:
0x00007FF8D124C067 (d3d11) CreateDirect3D11SurfaceFromDXGISurface
0x00007FF7B45F071B (Unity) GfxDeviceD3D11Base::BindBuffersForDraw
0x00007FF7B45F48A5 (Unity) GfxDeviceD3D11Base::DrawBuffers
0x00007FF7B74D8C88 (Unity) GfxDeviceWorker::RunCommand
0x00007FF7B74DC56C (Unity) GfxDeviceWorker::RunExt
0x00007FF7B74DC958 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF7B5432C30 (Unity) Thread::RunThreadWrapper
0x00007FF8D6387974 (KERNEL32) BaseThreadInitThunk
0x00007FF8D842A261 (ntdll) RtlUserThreadStart
Notes:
- The issue seems to reproduce only with an SRP set (either URP or HDRP)
- The script that is attached to the GameObject generate mesh in OnDrawGizmos()
Comments (3)
-
caywen2
Mar 23, 2020 20:56
Thank you for investigating!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Tags window completely breaks and throws Exception errors when Adding a Tag to a GameObject
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.5f1