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