ZSWTappableLabel icon indicating copy to clipboard operation
ZSWTappableLabel copied to clipboard

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000030

Open vanniktech opened this issue 4 years ago • 2 comments

This is kind of a one off exception that only happened a few times on some devices. I can't reproduce it:

Crashed: com.apple.main-thread
0  CoreText                       0x1aae05ca4 TGlyphEncoder::RunUnicodeEncoderRecursively(unsigned int, TCFRef<CTRun*>&&, __CTFont const*, CFRange, TInlineVector<long, 30ul>&, TGlyphEncoder::Fallbacks, TFontCascade const*, __CFString const*, TGlyphEncoder::ClusterMatching, bool) + 76
1  CoreText                       0x1aae0690c TGlyphEncoder::AppendUnmappedCharRun(unsigned int, TCFRef<CTRun*>&, __CTFont const*, CFRange&, CFRange, TInlineVector<long, 30ul>&, TFontCascade const&, TGlyphEncoder::ClusterMatching, bool) + 996
2  CoreText                       0x1aae0690c TGlyphEncoder::AppendUnmappedCharRun(unsigned int, TCFRef<CTRun*>&, __CTFont const*, CFRange&, CFRange, TInlineVector<long, 30ul>&, TFontCascade const&, TGlyphEncoder::ClusterMatching, bool) + 996
3  CoreText                       0x1aae061e8 TGlyphEncoder::RunUnicodeEncoderRecursively(unsigned int, TCFRef<CTRun*>&&, __CTFont const*, CFRange, TInlineVector<long, 30ul>&, TGlyphEncoder::Fallbacks, TFontCascade const*, __CFString const*, TGlyphEncoder::ClusterMatching, bool) + 1424
4  CoreText                       0x1aae05254 TGlyphEncoder::EncodeChars(CFRange, TAttributes const&, TGlyphEncoder::Fallbacks) + 1412
5  CoreText                       0x1aae1f918 TTypesetterAttrString::Initialize(__CFAttributedString const*) + 448
6  CoreText                       0x1aae1f740 TTypesetterAttrString::TTypesetterAttrString(__CFAttributedString const*, __CFDictionary const*) + 160
7  CoreText                       0x1aae0a814 CTLineCreateWithAttributedString + 132
8  UIFoundation                   0x1af8b27f4 -[NSCoreTypesetter _stringDrawingCoreTextEngineWithOriginalString:rect:padding:graphicsContext:forceClipping:attributes:stringDrawingOptions:drawingContext:stringDrawingInterface:] + 8928
9  UIFoundation                   0x1af8ac0c4 __NSStringDrawingEngine + 1652
10 UIFoundation                   0x1af8182a4 -[NSAttributedString(NSExtendedStringDrawing) boundingRectWithSize:options:context:] + 1076
11 UIKitCore                      0x1a9a69d88 -[UILabel _textRectForBounds:limitedToNumberOfLines:includingShadow:] + 492
12 UIKitCore                      0x1a9a6df2c -[UILabel _intrinsicSizeWithinSize:] + 484
13 UIKitCore                      0x1a9a6d12c -[UILabel _ensureBaselineMetricsReturningBounds] + 172
14 UIKitCore                      0x1a9a6d344 -[UILabel _baselineOffsetFromBottom] + 92
15 UIKitCore                      0x1a9a6be24 -[UILabel _invalidateBaselineConstraints] + 92
16 UIKitCore                      0x1a9a65140 -[UILabel _setContent:adjustingFontForAccessibilityTraits:checkingForDifferences:] + 608
17 UIKitCore                      0x1a9a6ad28 -[UILabel setAttributedText:] + 136
18 ZSWTappableLabel               0x10417b314 -[ZSWTappableLabel setAttributedText:] + 218 (ZSWTappableLabel.m:218)

Is this known?

vanniktech avatar Sep 13 '21 12:09 vanniktech

I have not seen this one in the wild before. Do you know what attributed text is being set?

zacwest avatar Sep 13 '21 16:09 zacwest

Unfortunately, not.

vanniktech avatar Sep 13 '21 17:09 vanniktech