我見過的在未來的所有不同的崩潰報告了一把似乎當核心文本計算響應於[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留言說崩潰已經修復。我希望奧費可能會友好地分享一些關於他們發現他們正在做什麼來觸發崩潰的細節!