Editing label text with Auto Layout makes Xcode unresponsive

Originator:craig.hockenberry
Number:rdar://25173433 Date Originated:15-Mar-2016 12:25 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7D162j)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:

Editing the text for labels in a view controller that uses Auto Layout causes Xcode to become unresponsive. The "Interface Builder Cocoa Touch Tool" saturates one core of the CPU and appears to be stuck in IBAutolayoutEngine. That, in turn, is stuck in UIView(AdditionalLayoutSupport) and the iterative solver (NSISEngine). See the attached Spindump.txt

Steps to Reproduce:

1) Open the attached Start.storyboard
2) Edit the label text so that it matches Edited.storyboard (use your favorite diff tool to verify that only the text was edited)
3) Eventually, Xcode will hang

Alternatively, just open Edited.storyboard. Make sure to save your work first, Xcode will hang as soon as you do this.

Expected Results:

I should be able replace Lorem ipsum with some real text for a help page in my app.

Actual Results:

I have had to force quit Xcode about 193 times in the last 12 hours. And I’ve given up on making the layout in my app nicer.

Regression:

None known.

Notes:

The design I'm trying to achieve here isn't particularly complex. I just want a column of text with a minimum width (300 pt) and a maximum width (500 pt) that maintains at least a 10 pt margin.

Xcode just can't handle it, even if I try to modify the storyboard by hand with text editor.

If you can suggest a workaround, I'd love to hear it. As is, I have to provide a crappy layout to my customers who are on iPads.

Attachments: http://files.iconfactory.net/craig/bugs/AutolayoutHang.zip

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!