Search Issue Tracker

Fixed

Votes

6

Found in

2023.1.2f1

2023.2.0a21

Issue ID

UUM-41295

Regression

Yes

Editor crashes when using PrefabUtility.SaveAsPrefabAsset() for GameObject with >= 22 child GameObjects

-

How to reproduce:
1. Open the user-attached project “PrefabUtilityCrash-2023.2”
2. In the toolbar click My Test > Run
3. Observe the Editor

Expected result: The Editor doesn't crash
Actual result: The Editor crashes

Reproducible with: 2023.1.0b14, 2023.1.2f1, 2023.2.0a10, 2023.2.0a21
Not reproducible with: 2021.3.27f1, 2022.3.3f1, 2023.1.0b13, 2023.2.0a9

Reproducible on: Windows 11 Pro

First stacktrace lines:
0x00007FFCA585CF47 (Unity) FindSimilarComponent
0x00007FFCA586862A (Unity) MatchComponents
0x00007FFCA58539D4 (Unity) BuildReplaceMapByGameObjectName
0x00007FFCA5876185 (Unity) SetupFileIDsFromExistingPrefabAssetNameBased
0x00007FFCA5873877 (Unity) SavePrefab_Internal

  1. Resolution Note:

    Fixed by another internal issue: UUM-41195: Usd package 'Import as Prefab' will crash the editor for certain files

Comments (1)

  1. Vagabond_

    Jul 11, 2023 07:38

    Hi, for me this happens if there were a prefab already created in the target folder. If no prefab was present in the folder, it doesn't crash ( Unity 2023.1.3f1, Windows 10 64bit )

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.