Search Issue Tracker
Fixed in 8.0.0-pre.4
Fixed in 5.1.6, 7.0.3
Votes
0
Found in [Package]
7.0.0-pre.2
Issue ID
1364012
Regression
Yes
Crash when disable Optimizing the geometry of SpriteShape
How to reproduce:
1. Open the project "UIToolkit Bug.zip"
2. Open "Test" Scene (Assets>Test)
3. Select "Terrain" in the Hierarchy window
4. In the Inspector window change Position X to 0
5. In the Sprite Shape Controller (Script) component uncheck Optimize Geometry
Expected result: Shape is changed
Actual result: Crash
Reproducible with: 7.0.0-pre.2, 7.0.0 (2019.4.30f1, 2020.3.19f1, 2021.1.22f1, 2021.2.0b13, 2022.1.0a10)
Not reproducible with: 4.1.5, 5.1.4, 6.0.1 (2019.4.30f1, 2020.3.19f1, 2021.1.22f1, 2021.2.0b13, 2022.1.0a10)
Notes:
- If the "Terrain" is not in the Scene view then project does not crash
- No crash with other Sprite Shapes
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 8.0.0-pre.4):
A fix for this issue is available on Unity 2022.1.0a15 and above with 2D Sprite Shape 8.0.0-pre.4
Do note that:
1. The issue is with invalid graph inputs sent to UTess and the long time it needed to resolve it. The fix here ensures it invalidates the inputs early and accurately so it does not hang and crash, but mesh generation might still fail.
2. Optimize Geometry removes collinear points and points that are very close to each other. Hence with valid Input points this issue does not occur.
A workaround for Inputs such as procedurally generated points or large terrains, please disable Fill Tessellation (C# Job) option. Please see the manual for the limitations of using Fill Tessellation in C# Jobs.
Resolution Note (fix version 7.0.3):
Fix for this issue available on Unity 2021.2.4f1 and above
Resolution Note (fix version 5.1.6):
Fix for this issue is available on Unity 2020.3.24f1 and above