Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X, 2017.1.X, 2017.2.X
Votes
5
Found in
5.6.0b6
Issue ID
876232
Regression
Yes
[Undo] Unity crashes after undoing deleting prefab with UI element
Steps to repro:
1. Open attached project;
2. Open Assets -> Scenes -> main.unity;
3. In the Hierarchy expand UI -> Main Window;
4. Delete 'Button' gameobject from Hierarchy (should be highlighted in blue);
5. Drag and drop 'Button' prefab from Assets -> Scenes to Hierarchy;
6. Open Edit context menu and Undo several times.
Actual result:
Unity crashes. See attached video.
Last calls from the stacktrace:
0x00000001411B8DEA (Unity) UI::RectTransform::UpdatePosAndRect
0x00000001411C0526 (Unity) UI::RectTransform::UpdatePosAndRectRecursive
0x00000001411C0624 (Unity) UI::RectTransform::UpdatePosAndRectRecursive
0x00000001411C0624 (Unity) UI::RectTransform::UpdatePosAndRectRecursive
0x00000001411C3A83 (Unity) UI::RectTransform::SetSizeDelta
0x00000001418FA94B (Unity) UI::Canvas::UpdateCanvasRectTransform
0x00000001418FAC9D (Unity) UI::Canvas::SetScaleFactor
Expected result:
Unity should not crash. Deleted prefab instance should be restored in Hierarchy panel.
Notes:
- Reproducible in 5.6.0b6;
- Was unable to reproduce in previous versions, since Editor crashes when opening project from previous versions;
- Was unable to repro from scratch; seems to be related to the current project;
- Reproducible on Windows 10 and OSX 10.12.2.
Comments (3)
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
- Inspector scroll area stretches when using components with nested serialized arrays on FBX model prefab instances
- Crash on ConstraintProjectionTree::projectionTreeBuildStep when ConfigurableJoint uses JointProjectionMode.PositionAndRotation and connected Rigidbody switches from kinematic to non-kinematic
- ScriptableObject asset is accessed during the lookup of Build Profiles when opening the Build Profiles Window
- [Multiplayer TPS Sample] Grenade launcher explosion misses the Player when the Collider count exceeds HitColliderBuffer
- OS Notification Documentation is missing when following hyperlink in Notifications Settings in Hub
TimRad96
Oct 23, 2022 23:06
Happened to me a lot today and has been the case for quite a while. It's really annoying.
I hope you fix it soon :)
ziad10a
Apr 06, 2017 07:50
Happened to me today three times till I realized it's from the undo.
annoying!