Steps to reproduce:
1. Open the attached project "project.zip" with 2022.3.6f1
2. Press Shift + Alt + G
3. Enter Play mode
4. Exit Play mode
5. Enter Play mode again
6. Enter and exit play mode, then Unity will crash
Expected results: Editor does not crash
Actual results: Editor crashes
Reproducible with: 2022.3.6f1
Could not test on: 2022.3.9f1, 2023.1.12f1, 2023.2.0b9, 2023.3.0a5
Could not test on 2021.3.30f1 due to multiple third-party plugin conflicts after downgrading
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
-Issue might not be reproducible after upgrading since there are a lot more Exceptions outputted which should be taken into reproduction effectiveness
-Several stack traces outputted according to the Customer:
Case 1:
0x00000104733b30 in GameObject::QueryComponentByType(Unity::Type const*) const
#1 0x00000104ad1265 in UnpackPrefabInstanceRecursive(GameObject&)
#2 0x00000104ad12a8 in UnpackPrefabInstanceRecursive(GameObject&)
#3 0x00000104ad12a8 in UnpackPrefabInstanceRecursive(GameObject&)
#4 0x00000104ad12a8 in UnpackPrefabInstanceRecursive(GameObject&)
#5 0x00000104ad10a1 in DestroyObjectHighLevel_Internal(Object*, bool)
#6 0x00000104ace011 in DestroyObjectHighLevel(Object*, bool)
Case 2:
0x00007ff6a3ab8b46 (Unity) Transform::InitializeTransformHierarchyRecursive (at D:/UnitySource/unity/Runtime/Transform/Transform.cpp:2463)
0x00007ff6a3ab8b46 (Unity) Transform::InitializeTransformHierarchyRecursive (at D:/UnitySource/unity/Runtime/Transform/Transform.cpp:2463)
0x00007ff6a3ab8b46 (Unity) Transform::InitializeTransformHierarchyRecursive (at D:/UnitySource/unity/Runtime/Transform/Transform.cpp:2463)
0x00007ff6a3abe91c (Unity) Transform::RebuildTransformHierarchy (at D:/UnitySource/unity/Runtime/Transform/Transform.cpp:2254)
0x00007ff6a300d12b (Unity) AddMissingRequiredComponentsDuringLoad (at D:/UnitySource/unity/Runtime/Misc/GameObjectUtility.cpp:1227)
0x00007ff6a4b4035f (Unity) AwakeFromLoadQueue::AddMissingRequiredComponentsDuringLoad (at D:/UnitySource/unity/Runtime/Serialize/AwakeFromLoadQueue.cpp:179)
Case 3:
The engine fails to obtain a stacktrace