Xcode crash in Playgrounds
Originator: | igeek1 | ||
Number: | rdar://40140612 | Date Originated: | 10-May-2018 04:58 PM |
Status: | Resolved | Resolved: | July 17 2018, 1:44 PM |
Product: | Developer Tools | Product Version: | Xcode 9.4 (9Q1019a) on macOS 10.13.4 (17E202) |
Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: When you run the attached playground, Xcode crashes. Steps to Reproduce: 1. Put this code in a macOS or iOS Playground: import CoreGraphics var rect = CGRect.null rect.origin.x = 5.0 rect.isNull rect.origin.y = 0.0 rect.isNull rect.origin.y = .infinity rect.isNull rect.size.width = .infinity rect.origin.y = 0.0 rect.isNull // this is the line that causes the playground to crash //rect.size.height = .infinity rect.isNull ********** 2. Run the playground and observe that it runs fine. 3. Uncomment the commented line. 4. Rerun the playground. Expected Results: No crash. Actual Results: Crash. Version: Xcode 9.4 (9Q1019a) on macOS 10.13.4 (17E202) Notes: Attached crash log is also at https://cl.ly/rUtD
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!
Resolved in Xcode 10 beta 4.