Steps to reproduce:
1. Open the project from the google drive link
2. Open the “Assets/Local/Example/battleZoneExample_hjh.unity” Scene
3. Enter Play Mode
4. Unpause Play Mode twice (Play Mode will auto-pause twice)
5. Press the “F7“ button twice
6. Hold the “D“ button until you hit a box and then press the “J“ button
7. Exit Play Mode
Expected result: Editor exits Play Mode
Actual result: Editor crashes
Reproducible with: 2021.3.9f1, 2022.1.6f1, 2022.1.14f1, 2022.2.0b7, 2023.1.0a8
Not reproducible with: 2022.1.5f1
Couldn’t test with: 2020.3.39f1 (couldn't resolve the “The type or namespace name 'PrefabStage' does not exist in the namespace 'UnityEditor.SceneManagement'“ error)
Reproducible on: Windows 10
Stacktrace:
UI::Canvas::UpdateCanvasRectTransform
UI::InitializeCanvasManager'::2'::EarlyUpdateUpdateCanvasRectTransformRegistrator::Forward
ExecutePlayerLoop
ExecutePlayerLoop
PlayerLoop
PlayerLoopController::InternalUpdateScene