How to reproduce:
1. Open the user’s attached “URP” project
2. Enter the Play Mode in the “Level” Scene
3. Select the “Player” GameObject
4. Enable, disable and re-enable the “Box Collider 2D → Used By Effector” value in the Inspector
5. Change the “Platform Effector 2D → Surface Arc” value in the Inspector
Expected result: Editor continues to work properly
Actual result: Editor crashes
Reproducible with: 2022.2.0a15, 2022.2.0b6, 2023.1.0a8
Not reproducible with: 2020.3.38f1, 2021.3.8f1, 2022.1.14f1, 2022.2.0a14
Reproduced on: macOS 12.3 (Intel)
Stacktrace:
#0 0xffffffff00000086 in (Unknown)
#1 0x0000010382929b in PlatformEffector2D::RecalculateContacts()
#2 0x0000010428e2b1 in SerializedObject::ApplyToFirstObject()
#3 0x0000010428fda7 in SerializedObject::ApplyModifiedPropertiesWithoutUndo()
#4 0x00000102835c37 in SerializedObject_CUSTOM_ApplyModifiedProperties(ScriptingBackendNativeObjectPtrOpaque*)