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

Graphics Device Backends

-

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()

  1. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0a1

  2. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in 2020.3.5f1

Comments (2)

  1. B038002cae4da6cfbc91faecfe107a28?d=mm

    zemayk

    Mar 26, 2020 14:30

    Movie4Me is an online website which contains all types of movies and shows. If anyone is worried about where to download their favorite movies and shows.

    https://www.telegraphstar.com/movie4me/

  2. 81978cf9e118ca222d3beca2f970d58c?d=mm

    caywen2

    Mar 23, 2020 20:56

    Thank you for investigating!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.