Search Issue Tracker

Fixed

Fixed in 2022.3.65f1, 6000.0.54f1, 6000.1.12f1, 6000.2.0b10, 6000.3.0a2

Votes

1

Found in

2022.3.64f1

6000.0.52f1

6000.1.10f1

6000.2.0b8

6000.3.0a1

Issue ID

UUM-110455

Regression

No

Crash on UIToolkit::UIPainter2D::StrokeRoundedCap when drawing an arc with Painter2D on specific progress value using LineCap.Round

-

How to reproduce:
1. Open the attached “IN-104836_Painter2D_Crash.zip” project
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the crash

Reproducible in: 2023.2.0b1, 6000.0.52f1, 6000.1.10f1, 6000.2.0b8, 6000.3.0a1
Could not test with: 2022.3.64f1 (feature introduced in 2023.2), 2023.2.0a1 (unresolved UxmlElement attribute)

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Notes:
- The crash is appearing with the specific progress float value of 0.01202669f
- The crash does not appear if LineCap.Butt is used in place of LineCap.Round in the “RadialProgress.cs” script
- Code sample is taken from the official documentation page: [https://docs.unity3d.com/6000.0/Documentation/Manual/UIE-radial-progress-use-vector-api.html|https://docs.unity3d.com/6000.0/Documentation/Manual/UIE-radial-progress-use-vector-api.html|smart-link]

First few lines of stacktrace:

{noformat}0x00007FFA78AD868E (Unity) UIToolkit::UIPainter2D::StrokeRoundedCap
0x00007FFA78AD63EC (Unity) UIToolkit::UIPainter2D::StrokeInternal
0x00007FFA78ACDC0A (Unity) UIToolkit::UIPainter2D::ExecuteSnapshotFromJob
0x00007FFA7759F750 (Unity) UIPainter2D_CUSTOM_ExecuteSnapshotFromJob
0x000001C6CF71E388 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.UIElements.UIPainter2D:ExecuteSnapshotFromJob_Injected (intptr,int,UnityEngine.UIElements.MeshWriteDataInterface&){noformat}

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.