Search Issue Tracker

Fixed in 8.0.0-pre.4

Fixed in 7.0.3

Fix In Review for 5.1.6

Votes

0

Found in [Package]

7.0.0-pre.2

Issue ID

1364012

Regression

Yes

Crash when disable Optimizing the geometry of SpriteShape

Package: 2D Sprite Shape

-

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

  1. Response avatar

    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.

  2. Response avatar

    Resolution Note (fix version 7.0.3):

    Fix for this issue available on Unity 2021.2.4f1 and above

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.