Throwing NSError crashes Xcode when error propagation is disabled.

Originator:hnrmgi
Number:rdar://35571492 Date Originated:16.11.2017
Status:Open Resolved:No
Product:Xcode Product Version:9.1
Classification: Reproducible:Yes
 
Throwing a NSError that has userInfo NSLocalizedDescriptionKey value longer than 240 characters, will crash the Xcode 9.1, if error propagation is disabled (try!). It happens with iOS and OSX projects, but not with Playgrounds. Since the crash log tells that this is a stack overflow and the same string will be displayed in the text editor if its shorter it should give a very good direction where to look.

Comments

Closed, DUPLICATE OF 35004820


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!