Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2022.1.X

Votes

0

Found in

2021.2

2022.1

2022.1.0b2

Issue ID

1389594

Regression

No

Crash when moving a folder with Prefabs to another folder which contains a folder with the same name

Project Browser

-

Fatal Error crash when moving a folder with Prefabs to another folder which contains a folder with the same name as a folder with Prefabs
1. Open the attached project "FolderCrash.zip"
2. In the Project window, move "TestFolder" (Assets > ParentFolder > TestFolder) to the Assets folder

Expected result: Folder moves to Assets folder
Actual result: Editor crashes with a Fatal Error

Reproducible with: 2021.2.7f1, 2022.1.0b2
Could not test with: 2019.4.34f1, 2020.3.25f1 (can’t move folders in the Project window)

Notes:
- Editor sometimes crashed without the Fatal Error
- Reproducible with macOS
- Issue was reported on Windows 11

Stack trace:
0x00007ff700ac9c1f (Unity) core::StringStorageDefault<char>::replace
0x00007ff701be4a36 (Unity) UpdateChangedPathsAndGUIDs
0x00007ff701bcb3be (Unity) AppendPathToNewPaths
0x00007ff701bcb2de (Unity) AppendPathToNewPaths
0x00007ff701bcb2de (Unity) AppendPathToNewPaths
0x00007ff701bcb2de (Unity) AppendPathToNewPaths
0x00007ff701bcb2de (Unity) AppendPathToNewPaths
0x00007ff701bd8d47 (Unity) HandleProjectWindowFileDrag
0x00007ff701bde606 (Unity) ProjectWindowDrag
0x00007ff701c1b517 (Unity) InternalEditorUtilityBindings::ProjectWindowDrag
0x00007ff700761aa7 (Unity) InternalEditorUtility_CUSTOM_ProjectWindowDrag
0x000001c970628695 (Mono JIT Code) (wrapper managed-to-native) UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag (UnityEditor.HierarchyProperty,bool)
0x000001c970628123 (Mono JIT Code) UnityEditor.DragAndDrop:DefaultProjectBrowserDropHandlerImpl (int,string,bool)
0x000001c9706283db (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_DragAndDropVisualMode_int_object_byte (object,intptr,intptr,intptr)
0x00007ff82489e274 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ff8247de864 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
0x00007ff8247e58af (mono-2.0-bdwgc) [object.c:5771] mono_runtime_try_invoke_array
0x00007ff82471ce50 (mono-2.0-bdwgc) [icall.c:4017] ves_icall_InternalInvoke
0x00007ff824741641 (mono-2.0-bdwgc) [icall-def.h:687] ves_icall_InternalInvoke_raw
0x000001c8c023b9d0 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
0x000001c8c023b1ab (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x000001c8c023b06e (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])

  1. Resolution Note (fix version 2022.2):

    This issue has been resolved. The Editor no longer crashes when moving a folder with Prefabs to a target that contains another folder with the same name in the Project Browser.
    Fixed in 2022.2.0a13

  2. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.7f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.