我见过的在未来的所有不同的崩溃报告了一把似乎当核心文本计算响应于[UIView sizeThatFits]
调用一些文本的大小被触发。我怀疑崩溃一些共同的原因,但我只带了几堆栈跟踪,我不知道如何重现任何的问题我自己,所以我猜左边的是什么各种各样的问题,可以触发崩溃。什么样的问题导致在调用`sizeThatFits`核心文本崩溃?
在一种情况下崩溃是在ABPeoplePickerNavigationController
发生和在堆栈上的代码是完全苹果代码。我审核了我的代码,以确保UIKit/Core Text仅在主线程中使用。
我看到这个tantalizing stack trace贴在buzztouch论坛,这看起来非常相似,也分享了“接触”触发。
frame #0: 0x007fe283 CoreText`TComponentFont::GetMinSideBearing(CGAffineTransform const&, bool) const + 43
frame #1: 0x0076b244 CoreText`TRun::GetLeftHangersGlyphCountAndWidth(long, unsigned long, TCharStream const&) const + 524
frame #2: 0x0077e7da CoreText`TLine::GetLeftHangersGlyphCountAndWidth(unsigned long const*) const + 234
frame #3: 0x0077e4b9 CoreText`TLine::GetBounds(unsigned long) const + 811
frame #4: 0x0077ace6 CoreText`CTLineGetBoundsWithOptions + 44
frame #5: 0x02059497 UIKit`-[UITableViewIndex _cacheAndMeasureTitles] + 984
frame #6: 0x02059ace UIKit`-[UITableViewIndex sizeThatFits:] + 131
在论坛上,有人叫Ofer留言说崩溃已经修复。我希望奥费可能会友好地分享一些关于他们发现他们正在做什么来触发崩溃的细节!