Search Issue Tracker

In Progress

Fix In Review for 2021.3.X, 2022.3.X, 6000.0.23f1

Votes

1

Found in

2021.3.41f1

2022.3.39f1

6000.0.11f1

7000.0.0a1

Issue ID

UUM-76157

Regression

No

[Linux] Crash on CreateVariant when a Prefab Variant is created in the Packages folder

--

-

Reproduction steps:
1. Create a new “3D (URP)” project
2. Open “Packages/Core RP Library/Runtime/Debugging/Prefabs/Resources” folder in the Project window
3. Right-click on any Prefab in the folder and select “Create/Prefab Variant” option in the context menu
4. Press the “Enter” key to save the name

Expected result: The “Create” option is disabled in the Context menu or a warning is shown regarding .meta file
Actual result: The Editor crashes

Reproducible with: 2021.3.41f1, 2022.3.39f1, 6000.0.11f1

Reproducible on: Ubuntu 24.02, Ubuntu 22.04 (user)
Not reproducible on: Windows 10

First lines of the stack trace:
#2 0x00561c47cfbedf in CreateVariant(PPtr<GameObject> const&, core::basic_string<char, core::StringStorageDefault<char> > const&)
#3 0x00561c460a13ee in PrefabUtility_CUSTOM_CreateVariant_Internal(void*, BindingsManagedSpan*)
#4 0x00000042070061 in (wrapper managed-to-native) UnityEditor.PrefabUtility:CreateVariant_Internal_Injected (intptr,UnityEngine.Bindings.ManagedSpanWrapper&)
#5 0x0000004206fec7 in UnityEditor.PrefabUtility:CreateVariant_Internal (UnityEngine.GameObject,string)
#6 0x0000004206ddd3 in UnityEditor.PrefabUtility:CreateVariant (UnityEngine.GameObject,string)
#7 0x0000004206d79b in UnityEditor.ProjectWindowCallback.DoCreatePrefabVariant:Action (int,string,string)

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.