NSPredicateEditor in stack view in storyboard crashes window server

Originator:mayoff
Number:rdar://36628692 Date Originated:18-Jan-2018 01:56 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 9.2 (9C40b) / macOS 10.12.6 (16G1114)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Dear Xcoderinos,

Would you like to crash the window server? I will tell you how.

Open the attached project. In Main.storyboard, you will find a View Controller scene. It has a view hierarchy with a stack view labeled “Root Stack”. The root stack contains two container views and some other stuff.

Find NSPredicateEditor in the Object library and drag it to the root stack, just after the nested stack view, before the second container view.

Xcode now makes a very very large view. Then your monitor(s) turn black. Then you are shown the login screen.

I will also attach a window server crash report for your amusement.

Love,
Rob


Steps to Reproduce:
1. Do that stuff I said above.


Expected Results:
A predicate editor (which we should call a preditor for short).

Actual Results:
Crash. Or, if you make the View Controller scene narrower, maybe not crash, but a 10000-point tall view, which is also suboptimal.

Version:
Xcode Version 9.2 (9C40b) / macOS 10.12.6 (16G1114)

Notes:

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!