Search Issue Tracker

Fixed

Fixed in 2021.3.49f1, 2022.3.58f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a2, 7000.0.0a22

Votes

0

Found in

2021.3.47f1

2022.3.55f1

6000.0.32f1

6000.1.0a9

6000.2.0a1

Issue ID

UUM-91927

Regression

No

Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument

-

Reproduction steps:
1. Open the attached “IN-90738.zip” project
2. In the Menu, click on Tools > Spawn and Layout
3. Observe the crash

Reproducible in: 2021.3.47f1, 2022.3.55f1, 6000.0.32f1, 6000.1.0a9

Reproducible on: Windows 11
Not reproducible on: No other environments tested

First few lines of stacktrace:

{noformat}0x00007FFA1EEEA484 (Unity) EnsureUniqueSiblingName
0x00007FFA1D2160D7 (Unity) GameObjectUtility_CUSTOM_EnsureUniqueNameForSibling
0x0000019FAC787EBA (Mono JIT Code) (wrapper managed-to-native) UnityEditor.GameObjectUtility:EnsureUniqueNameForSibling_Injected (intptr)
0x0000019FAC787DF3 (Mono JIT Code) UnityEditor.GameObjectUtility:EnsureUniqueNameForSibling (UnityEngine.GameObject)
0x0000019FAC787D1B (Mono JIT Code) [E:\Projects\Unity\Projects\InstantiatePrefabFromScene\Assets\LayoutPrefabs.cs:32] LayoutPrefabs:SpawnAndLayout () {noformat}

  1. Resolution Note (fix version 7000.0.0a22):

    added null check

  2. Resolution Note (fix version 6000.0.37f1):

    Fixed editor crash when null parameter passed in to EnsureUniqueSiblingName

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.