Search Issue Tracker
Won't Fix
Votes
3
Found in
5.6.2p1
Issue ID
932502
Regression
No
Prefabs and Undo leads to crash
Reproduction steps:
1. Open "MinimalReproProject.zip"
2. Open the "Main" Scene
3. Drag and Drop "Prefab A" from the Project window onto the child("Prefab B") of "Prefab A" in the Hierarchy window
4. Repeat dropping the "Prefab A" on the Last child ("Prefab B") 2 times
5. Click on the Second "Prefab A" and Click "Apply" in the Inspector window
6. Repeat dropping the "Prefab A" on the Last child ("Prefab B") 1 time
7. Click on the last "Prefab A" and Click "Apply" in the Inspector window
8. Click on the first child "Prefab A" and Click "Apply" in the Inspector window
9. Press "Ctrl" + "Z" ("Cmd" for Mac) repeatedly until the Editor freezes/crashes
Expected Result: The Undo function should Undo the actions
Actual Result: Editor freezes/crashes, sometimes just creates more prefabs outside of the main prefab with the child objects
Reproduced with: 2017.2.0b3, 2017.1.0p1, 5.6.2p4, 5.5.4p2
Note:
Notice how after step 5 the prefab in the Project window didn't update with the newly added child objects
Notice how after step 5 and step 7, upon clicking the "Apply" button, the prefab closes and when expanded there is one more "Prefab A" added
Comments (6)
-
AndreInfante
Jun 22, 2021 03:53
Virtually everything in my game is a prefab, and I suspect the same is true of most Unity users, because that's more or less the correct way to develop. There is no point in having an undo feature if it behaves like this.
-
browne11
Dec 31, 2017 19:15
I've seen this around for a while, mostly ignored it till it happened several times in a row working on particle systems and prefabs.
For me It seems to only happen when you delete and object on a prefab then undo it after making several new steps.
-
hheinrichsschuler
Nov 09, 2017 16:43
In 5.6.0f3, I got this after only adding a text component to a prefab and hitting Ctrl+Z. I hadn't even applied the change. All it took was those two steps.
-
Harinezumi
Aug 17, 2017 09:35
This just happened to me in 5.6.2p4: I changed a prefab, applied the changes, then started undoing. Crash.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Decal Shader Graph - Custom vertex interpolators are always 0
- Error “NullReferenceException: Object reference not set to an instance of an object“ is present when the UI Toolkit Debugger window is docked and inactive on Editor launch
- RenderTexture pixels are gray when created without drawing on macOS
- Slider disappears when the Baked Lightmap Viewer window is at its minimum size
- Crash on 'TransformParticleMesh' when setting Particles in PlayMode
Resolution Note:
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.