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
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
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a12
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.4f1