Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2021.3.X

Votes

0

Found in

2021.2

2021.2.11f1

2022.1

2022.2

Issue ID

1404273

Regression

No

Crash when calling Graphics.RenderMesh for a Mesh that was destroyed

UI Toolkit

-

Reproduction steps:
1. Open the attached project "Test_script"
2. Open "Assets/Scene/Sample Scene" scene
3. Disable "GameObject" from the Hierarchy

Expected result: Error is thrown that Mesh can't be found
Actual result: Editor crashes

Reproducible with: 2021.2.11f1, 2022.1.0b7, 2022.2.0a5
Could not test with: 2019.4.36f1, 2020.3.28f1 (Graphics.RenderMesh not found)

First lines of stacktrace:
0x00007ff6316fd598 (Unity) delete_object_internal_step1
0x00007ff6316f9d10 (Unity) DestroySingleObject
0x00007ff631a16fcd (Unity) DestroyObjectHighLevel_Internal
0x00007ff631a16b64 (Unity) DestroyObjectHighLevel
0x00007ff631d61ccf (Unity) Scripting::DestroyObjectFromScriptingImmediate
0x00007ff630f78803 (Unity) Object_CUSTOM_DestroyImmediate

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a12

  2. Resolution Note (fix version 2021.3):

    Fixed in: 2021.3.4f1

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.