Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.2
2021.2.0a20
Issue ID
1343239
Regression
No
Crash in CalculateSurfaceArea when enabling "Contribute Global Illumination" on a Mesh that is created by a compute shader
Reproduction steps:
1. Open the user's attached project
2. Enter play mode in scene "NoiseField"
3. Enable "Contribute Global Illumination" on object "Visualizer"
Expected result: "Contribute Global Illumination" is enabled
Actual result: Editor crashes
Reproducible with: 2021.2.0a18, 2021.2.0b1
Could not test with: 2018.4, 2019.4, 2020.3, 2021.1, 2021.2.0a17 (Errors in console, can't enter play mode)
Notes:
Seems to be related to the new Mesh API introduced in 2021.2.0a18
Stack trace:
0x00007ff679d6118a (Unity) CalculateSurfaceArea
0x00007ff679d54f87 (Unity) MeshRenderer::GetCachedSurfaceArea
0x00007ff67988e207 (Unity) InternalMeshUtil_CUSTOM_GetCachedMeshSurfaceArea
0x000001f55d07f5a1 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.InternalMeshUtil:GetCachedMeshSurfaceArea (UnityEngine.MeshRenderer)
0x000001f55d07dbdb (Mono JIT Code) UnityEditor.RendererLightingSettings:LightmapScaleGUI (bool,UnityEngine.GUIContent,bool)
0x000001f55aaa2bd3 (Mono JIT Code) UnityEditor.RendererLightingSettings:RenderSettings (bool)
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
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note (fix version 2022.1):
Fixed with 2022.1.0a3
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b5