HTMLLabel
HTMLLabel copied to clipboard
Random Crash NSRangeException
Hi, I use HTMLLabel to show my content description but it randomly (very rare and I can't reproduce it) gave error NSRangeException
this are the stack trace:
Crashed: com.twitter.crashlytics.ios.exception 0 MyApp 0x100568840 CLSProcessRecordAllThreads + 174788 1 MyApp 0x100568840 CLSProcessRecordAllThreads + 174788 2 MyApp 0x100568c60 CLSProcessRecordAllThreads + 175844 3 MyApp 0x100559924 CLSHandler + 113576 4 MyApp 0x100566f68 CLSExceptionRecord_block_invoke + 168428 5 libdispatch.dylib 0x1811cd47c _dispatch_client_callout + 16 6 libdispatch.dylib 0x1811d8728 dispatch_barrier_sync_f_invoke + 100 7 MyApp 0x100566a14 CLSExceptionRecord + 167064 8 MyApp 0x100566850 CLSExceptionRecordNSException + 166612 9 MyApp 0x1005664b0 CLSTerminateHandler() + 165684 10 libc++abi.dylib 0x180ddaf44 std::__terminate(void ()()) + 16 11 libc++abi.dylib 0x180dda85c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, Unwind_Exception) + 134 12 libobjc.A.dylib 0x180de8094 _objc_exception_destructor(void) + 330 13 CoreFoundation 0x181662ebc -[NSArrayM removeObjectAtIndex:] + 238 14 MyApp 0x1000ee128 -HTMLLayout update 15 MyApp 0x1000ee3e0 -HTMLLayout drawAtPoint: 16 UIKit 0x186956560 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368 17 QuartzCore 0x18429e2ec -[CALayer drawInContext:] + 260 18 QuartzCore 0x184288950 CABackingStoreUpdate + 2432 19 QuartzCore 0x1843a02e0 ZN2CA5Layer8display_Ev_block_invoke + 52 20 QuartzCore 0x184287b2c CA::Layer::display() + 1368 21 QuartzCore 0x184269814 CA::Layer::display_if_needed(CA::Transaction) + 228 22 QuartzCore 0x184269500 CA::Layer::layout_and_display_if_needed(CA::Transaction) + 44 23 QuartzCore 0x184268b24 CA::Context::commit_transaction(CA::Transaction) + 252 24 QuartzCore 0x18426886c CA::Transaction::commit() + 512 25 QuartzCore 0x184261dd8 CA::Transaction::observer_callback(_CFRunLoopObserver, unsigned long, void) + 80 26 CoreFoundation 0x1817387b0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION** + 32 27 CoreFoundation 0x181736554 __CFRunLoopDoObservers + 372 28 CoreFoundation 0x181736984 __CFRunLoopRun + 928 29 CoreFoundation 0x181660d10 CFRunLoopRunSpecific + 384 30 GraphicsServices 0x182f48088 GSEventRunModal + 180 31 UIKit 0x186935f70 UIApplicationMain + 204 32 MyApp 0x10012aec4 main (main.m:14) 33 libdispatch.dylib 0x1811fe8b8 (Missing)
How to solve this issue?