Reproduction steps:
- Open the attached project “PhysicsExamples2D-master.zip“
- Enter Play mode
- In the Hierarchy window select one of the child objects of “Composites“ GameObject
- In the Inspector window enable "Is Trigger"
Expected result: The Editor does not crash
Actual result: The Editor crashes
Reproducible with: 2022.2.0a13, 2022.2.0b7, 2023.1.0a9
Not reproducible with: 2021.3.9f1, 2022.1.15f1, 2022.2.0a12
Could not test with: 2020.3.39f1 - due to errors in the Console when downgrading the project (The type or namespace name 'CustomCollider2D' could not be found)
Reproduced on: Windows 10 Pro
Note: This project uses the “PhysicsExamples2D” sample (https://github.com/Unity-Technologies/PhysicsExamples2D )
First few lines of the stack trace:
0x00007ff6f03fa615 (Unity) b2ContactManager::Destroy
0x00007ff6f03facf4 (Unity) b2Body::DestroyFixture
0x00007ff6f03b7446 (Unity) Collider2D::Cleanup
0x00007ff6f03bf6bd (Unity) Collider2D::RecreateCollider
0x00007ff6f03b55ff (Unity) Collider2D::AwakeFromLoad