Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X

Votes

0

Found in

2021.3.38f1

2022.3.26f1

6000.0.1f1

Issue ID

UUM-71177

Regression

No

Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices

--

-

Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Asset/Scenes/SampleScene“ scene
3. Enter Play Mode
4. Observe the crash

Reproducible with: 2021.3.38f1, 2022.3.26f1, 6000.0.1f1

Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested

Notes:
1. Also reproduced in Player
2. The script causing the crash is designed to dynamically add a new path to a PolygonCollider2D at runtime using predefined vertices

First few lines of the stack trace:
0x00007ff688300762 (Unity) ScheduleGenerateTilingShape
0x00007ff689154be8 (Unity) PolygonCollider2D::PrepareShapes
0x00007ff68914e77c (Unity) Collider2D::CreateFixtures
0x00007ff68915636e (Unity) Collider2D::RecreateCollider
0x00007ff689156473 (Unity) PolygonCollider2D::RefreshPoly

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.