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
- Bad performance when executing the Physics.IgnoreCollisions() method while in Play Mode
- Sprite Editor has a thicker separator between buttons when "Sprite Editor" option is selected
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown when UpdateVolumeStack function is called
- [Windows] Unicode custom text input window shows question marks when inserting an emoji
- Memory leak when the VFX Graph Editor is open
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