Skip to content

Instantly share code, notes, and snippets.

@indragiek
Created January 3, 2015 04:14
Show Gist options
  • Save indragiek/88a148c7006aca6c3dbf to your computer and use it in GitHub Desktop.
Save indragiek/88a148c7006aca6c3dbf to your computer and use it in GitHub Desktop.
UITextView crash
* thread #1: tid = 0x4ec0b, 0x0000000102444b8a libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000102444b8a libobjc.A.dylib`objc_exception_throw
frame #1: 0x00000001027abe6d CoreFoundation`+[NSException raise:format:] + 205
frame #2: 0x00000001066f79f6 UIFoundation`-[NSConcreteTextStorage attribute:atIndex:effectiveRange:] + 131
frame #3: 0x00000001066c351b UIFoundation`-[NSAttributedString(NSAttributedStringUIFoundationAdditions) rangeOfTextTable:atIndex:] + 65
frame #4: 0x00000001066f9e1b UIFoundation`-[NSTextBlockLayoutHelper initWithTextTable:charIndex:text:layoutManager:containerWidth:collapseBorders:] + 376
frame #5: 0x00000001066fe85f UIFoundation`-[NSTextTable rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:] + 355
frame #6: 0x00000001066fcc3b UIFoundation`-[NSTextTableBlock rectForLayoutAtPoint:inRect:textContainer:characterRange:] + 116
frame #7: 0x0000000106706b3b UIFoundation`-[NSTypesetter getLineFragmentRect:usedRect:remainingRect:forStartingGlyphAtIndex:proposedRect:lineSpacing:paragraphSpacingBefore:paragraphSpacingAfter:] + 2204
frame #8: 0x00000001066a92c3 UIFoundation`-[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:] + 1716
frame #9: 0x00000001066aadfc UIFoundation`-[NSATSTypesetter layoutParagraphAtPoint:] + 156
frame #10: 0x0000000106704643 UIFoundation`-[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] + 3391
frame #11: 0x0000000106705cf9 UIFoundation`-[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 246
frame #12: 0x00000001066ab761 UIFoundation`-[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 388
frame #13: 0x0000000106695b4a UIFoundation`-[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1258
frame #14: 0x00000001066975b7 UIFoundation`-[NSLayoutManager(NSPrivate) _fillLayoutHoleAtIndex:desiredNumberOfLines:] + 201
frame #15: 0x0000000106697c3f UIFoundation`-[NSLayoutManager(NSPrivate) _markSelfAsDirtyForBackgroundLayout:] + 344
frame #16: 0x00000001066a1e3d UIFoundation`-[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:invalidateUsage:] + 2143
frame #17: 0x00000001066cd84b UIFoundation`-[NSLayoutManager textContainerChangedGeometry:] + 315
frame #18: 0x00000001066f206d UIFoundation`-[NSTextContainer setSize:] + 200
frame #19: 0x00000001034eea0e UIKit`__47-[UITextView _performLayoutCalculation:inSize:]_block_invoke + 229
frame #20: 0x00000001066d7718 UIFoundation`-[NSLayoutManager(TextLocking) coordinateAccess:] + 55
frame #21: 0x00000001034ee91a UIKit`-[UITextView _performLayoutCalculation:inSize:] + 223
frame #22: 0x00000001034eed04 UIKit`-[UITextView _intrinsicSizeWithinSize:] + 411
frame #23: 0x00000001034eef17 UIKit`-[UITextView intrinsicContentSize] + 130
frame #24: 0x000000010345aea4 UIKit`-[UIView(UIConstraintBasedLayout) _generateContentSizeConstraints] + 33
frame #25: 0x000000010345ac64 UIKit`-[UIView(UIConstraintBasedLayout) _updateContentSizeConstraints] + 422
frame #26: 0x00000001034620d6 UIKit`-[UIView(AdditionalLayoutSupport) updateConstraints] + 163
frame #27: 0x00000001034ef2e7 UIKit`-[UITextView updateConstraints] + 271
frame #28: 0x00000001034616fa UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 248
frame #29: 0x00000001034618f2 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 124
frame #30: 0x00000001026b4194 CoreFoundation`CFArrayApplyFunction + 68
frame #31: 0x000000010346169b UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 153
frame #32: 0x00000001034618f2 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 124
frame #33: 0x00000001026b4194 CoreFoundation`CFArrayApplyFunction + 68
frame #34: 0x000000010346169b UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 153
frame #35: 0x00000001034618f2 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:] + 124
frame #36: 0x0000000103461dbe UIKit`__60-[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded]_block_invoke + 96
frame #37: 0x0000000103461a86 UIKit`-[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded] + 231
frame #38: 0x00000001032578b8 UIKit`-[UITableViewCellContentView updateConstraintsIfNeeded] + 95
frame #39: 0x000000010345e3a9 UIKit`-[UIView(AdditionalLayoutSupport) _systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:hasIntentionallyCollapsedHeight:] + 298
frame #40: 0x000000010306090d UIKit`-[UITableViewCell systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:] + 316
frame #41: 0x0000000102ed8d65 UIKit`-[UITableView _heightForCell:atIndexPath:] + 363
frame #42: 0x0000000102ecb6e7 UIKit`__53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 1917
frame #43: 0x0000000102e4c5ce UIKit`+[UIView(Animation) performWithoutAnimation:] + 65
frame #44: 0x0000000102ecaf5b UIKit`-[UITableView _configureCellForDisplay:forIndexPath:] + 312
frame #45: 0x0000000102ed24cc UIKit`-[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 533
frame #46: 0x0000000102eb1fb1 UIKit`-[UITableView _updateVisibleCellsNow:isRecursive:] + 2846
frame #47: 0x0000000102ec7e3c UIKit`-[UITableView layoutSubviews] + 213
frame #48: 0x0000000102e54973 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
frame #49: 0x0000000101956de8 QuartzCore`-[CALayer layoutSublayers] + 150
frame #50: 0x000000010194ba0e QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 380
frame #51: 0x000000010194b87e QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 24
frame #52: 0x00000001018b963e QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 242
frame #53: 0x00000001018ba74a QuartzCore`CA::Transaction::commit() + 390
frame #54: 0x00000001018badb5 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 89
frame #55: 0x00000001026e0dc7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
frame #56: 0x00000001026e0d20 CoreFoundation`__CFRunLoopDoObservers + 368
frame #57: 0x00000001026d6b53 CoreFoundation`__CFRunLoopRun + 1123
frame #58: 0x00000001026d6486 CoreFoundation`CFRunLoopRunSpecific + 470
frame #59: 0x00000001072249f0 GraphicsServices`GSEventRunModal + 161
frame #60: 0x0000000102ddb420 UIKit`UIApplicationMain + 1282
* frame #61: 0x00000001010fe62e MyApp`top_level_code + 78 at AppDelegate.swift:12
frame #62: 0x00000001010fe66a MyApp`main + 42 at AppDelegate.swift:0
frame #63: 0x00000001054f6145 libdyld.dylib`start + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment