Reproduction steps:
1. Open the attached project
2. Open "Assets/Scenes/new_char_test"
3. Enter Play Mode
4. If no crash occurs, exit Play Mode
Expected result: Editor enters Play Mode successfully
Actual result: Editor crashes
Reproducible with: 2021.3.34f1, 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Reproducible on: Windows 10, Windows 11, macOS Sonoma 14.0 (Intel)
Notes:
- disabling the "cloth" GameObject under "Prototype Character" stops the crashing
- multiple errors "ArgumentNullException: Value cannot be null." and "IndexOutOfRangeException: Index was outside the bounds of the array." can be seen in the Console
First lines of stacktrace:
0x00007FF6877C0CC3 (Unity) ProcessCameraIndexListIsNodeVisibleStep1
0x00007FF68775AB91 (Unity) CullDynamicObjectsJob
0x00007FF6879AA54C (Unity) JobQueue::Exec
0x00007FF6879AC4A1 (Unity) JobQueue::Steal
0x00007ff689785cb4 (Unity) tlsf_free
0x00007ff68769e552 (Unity) DynamicHeapAllocator::Deallocate
0x00007ff6876abc0f (Unity) DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate
0x00007ff68769edeb (Unity) MemoryManager::Deallocate
0x00007ff6876a7e7a (Unity) free_alloc_internal
0x00007ff749c15366 (Unity) PreOrderPlayableTraverser::Traverse
0x00007ff749c141cb (Unity) PreOrderPlayableTraverser::RecursiveVisit
0x00007ff749c1548e (Unity) PreOrderPlayableTraverser::Traverse
0x00007ff749c141cb (Unity) PreOrderPlayableTraverser::RecursiveVisit
0x00007ff749c1548e (Unity) PreOrderPlayableTraverser::Traverse
0x00007ff745926923 (Unity) Scripting::FindObjectsOfType
0x00007ff745845bf5 (Unity) Resources_Bindings::FindObjectsOfTypeAll
0x00007ff744964d21 (Unity) ResourcesAPIInternal_CUSTOM_FindObjectsOfTypeAll
0x0000017315f9fa5a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ResourcesAPIInternal:FindObjectsOfTypeAll (System.Type)
0x00007ff6ebfddc5d (Unity) Material_CUSTOM_SetFloatImpl
0x000001cd5e0ac4f9 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Material:SetFloatImpl (UnityEngine.Material,int,single)
0x000001cd5e0ac3fb (Mono JIT Code) UnityEngine.Material:SetFloat (int,single)
0x000001cd5e0ac373 (Mono JIT Code) UnityEditor.UIElements.EditorPanel:OnUpdateMaterial (UnityEngine.Material)