Reproduction steps:
1. Open the attached “CrashRepro” project
2. In the Hierarchy view, click “Singletons” GameObject
3. In the Inspector view, enable “Singletons” GameObject
Expected result: “Singletons” GameObject is enabled
Actual result: Unity Editor crashes
Reproducible with: 2020.3.43f1, 2021.3.16f1, 2022.1.0a6, 2022.1.0a10
Not reproducible with: 2022.1.0a1, 2022.1.0a5, 2022.2.0a1, 2022.2.0b2, 2023.1.0a1, 2023.1.0a24
Couldn’t test with: 2022.1.0a11 - 2022.1.24f1, 2022.2.0b3 - 2022.2.2f1 (“Singletons” GameObject is removed from Hierarchy with error “SerializedObject target has been destroyed” when enabling the GameObject)
Reproducible on: Ubuntu 20.04, Intel MacOS 13.1, Windows 11 Pro 22H2
First lines of the stack trace: