Hitting Crashes on NSAttributedString on iOS 15

User with iOS 15 devices were hitting crashes on NSAttributedString Request for help on advice prevention and fix for this. Thanks

0  libsystem_platform.dylib       0x8e4c _os_unfair_lock_recursive_abort + 36
1  libsystem_platform.dylib       0x817c _os_unfair_lock_lock_slow + 300
2  Foundation                     0x27b08 -[NSProcessInfo(NSProcessInfoHardwareState) isLowPowerModeEnabled] + 64
3  WebCore                        0xa2628c <redacted> + 52
4  CoreFoundation                 0x28c5c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5  CoreFoundation                 0xbd564 ___CFXRegistrationPost_block_invoke + 48
6  CoreFoundation                 0x92b44 _CFXRegistrationPost + 416
7  CoreFoundation                 0x3d764 _CFXNotificationPost + 696
8  Foundation                     0x19c98 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
9  Foundation                     0x8d998 NSProcessInfoNotifyPowerState + 184
10 Foundation                     0x27b40 -[NSProcessInfo(NSProcessInfoHardwareState) isLowPowerModeEnabled] + 120
11 WebCore                        0x79d8 <redacted> + 92
12 WebCore                        0xa263ac WebCore::LowPowerModeNotifier::LowPowerModeNotifier(***::Function<void (bool)>&&) + 48
13 WebCore                        0x17dd438 WebCore::Page::Page(WebCore::PageConfiguration&&) + 1656
14 WebKitLegacy                   0x2ddc -[WebView(WebPrivate) _commonInitializationWithFrameName:groupName:] + 2584
15 WebKitLegacy                   0x2398 -[WebView(WebPrivate) _initWithFrame:frameName:groupName:] + 112
16 UIFoundation                   0xd4dd0 -[NSHTMLReader _loadUsingWebKit] + 828
17 UIFoundation                   0xd5e94 -[NSHTMLReader attributedString] + 28
18 UIFoundation                   0x924dc _NSReadAttributedStringFromURLOrData + 8388
19 UIFoundation                   0x9038c -[NSAttributedString(NSAttributedStringUIFoundationAdditions) initWithData:options:documentAttributes:error:] + 152
20 mudah.my                       0x24d5f4 specialized @nonobjc NSAttributedString.init(data:options:documentAttributes:) + 4340749812 (<compiler-generated>:4340749812)
21 mudah.my                       0x248204 String.htmlToAttributedString.getter + 4340728324 (<compiler-generated>:4340728324)
22 mudah.my                       0x2f017c AdvertisementViewController.savePhoneNumbersAndMakeTextClickable(text:phoneNumbers:) + 2048 (AdvertisementViewController.swift:2048)
23 mudah.my                       0x2e345c AdvertisementViewController._adDetails.didset + 2044 (AdvertisementViewController.swift:2044)
24 mudah.my                       0x2e65e4 closure #1 in AdvertisementViewController.loadAdDetails() + 4341376484 (<compiler-generated>:4341376484)
25 mudah.my                       0x20590 thunk for @escaping @callee_guaranteed () -> () + 4338468240 (<compiler-generated>:4338468240)
26 libdispatch.dylib              0x632ec _dispatch_call_block_and_release + 24
27 libdispatch.dylib              0x642f0 _dispatch_client_callout + 16
28 libdispatch.dylib              0x456a4 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 904
29 CoreFoundation                 0x4d7f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
30 CoreFoundation                 0xb0f8 __CFRunLoopRun + 2528
31 CoreFoundation                 0x1dd8c CFRunLoopRunSpecific + 572
32 GraphicsServices               0x19a0 GSEventRunModal + 160
33 UIKitCore                      0x4ee018 -[UIApplication _run] + 1080
34 UIKitCore                      0x28229c UIApplicationMain + 2060
35 mudah.my                       0x3d2828 main + 18 (AppDelegate.swift:18)
36 ???                            0x105bc4190 (Missing)

Hitting Crashes on NSAttributedString on iOS 15

See this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the response

Hitting Crashes on NSAttributedString on iOS 15
 
 
Q