Reproduction steps:
1. Open the attached "crash_55977.zip" project
2. Open the “Dungeon“ Scene
3. Enter the Play Mode
4. Exit the Play Mode
5. Observe the crash
Reproduced with: 2022.3.5f1, 2022.3.11f1, 2023.1.16f1, 2023.2.0b13, 2023.3.0a9
Not reproduced with: 2021.3.31f1, 2022.3.4f1
Reproduced on: Windows 10 (22H2)
Not reproduced on: No other environments tested
First few stack frames:
0x00007ff68cb6797a (Unity) RuntimeSceneManager::UnloadAllScenesWithoutDestroyingGameObjects
0x00007ff68cb3d6df (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007ff68cb3e4e0 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00007ff68cb3f1ce (Unity) LoadSceneOperation::IntegrateMainThread
0x00007ff68cb427ce (Unity) PreloadManager::UpdatePreloadingSingleStep
Notes:
- Not reproducible in Player
- If you resolve the build errors, build the project, then enter the Play Mode and exit it, the Editor freezes on the Application.ExitPlayMode