I have a crash report from crashlytics about a crash happening several times, but I don't know from where to start with that one.
The only thing I am able to see form my app is the AppDelegate, and it looks like something is going wrong with an array but where should I look?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x39720f46 objc_msgSend + 5
1 Foundation 0x2bcec8e7 -[NSMutableRLEArray replaceObjectsInRange:withObject:length:] + 370
2 Foundation 0x2bd06b6b -[NSConcreteMutableAttributedString addAttribute:value:range:] + 266
3 UIFoundation 0x36792d07 -[NSStringDrawingTextStorage addAttribute:value:range:] + 50
4 UIFoundation 0x3677ced7 -[NSMutableAttributedString(NSMutableAttributedStringKitAdditions) fixFontAttributeInRange:] + 1738
5 UIFoundation 0x3677c71b -[NSMutableAttributedString(NSMutableAttributedStringKitAdditions) fixAttributesInRange:] + 186
6 UIFoundation 0x36797c59 -[NSTextStorage invalidateAttributesInRange:] + 108
7 UIFoundation 0x36792b27 -[NSStringDrawingTextStorage processEditing] + 66
8 UIFoundation 0x36797995 -[NSTextStorage edited:range:changeInLength:] + 312
9 UIFoundation 0x367970fb -[NSConcreteNotifyingMutableAttributedString edited:range:changeInLength:] + 50
10 Foundation 0x2bcf2529 -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 328
11 UIFoundation 0x3679278d -[NSStringDrawingTextStorage textContainerForAttributedString:containerSize:lineFragmentPadding:] + 72
12 UIFoundation 0x3678ba7d __NSStringDrawingEngine + 7520
13 UIFoundation 0x367905bb -[NSAttributedString(NSExtendedStringDrawing) boundingRectWithSize:options:context:] + 914
14 UIKit 0x2ea2726b -[UILabel _updateScaledMetricsForRect:] + 618
15 UIKit 0x2e700b51 -[UILabel _drawTextInRect:baselineCalculationOnly:] + 448
16 UIKit 0x2e7684c9 -[UILabel drawTextInRect:] + 488
17 UIKit 0x2e7682d9 -[UILabel drawRect:] + 84
18 UIKit 0x2e76825d -[UIView(CALayerDelegate) drawLayer:inContext:] + 400
19 QuartzCore 0x2e12e33d -[CALayer drawInContext:] + 228
20 UIKit 0x2eb74689 -[_UILabelContentLayer drawInContext:] + 140
21 QuartzCore 0x2e11765b CABackingStoreUpdate_ + 2070
22 QuartzCore 0x2e1fccb9 ___ZN2CA5Layer8display_Ev_block_invoke + 52
23 QuartzCore 0x2e116e39 x_blame_allocations + 88
24 QuartzCore 0x2e116ad1 CA::Layer::display_() + 1160
25 QuartzCore 0x2e0fa729 CA::Layer::display_if_needed(CA::Transaction*) + 200
26 QuartzCore 0x2e0fa3ed CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 24
27 QuartzCore 0x2e0f9d81 CA::Context::commit_transaction(CA::Transaction*) + 224
28 QuartzCore 0x2e0f9b6f CA::Transaction::commit() + 434
29 QuartzCore 0x2e14d6e1 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 524
30 IOMobileFramebuffer 0x33050c07 IOMobileFramebufferVsyncNotifyFunc + 90
31 IOKit 0x2bfea001 IODispatchCalloutFromCFMessage + 256
32 CoreFoundation 0x2b02624d __CFMachPortPerform + 132
33 CoreFoundation 0x2b0367cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
34 CoreFoundation 0x2b036767 __CFRunLoopDoSource1 + 346
35 CoreFoundation 0x2b034d69 __CFRunLoopRun + 1608
36 CoreFoundation 0x2af81201 CFRunLoopRunSpecific + 476
37 CoreFoundation 0x2af81013 CFRunLoopRunInMode + 106
38 GraphicsServices 0x32a52201 GSEventRunModal + 136
39 UIKit 0x2e74da09 UIApplicationMain + 1440
40 MyApp 0x00264ee4 main (AppDelegate.swift:16)
41 libdyld.dylib 0x39cc6aaf start + 2
Any idea how to go further with that one?
Related
After upgrading to DJI iOS SDK v4.14, my pilot view crashes extremely frequently. Testing before iOS 14.4, this issue doesn't occur at all it seems. Anyone experience this? Here's the crash report:
Last Exception Backtrace:
0 CoreFoundation 0x189ee986c __exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x19ef04c50 objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreFoundation 0x189f59e1c _CFThrowFormattedException + 116 (CFObject.m:1994)
3 CoreFoundation 0x189de0ff0 -[NSArray subarrayWithRange:] + 496 (NSArray.m:667)
4 DJIUXSDK 0x102644cf0 -[DUXWidgetCollectionViewStacksLayout frameOfWidgetAtIndex:] + 324
5 DJIUXSDK 0x102644b04 -[DUXWidgetCollectionViewStacksLayout layoutAttributesForItemAtIndexPath:] + 244
6 DJIUXSDK 0x1025682b0 -[DUXWidgetCollectionViewLayout layoutAttributesForElementsInRect:] + 316
7 UIKitCore 0x18bfe76cc __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 224 (UICollectionViewData.mm:438)
8 UIKitCore 0x18bfe6e54 -[UICollectionViewData validateLayoutInRect:] + 1072 (UICollectionViewData.mm:587)
9 UIKitCore 0x18bfb03c0 -[UICollectionView layoutSubviews] + 228 (UICollectionView.m:4367)
10 UIKitCore 0x18cdebec4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2504 (UIView.m:17526)
11 QuartzCore 0x18d306644 -[CALayer layoutSublayers] + 308 (CALayer.mm:10147)
12 QuartzCore 0x18d306b18 CA::Layer::layout_if_needed(CA::Transaction*) + 524 (CALayer.mm:10014)
13 QuartzCore 0x18d31b30c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 144 (CALayer.mm:2485)
14 QuartzCore 0x18d260640 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 416 (CAContextInternal.mm:2449)
15 QuartzCore 0x18d28bb08 CA::Transaction::commit() + 732 (CATransactionInternal.mm:449)
16 QuartzCore 0x18d28ce98 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 96 (CATransactionInternal.mm:932)
17 CoreFoundation 0x189e64358 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1799)
18 CoreFoundation 0x189e5e5c4 __CFRunLoopDoObservers + 576 (CFRunLoop.c:1912)
19 CoreFoundation 0x189e5eb74 __CFRunLoopRun + 1056 (CFRunLoop.c:2953)
20 CoreFoundation 0x189e5e21c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
21 GraphicsServices 0x1a1a2a784 GSEventRunModal + 164 (GSEvent.c:2259)
22 UIKitCore 0x18c89eee8 -[UIApplication _run] + 1072 (UIApplication.m:3253)
23 UIKitCore 0x18c8a475c UIApplicationMain + 168 (UIApplication.m:4707)
24 SoDro 0x10026bdc4 main + 68 (AppDelegate.swift:15)
25 libdyld.dylib 0x189b1e6b0 start + 4
I received a crash log and am a bit puzzled about it.
0 libobjc.A.dylib 0x000000018e4c20a0 objc_msgSend + 32
1 UIKitCore 0x0000000192be86b8 -[UIView(AdditionalLayoutSupport) _nsis_center:bounds:inEngine:forLayoutGuide:] + 1328 (NSLayoutConstraint_UIKitAdditions.m:3674)
2 UIKitCore 0x0000000192ca003c -[UIView(Geometry) _applyISEngineLayoutValuesToBoundsOnly:] + 364 (UIView.m:0)
3 UIKitCore 0x0000000192ca04ac -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 136 (UIView.m:10182)
4 CoreFoundation 0x000000018e77195c __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16 (NSArrayHelpers.m:9)
5 CoreFoundation 0x000000018e674fb0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 416 (NSArrayM_Common.h:390)
6 UIKitCore 0x0000000192c9f5e4 -[UIView(Geometry) resizeSubviewsWithOldSize:] + 156 (UIView.m:9953)
7 UIKitCore 0x0000000192be76fc -[UIView(AdditionalLayoutSupport) _is_layout] + 148 (NSLayoutConstraint_UIKitAdditions.m:3231)
8 UIKitCore 0x0000000192ca7090 -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 1032 (UIView.m:12082)
9 UIKitCore 0x0000000192cba17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2140 (UIView.m:17028)
10 QuartzCore 0x00000001952222c0 -[CALayer layoutSublayers] + 284 (CALayer.mm:9627)
11 QuartzCore 0x000000019522843c CA::Layer::layout_if_needed(CA::Transaction*) + 480 (CALayer.mm:9501)
12 QuartzCore 0x0000000195233140 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136 (CALayer.mm:2461)
13 QuartzCore 0x000000019517b884 CA::Context::commit_transaction(CA::Transaction*, double) + 304 (CAContextInternal.mm:1992)
14 QuartzCore 0x00000001951a5574 CA::Transaction::commit() + 676 (CATransactionInternal.mm:438)
15 QuartzCore 0x00000001951a5f68 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92 (CATransactionInternal.mm:888)
16 CoreFoundation 0x000000018e71be68 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1758)
17 CoreFoundation 0x000000018e716d54 __CFRunLoopDoObservers + 416 (CFRunLoop.c:1868)
18 CoreFoundation 0x000000018e717320 __CFRunLoopRun + 1308 (CFRunLoop.c:2910)
19 CoreFoundation 0x000000018e716adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
20 GraphicsServices 0x00000001986b7328 GSEventRunModal + 104 (GSEvent.c:2246)
21 UIKitCore 0x000000019282463c UIApplicationMain + 1936 (UIApplication.m:4773)
22 MyAppName 0x0000000100b96974 main + 68 (Theme+Fonts.swift:14)
23 libdyld.dylib 0x000000018e5a0360 start + 4
The Theme+Fonts.swift file is a simple enum
enum ThemeFont: String {
case arialBold = "Arial-BoldMT",
arialRoundedBold = "Arial Rounded MT Bold", // This is line 14
…
}
How can I investigate further?
It happened on an iPhone 7. I don't have a device but I tested on the Simulator and got nothing.
This is probably not caused by the enum code but rather has something to do with the callback here
16 CoreFoundation 0x000000018e71be68 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1758)
I have received some crashes via Crashlytics. It crashed 4 times in last month.
I use Masonry for autolayout and add constraint in layoutSubviews. You can see the crash trace below.
0 libsystem_platform.dylib _platform_memmove + 284
1 Foundation _NSBitSetResize.llvm.9545202549352731061 + 288
2 Foundation NSBitSetAddIndex + 52
3 Foundation NSISLinExpEnumerateVars + 88
4 Foundation _row_setHead + 156
5 Foundation -[NSISEngine tryAddingDirectly:] + 236
6 Foundation -[NSISEngine _tryToAddConstraintWithMarkerEngineVar:row:mutuallyExclusiveConstraints:] + 156
7 Foundation -[NSISEngine tryToAddConstraintWithMarker:expression:mutuallyExclusiveConstraints:] + 684
8 Foundation -[NSLayoutConstraint _addLoweredExpression:toEngine:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 252
9 Foundation -[NSLayoutConstraint _addToEngine:mutuallyExclusiveConstraints:] + 188
10 UIKitCore -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 548
11 UIKitCore -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 36
12 UIKitCore -[UIView(UIConstraintBasedLayout) nsli_addConstraint:] + 84
13 ChopeDashboard MASViewConstraint.m line 361 -[MASViewConstraint install] + 361
14 ChopeDashboard MASConstraintMaker.m line 46 -[MASConstraintMaker install] + 46
15 ChopeDashboard View+MASAdditions.m line 18 -[UIView(MASAdditions) mas_makeConstraints:] + 18
16 ChopeDashboard CDResListHeaderView.m line 128 -[CDResListHeaderView layoutSubviews] + 128
17 UIKitCore -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2140
18 QuartzCore -[CALayer layoutSublayers] + 284
19 QuartzCore CA::Layer::layout_if_needed(CA::Transaction*) + 480
20 QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
21 QuartzCore CA::Context::commit_transaction(CA::Transaction*, double) + 304
22 QuartzCore CA::Transaction::commit() + 676
23 QuartzCore CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 888
24 IOKit IODispatchCalloutFromCFMessage + 488
25 CoreFoundation __CFMachPortPerform + 172
26 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
27 CoreFoundation __CFRunLoopDoSource1 + 444
28 CoreFoundation __CFRunLoopRun + 2168
29 CoreFoundation CFRunLoopRunSpecific + 464
30 GraphicsServices GSEventRunModal + 104
31 UIKitCore UIApplicationMain + 1936
32 ChopeDashboard main.m line 14 main + 14
33 libdyld.dylib start + 4
Has anyone faced the same issue?
my app crash only iOS 9.2.1
The rest of devices okay. Crash in arbitrary places. Please help me =) I use crittercism. I am new to programming, tell me the right way please. Name SIGSEGV Reason SEGV_MAPERR
0 libobjc.A.dylib 0x0000000180d09bdc objc_msgSend + 24
1 UIKit 0x000000018696a654 -[UINibStringIDTable lookupKey:identifier:] + 128
2 UIKit 0x000000018696614c -[UINibDecoder containsValueForKey:] + 44
3 UIKit 0x0000000186698a8c -[UIScrollView initWithCoder:] + 1396
4 UIKit 0x0000000186b99b00 -[UICollectionView initWithCoder:] + 72
5 UIKit 0x000000018696667c UINibDecoderDecodeObjectForValue + 668
6 UIKit 0x00000001869663c4 -[UINibDecoder decodeObjectForKey:] + 332
7 UIKit 0x000000018684615c -[UIRuntimeConnection initWithCoder:] + 184
8 UIKit 0x000000018696667c UINibDecoderDecodeObjectForValue + 668
9 UIKit 0x00000001869667f4 UINibDecoderDecodeObjectForValue + 1044
10 UIKit 0x00000001869663c4 -[UINibDecoder decodeObjectForKey:] + 332
11 UIKit 0x0000000186845490 -[UINib instantiateWithOwner:options:] + 1216
12 UIKit 0x00000001866ef33c -[UIViewController _loadViewFromNibNamed:bundle:] + 372
13 UIKit 0x00000001864b8250 -[UIViewController loadView] + 172
14 UIKit 0x000000018637bd6c -[UIViewController loadViewIfRequired] + 140
15 UIKit 0x000000018643bda8 -[UINavigationController _layoutViewController:] + 68
16 UIKit 0x000000018643bc80 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 412
17 UIKit 0x000000018643aec8 -[UINavigationController _startTransition:fromViewController:toViewController:] + 140
18 UIKit 0x000000018643aa6c -[UINavigationController _startDeferredTransitionIfNeeded:] + 864
19 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
20 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
21 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
22 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
23 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
24 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
25 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
26 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
27 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
28 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
29 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
30 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
31 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
32 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
33 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 34 keep-app 0x0000000100060350 main (main.m:14)
35 libdyld.dylib 0x000000018110e8b8 start + 0
Name SIGSEGV Reason SEGV_MAPERR
0 libobjc.A.dylib 0x0000000180d09bdc objc_msgSend + 24
1 libcache.dylib 0x0000000181062b5c _entry_get_optionally_checking_collisions + 48
2 libcache.dylib 0x0000000181060dd0 _entry_table_resize + 304
3 libcache.dylib 0x0000000181061a9c cache_set_and_retain + 848
4 CoreFoundation 0x00000001815bb470 -[NSCache setObject:forKey:cost:] + 264
5 CoreUI 0x00000001861a2854 -[CUIStructuredThemeStore _canGetRenditionWithKey:isFPO:lookForSubstitutions:] + 856
6 CoreUI 0x00000001861c4d5c -[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 920
7 CoreUI 0x00000001861c40fc -[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 144
8 UIKit 0x0000000186bd9994 __98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 420
9 UIKit 0x0000000186bd9734 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 208
10 UIKit 0x0000000186bd9f18 -[_UIAssetManager imageNamed:withTrait:] + 524
11 UIKit 0x0000000186773c5c _UIImageWithNameAndTraitCollection + 92
12 UIKit 0x0000000186396220 _UIImageWithName + 44
13 UIKit 0x00000001865d7650 -[UISlider createThumbViewNeue] + 160
14 UIKit 0x00000001865d6dec -[UISlider _initSubviews] + 68
15 UIKit 0x00000001865d69c8 -[UISlider layoutSubviews] + 136
16 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
17 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
18 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
19 UIKit 0x000000018638e454 -[UIView(Hierarchy) layoutBelowIfNeeded] + 920
20 UIKit 0x000000018643c20c -[UINavigationController _layoutViewController:] + 1192
21 UIKit 0x0000000186439be4 -[UINavigationController _layoutTopViewController] + 224
22 UIKit 0x00000001864527dc -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 724
23 UIKit 0x00000001864524c8 -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 412
24 UIKit 0x00000001864521d0 -[UINavigationTransitionView _cleanupTransition] + 740
25 UIKit 0x00000001863b6e90 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 308
26 UIKit 0x00000001863b510c +[UIViewAnimationState popAnimationState] + 320
27 UIKit 0x0000000186445cec -[UINavigationTransitionView transition:fromView:toView:] + 1788
28 UIKit 0x000000018643b8c0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2692
29 UIKit 0x000000018643aa6c -[UINavigationController _startDeferredTransitionIfNeeded:] + 864
30 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
31 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
32 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
33 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
34 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
35 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
36 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
37 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
38 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
39 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
40 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
41 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
42 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
43 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
44 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 45 keep-app 0x00000001000b4350 main (main.m:14)
46 libdyld.dylib 0x000000018110e8b8 start + 0
Name SIGSEGV Reason SEGV_MAPERR
0 libsystem_malloc.dylib 0x0000000181257be8 szone_free + 2940
1 CoreFoundation 0x00000001815699a4 CFRelease + 1084
2 CoreUI 0x00000001861a240c -[CUIStructuredThemeStore renditionWithKey:usingKeySignature:] + 1596
3 CoreUI 0x00000001861c435c -[CUICatalog _storageRefForRendition:representsODRContent:] + 100
4 CoreUI 0x00000001861c4124 -[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 184
5 UIKit 0x0000000186bd9994 __98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 420
6 UIKit 0x0000000186bd9734 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 208
7 UIKit 0x0000000186cec584 -[UIImageAsset imageWithTraitCollection:] + 400
8 UIKit 0x000000018672b058 -[UIImageView _resolveImageForTrait:] + 456
9 UIKit 0x000000018672a928 -[UIImageView _didMoveFromWindow:toWindow:] + 208
10 UIKit 0x0000000186376d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
11 UIKit 0x0000000186376310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
12 Foundation 0x0000000181fa9500 -[NSISEngine withBehaviors:performModifications:] + 164
13 UIKit 0x0000000186376194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
14 UIKit 0x0000000186383b80 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1780
15 UIKit 0x0000000186575600 -[_UIParallaxDimmingView didMoveToWindow] + 176
16 UIKit 0x000000018637705c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1492
17 UIKit 0x0000000186376d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
18 UIKit 0x0000000186376310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
19 Foundation 0x0000000181fa9500 -[NSISEngine withBehaviors:performModifications:] + 164
20 UIKit 0x0000000186376194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
21 UIKit 0x0000000186383b80 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1780
22 UIKit 0x0000000186615db4 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1652
23 UIKit 0x000000018638a964 +[UIView(Animation) performWithoutAnimation:] + 76
24 UIKit 0x0000000186575118 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 256
25 UIKit 0x0000000186690840 +[UIView(Internal) _performBlockDelayingTriggeringResponderEvents:] + 216
26 UIKit 0x0000000186574c90 -[_UINavigationParallaxTransition animateTransition:] + 1056
27 UIKit 0x000000018652e6a0 -[UINavigationController _startCustomTransition:] + 3540
28 UIKit 0x000000018643a9b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 684
29 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
30 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
31 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
32 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
33 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
34 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
35 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
36 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
37 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
38 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
39 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
40 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
41 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
42 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
43 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 44 keep-app 0x00000001000c0350 main (main.m:14)
45 libdyld.dylib 0x000000018110e8b8 start + 0
Unfortunately I do not have access to this device iOS 9.2.1. in the simulator and my device is working fine iOS 10.2
A SIGSEGV is an error / signal caused by an invalid memory reference or a segmentation fault. Seems like the app is trying to access an array element out of bounds or trying to use too much memory.
The way to fix this issue is to find out what the exception may be by making it happen on another device (or simulator), or getting the full console logs from that device. An easy way to do this might be to set exception breakpoints to see where the original exception that triggered the SIGSEGV is located.
I have a side panel view (like side drawer) in my iPad app which contains tabbar having 2 tabs. This view is beyond the ipad visible screen and become visible once we pull it from left side. This get initialize always on app launch. It crashes randomly on iOS 7.0.3 and 7.0.4 mostly on iPad 4 models. I can't reproduce it in debug mode while debugger is attached and reproducing frequency is 1% or less on release build.
It will not an iOS issue but any guess or anybody faced and solved similar problem?
Crash report:
Hardware Model: iPad3,4
Code Type: ARM (Native)
OS Version: iOS 7.0.4 (11B554a)
Crash report:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 12
Thread 0:
0 libsystem_kernel.dylib 0x38d7ebb4 syscall_thread_switch + 8
1 libsystem_platform.dylib 0x38df349c _os_lock_handoff_lock_slow + 48
2 libsystem_malloc.dylib 0x38db90f8 szone_free_definite_size + 328
3 libRIP.A.dylib 0x2e4ffb72 ripc_ReleaseClipState + 34
4 libRIP.A.dylib 0x2e503438 ripc_EndLayer + 80
5 CoreGraphics 0x2e1c25e8 CGContextEndTransparencyLayer + 36
6 UIKit 0x309e4d2a -[UIImage(TabBarItemImages) _tabBarItemImageWithTintColor:selected:metrics:style:forScreenScale:] + 902
7 UIKit 0x309e5070 -[UIImage(TabBarItemImages) _unselectedTabBarItemImageWithTintColor:metrics:style:forScreenScale:] + 36
8 UIKit 0x309e4748 -[UITabBarItem(Static) _updateImageWithTintColor:isSelected:getImageOffset:] + 552
9 UIKit 0x309e414c -[UITabBarItem(Static) _createViewForTabBar:showingBadge:withTint:idiom:] + 956
10 UIKit 0x309e3d82 -[UITabBarItem(Static) _createViewForTabBar:showingBadge:idiom:] + 34
11 UIKit 0x309e0028 -[UITabBarItem(Static) _updateViewForIdiom:positionItems:] + 156
12 UIKit 0x309e74ca -[UITabBar(Static) _configureItems:] + 402
13 UIKit 0x309e6b7e -[UITabBar(Static) _positionTabBarButtons:ignoringItem:] + 1270
14 UIKit 0x309e3b38 -[UITabBar setItems:animated:] + 1352
15 UIKit 0x309e3522 -[UITabBarController _rebuildTabBarItemsAnimated:] + 798
16 UIKit 0x309e7a74 -[UITabBarController _setSelectedViewController:] + 72
17 UIKit 0x308cdcf2 +[UIView(Animation) performWithoutAnimation:] + 70
18 UIKit 0x309eb470 -[UITabBarController _selectDefaultViewControllerIfNecessaryWithAppearanceTransitions:] + 216
19 UIKit 0x309ea8e6 -[UITabBarController viewWillAppear:] + 130
20 UIKit 0x308d66fa -[UIViewController _setViewAppearState:isAnimating:] + 342
21 CoreFoundation 0x2e080800 __53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 48
22 CoreFoundation 0x2e07a21a -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 218
23 UIKit 0x308d6876 -[UIViewController _setViewAppearState:isAnimating:] + 722
24 UIKit 0x30a4ccfa -[UINavigationController _startCustomTransition:] + 842
25 UIKit 0x3096aa12 -[UINavigationController _startDeferredTransitionIfNeeded:] + 414
26 UIKit 0x3096a81c -[UINavigationController __viewWillLayoutSubviews] + 40
27 UIKit 0x3096a7b4 -[UILayoutContainerView layoutSubviews] + 180
28 UIKit 0x308bc34e -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 342
29 QuartzCore 0x3054293e -[CALayer layoutSublayers] + 138
30 QuartzCore 0x3053e162 CA::Layer::layout_if_needed(CA::Transaction*) + 346
31 QuartzCore 0x3053dff4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
32 QuartzCore 0x3053da08 CA::Context::commit_transaction(CA::Transaction*) + 224
33 QuartzCore 0x3053d81a CA::Transaction::commit() + 310
34 QuartzCore 0x30537548 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 52
35 CoreFoundation 0x2e102f66 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
36 CoreFoundation 0x2e1008f2 __CFRunLoopDoObservers + 282
37 CoreFoundation 0x2e100c3e __CFRunLoopRun + 734
38 CoreFoundation 0x2e06b46c CFRunLoopRunSpecific + 520
39 CoreFoundation 0x2e06b24e CFRunLoopRunInMode + 102
40 GraphicsServices 0x32d722e6 GSEventRunModal + 134
41 UIKit 0x30920840 UIApplicationMain + 1132
42 MyApp 0x0006b5f2 0x64000 + 30194
43 libdyld.dylib 0x38cdaab4 start + 0
Thread 12 Crashed:
0 libsystem_kernel.dylib 0x38d911fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x38df8a4e pthread_kill + 54
2 libsystem_c.dylib 0x38d42082 __abort + 74
3 libsystem_c.dylib 0x38d42034 abort + 84
4 libsystem_malloc.dylib 0x38dbf758 szone_error + 312
5 libsystem_malloc.dylib 0x38dbf9d4 free_list_checksum_botch + 24
6 libsystem_malloc.dylib 0x38dba1a4 tiny_free_list_remove_ptr + 76
7 libsystem_malloc.dylib 0x38db9770 szone_free_definite_size + 1984
8 libsystem_blocks.dylib 0x38cf7ac2 _Block_release + 214
9 libdispatch.dylib 0x38ccae76 _dispatch_queue_drain + 370
10 libdispatch.dylib 0x38cc7f8e _dispatch_queue_invoke + 38
11 libdispatch.dylib 0x38ccb742 _dispatch_root_queue_drain + 74
12 libdispatch.dylib 0x38ccb9c0 _dispatch_worker_thread2 + 52
13 libsystem_pthread.dylib 0x38df5dfc _pthread_wqthread + 296
14 libsystem_pthread.dylib 0x38df5cc0 start_wqthread + 4
Another random crash in similar case:
Thread 0 Crashed:
0 CoreFoundation 0x311e9728 -[__NSDictionaryM objectForKey:] + 100
1 UIKit 0x33a3e855 -[UILabel _setFont:] + 209
2 UIKit 0x33b5a411 -[UITabBarButton initWithImage:selectedImage:label:withInsets:] + 293
3 UIKit 0x33b59223 -[UITabBarItem(Static) _createViewForTabBar:showingBadge:withTint:idiom:] + 1171
4 UIKit 0x33b58d87 -[UITabBarItem(Static) _createViewForTabBar:showingBadge:idiom:] + 39
5 UIKit 0x33b5502d -[UITabBarItem(Static) _updateViewForIdiom:positionItems:] + 161
6 UIKit 0x33b5c4cf -[UITabBar(Static) _configureItems:] + 407
7 UIKit 0x33b5bb83 -[UITabBar(Static) _positionTabBarButtons:ignoringItem:] + 1275
8 UIKit 0x33b58b3d -[UITabBar setItems:animated:] + 1357
9 UIKit 0x33b58527 -[UITabBarController _rebuildTabBarItemsAnimated:] + 803
10 UIKit 0x33b5ca79 -[UITabBarController _setSelectedViewController:] + 77
11 UIKit 0x33a42cf5 +[UIView(Animation) performWithoutAnimation:] + 73
12 UIKit 0x33b60475 -[UITabBarController _selectDefaultViewControllerIfNecessaryWithAppearanceTransitions:] + 221
13 UIKit 0x33b5f8eb -[UITabBarController viewWillAppear:] + 135
14 UIKit 0x33a4b6ff -[UIViewController _setViewAppearState:isAnimating:] + 347
15 CoreFoundation 0x311f5803 __53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 51
16 CoreFoundation 0x311ef21d -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 221
17 UIKit 0x33a4b87b -[UIViewController _setViewAppearState:isAnimating:] + 727
18 UIKit 0x33bc1cff -[UINavigationController _startCustomTransition:] + 847
19 UIKit 0x33adfa17 -[UINavigationController _startDeferredTransitionIfNeeded:] + 419
20 UIKit 0x33adf821 -[UINavigationController __viewWillLayoutSubviews] + 45
21 UIKit 0x33adf7b9 -[UILayoutContainerView layoutSubviews] + 185
22 UIKit 0x33a31353 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 347
23 QuartzCore 0x336b7943 -[CALayer layoutSublayers] + 143
24 QuartzCore 0x336b3167 CA::Layer::layout_if_needed(CA::Transaction*) + 351
25 QuartzCore 0x336b2ff9 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 17
26 QuartzCore 0x336b2a0d CA::Context::commit_transaction(CA::Transaction*) + 229
27 QuartzCore 0x336b281f CA::Transaction::commit() + 315
28 QuartzCore 0x336ac54d CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 57
29 CoreFoundation 0x31277f69 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 21
30 CoreFoundation 0x312758f7 __CFRunLoopDoObservers + 287
31 CoreFoundation 0x31275c43 __CFRunLoopRun + 739
32 CoreFoundation 0x311e0471 CFRunLoopRunSpecific + 525
33 CoreFoundation 0x311e0253 CFRunLoopRunInMode + 107
34 GraphicsServices 0x35ee12eb GSEventRunModal + 139
35 UIKit 0x33a95845 UIApplicationMain + 1137
36 SofTestM 0x000545f7 0x4d000 + 30199
The second crash is at time of setting font at
UITabBar-->UITabBarButton->UILabel (of UITabBarButton) _setFont:
I feel this random crashes might be due to memory leaks in your application.Pardon me if i am wrong.
In your logs it is seen that you use CoreGraphics.Releasing Core Graphics( even if you have ARC) is a bit tricky as it is not 100% memory leaf proof .That is it at times takes a while to get released.
So suppose you are using core graphic objects whithin a loop then it is certain that your ipad memory will go out of bounds.