Reproduction steps:
1. Open the attached “My project” project
2. Observe the Editor
Expected result: The Editor is opened
Actual result: The Editor crashes
Reproducible with: 2021.3.26f1, 2021.3.37f1
Not reproducible with: 2021.3.25f1, 2022.3.26f1, 2023.2.19f1, 6000.0.0b16
Fixed in: 2022.1.0a1
Reproducible on: MacOS Sonoma 14.4.1 (Intel), Windows 11 (user’s)
Not reproducible on: No other environment tested
Workaround:
Notes:
- The crash occurs regardless of the selected platform
- Very rarely the project does not crash but freeze
First few lines of the stack trace (Windows):
0x00007ff67e4d0fe0 (Unity) BaseHierarchyProperty::Next
0x00007ff67cc05ea9 (Unity) HierarchyProperty_CUSTOM_Next
0x000001a70680d9dc (Mono JIT Code) (wrapper managed-to-native) UnityEditor.HierarchyProperty:Next (UnityEditor.HierarchyProperty,int[])
0x000001a70680936b (Mono JIT Code) UnityEditor.AssetDatabase/<FindEverywhere>d__39`1<T_REF>:MoveNext ()
0x000001a7068053bc (Mono JIT Code) UnityEditor.ModeService:ScanModes ()
The whole stack trace of MacOS:
#0 0x00000103553d76 in AssetDatabasePropertyV2::DoNext(bool)
#1 0x00000103209634 in BaseHierarchyProperty::Next(int const*, int)
#2 0x000001017f4b19 in HierarchyProperty_CUSTOM_Next(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#3 0x0000015d34cb64 in (wrapper managed-to-native) UnityEditor.HierarchyProperty:Next (UnityEditor.HierarchyProperty,int[]) [
{0x7f79299e4698}
+ 0x104] (0x15d34ca60 0x15d34cc65) [0x1556d2a80 - Unity Child Domain]
#4 0x0000015d33c3a2 in UnityEditor.ModeService:ScanModes () [
{0x7f78d78194a0}
+ 0x8e2] [/Users/bokken/build/output/unity/unity/Editor/Mono/EditorMode/ModeService.cs :: 436u] (0x15d33bac0 0x15d33d39b) [0x1556d2a80 - Unity Child Domain]