Using a non-zero hyphenationFactor in a NSParagraphStyle for an NSAttributedString can cause a crash when using sizeThatFits:
| Originator: | dlreese | ||
| Number: | rdar://16304280 | Date Originated: | 2014-03-12 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 6.1, 7.0 and 7.1 |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Sometimes |
I'm repeatedly calling sizeThatFits: on an NSAttributedString that has a paragraph style with a non-zero hyphenationFactor. It doesn't always crash, even under identical use, but it crashes fairly often on iOS 6.1, 7.0 and 7.1. I have attached a sample project. Just start the app in the Simulator, and tap the Start button repeatedly. Will eventually crash in both the Simulator and on a device. No crash. Crash about 10% ~ 20% of the time. iOS Simulator, iPad 3, iPad mini, iPad 2, iPad 4 iOS 6.1.3, 7.0, 7.0.2, 7.0.3, 7.0.4, 7.0.6, 7.1
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!