I am seeing new crashes specific to app running on iOS 8. Couldn't figure out what the issue is, couldn't reproduce the issue. Happens at App StartUp, and App doesn't call OpenGL ES functions directly.
InitialViewController viewDidAppear method line # 92 I initiate a segue from storyboard by: [self performSegueWithIdentifier:segueIdentifier sender:self]; where self is InitialViewController class.
Stacktrace:
Thread: Unknown Name (Crashed)
0 libGPUSupportMercury.dylib 0x28c5c8fe gpus_ReturnNotPermittedKillClient + 10
1 libGPUSupportMercury.dylib 0x28c5d249 gldCreateContext + 206
2 GLEngine 0x248a093b gliCreateContextWithShared + 600
3 OpenGLES 0x2497cab3 -[EAGLContext initWithAPI:properties:] + 404
4 CoreImage 0x225ecb8b ___ZN2CI11can_use_gpuEv_block_invoke + 140
5 libdispatch.dylib 0x2fbb98b7 _dispatch_client_callout + 20
6 libdispatch.dylib 0x2fbba4fb dispatch_once_f + 60
7 CoreImage 0x225ecafb _ZN2CI11can_use_gpuEv + 96
8 CoreImage 0x2256ac79 +[CIContext contextWithOptions:] + 186
9 CoreUI 0x27bdc837 CreateSharedCIContext + 76
10 libsystem_pthread.dylib 0x2fd1ddcf __pthread_once_handler + 48
11 libsystem_platform.dylib 0x2fd16867 _os_once + 40
12 libsystem_pthread.dylib 0x2fd1bf8b pthread_once + 48
13 CoreUI 0x27bdc7d9 +[CUIShapeEffectStack sharedCIContext] + 26
14 CoreUI 0x27be3af7 -[CUICatalog imageByStylingImage:stylePresetName:styleConfiguration:foregroundColor:scale:] + 80
15 UIKit 0x256c89db -[UIImage _imageWithStylePresets:withTintColor:] + 540
16 UIKit 0x25456875 -[UIImageView _setImageViewContents:] + 1074
17 UIKit 0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
18 UIKit 0x25747db9 -[UIImageView _updateImageViewForOldImage:newImage:] + 674
19 UIKit 0x254559c7 -[UIImageView setImage:] + 264
20 UIKit 0x254f01b1 -[UINavigationBar _updateBackIndicatorImage] + 346
21 UIKit 0x254d4143 -[UINavigationBar layoutSubviews] + 2480
22 UIKit 0x25446b37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 512
23 QuartzCore 0x24e6eccd -[CALayer layoutSublayers] + 134
24 QuartzCore 0x24e6a6b5 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 358
25 UIKit 0x25459183 -[UIView(Hierarchy) layoutBelowIfNeeded] + 136
26 UIKit 0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
27 UIKit 0x254d2fc5 -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 786
28 UIKit 0x254d2c63 -[UINavigationController _positionNavigationBarHidden:edge:] + 200
29 UIKit 0x254cf875 -[UINavigationController loadView] + 246
30 UIKit 0x254493d9 -[UIViewController loadViewIfRequired] + 66
31 UIKit 0x2544935d -[UIViewController view] + 22
32 UIKit 0x254f1faf -[UIViewController shouldAutorotate] + 24
33 UIKit 0x2552bbd7 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 248
34 UIKit 0x2552a2b9 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2118
35 UIKit 0x2572be1f -[UIViewController _windowControllerBasedPresentViewController:withTransition:completion:] + 4896
36 UIKit 0x2572c4ab __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 256
37 UIKit 0x25529243 -[UIViewController presentViewController:animated:completion:] + 192
38 UIKit 0x2572c63f -[UIViewController presentModalViewController:animated:] + 28
39 MyAppName 0x00082901 -[InitialViewController viewDidAppear:] (InitialViewController.m:92)
40 UIKit 0x2545ed5f -[UIViewController _setViewAppearState:isAnimating:] + 500
41 UIKit 0x254c322f -[UIViewController _executeAfterAppearanceBlock] + 52
42 UIKit 0x254c31bd _applyBlockToCFArrayCopiedToStack + 306
43 UIKit 0x2543f127 _afterCACommitHandler + 484
44 CoreFoundation 0x21f725cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
45 CoreFoundation 0x21f6fc8b __CFRunLoopDoObservers + 276
46 CoreFoundation 0x21f70093 __CFRunLoopRun + 912
47 CoreFoundation 0x21ebe621 CFRunLoopRunSpecific + 474
48 CoreFoundation 0x21ebe433 CFRunLoopRunInMode + 104
49 GraphicsServices 0x2926c0a9 GSEventRunModal + 134
50 UIKit 0x254a8809 UIApplicationMain + 1438
51 MyAppName 0x00074329 main (main.m:36)
52 libdyld.dylib 0x2fbd9aaf start + 0
Can someone please help me find what the root cause for this issue is.
Application will be terminated if it attempts to execute OpenGL ES commands in the background.
https://developer.apple.com/library/ios/qa/qa1766/_index.html
Related
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 this app in the app store, which according to Crashalitics, its %92-%95 stable. I made a similar app for Android and its around 98% stable. I am trying to get the stability up - but I don't see how. All the bugs I am seeing in the IOS version are not touching my code.
I see random bugs, that are not reproducible, and when they do are very random. Each happens 1-10 times, but I have a list of ... ~30 different items.
The app is pretty simple - a mostly linear storyboard (a few jumps, but no loops). The only project I am using which is not Apple's code is InAppSettingsKit, and most of the app is just maps which shows some items. The project is using ARC and currently compiled using XCode6 (but XCode5 showed the same symptoms).
How can I find these crashes? Is this in an inherent problem of IOS7-8? I do see some apps just closing up when I use the IPhone, and friends to tell me that IOS is not that stable, but ... I just think I am doing something wrong.
IOS8 70% IOS7 30%
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x36444f66 objc_msgSend + 5
1 UIKit 0x2c160b35 -[UIScrollView(UIScrollViewInternal) _delegateScrollViewAnimationEnded] + 52
2 UIKit 0x2c160ac1 -[UIScrollView(UIScrollViewInternal) _scrollViewAnimationEnded:finished:] + 184
3 UIKit 0x2c20a5e5 -[UIAnimator stopAnimation:] + 476
4 UIKit 0x2c209fb9 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 304
5 UIKit 0x2c209e85 -[UIAnimator(Static) _LCDHeartbeatCallback:] + 52
6 QuartzCore 0x2bae4aeb CA::Display::DisplayLinkItem::dispatch() + 98
7 QuartzCore 0x2bae4953 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 366
8 IOMobileFramebuffer 0x303c482f IOMobileFramebufferVsyncNotifyFunc + 90
9 IOKit 0x29af01ed IODispatchCalloutFromCFMessage + 256
10 CoreFoundation 0x28b7c3a5 __CFMachPortPerform + 132
11 CoreFoundation 0x28b8c7f3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
12 CoreFoundation 0x28b8c78f __CFRunLoopDoSource1 + 346
13 CoreFoundation 0x28b8adb1 __CFRunLoopRun + 1608
14 CoreFoundation 0x28ad7b31 CFRunLoopRunSpecific + 476
15 CoreFoundation 0x28ad7943 CFRunLoopRunInMode + 106
16 GraphicsServices 0x2feb7051 GSEventRunModal + 136
17 UIKit 0x2c0cd6f1 UIApplicationMain + 1440
18 --------------- 0x000c8833 main (main.m:16)
IOS7 - 8 times
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x2e23ef83 __exceptionPreprocess + 130
1 libobjc.A.dylib 0x389efccf objc_exception_throw + 38
2 CoreFoundation 0x2e242917 -[NSObject(NSObject) doesNotRecognizeSelector:] + 202
3 CoreFoundation 0x2e241203 ___forwarding___ + 706
4 CoreFoundation 0x2e190768 _CF_forwarding_prep_0 + 24
5 VectorKit 0x35ec6911 -[VKMapCanvas initShouldRasterize:contentScale:inBackground:] + 476
6 VectorKit 0x35ec620f -[VKMapView initWithGlobe:shouldRasterize:inBackground:] + 230
7 MapKit 0x2f3d980b -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:] + 322
8 MapKit 0x2f40cd77 -[MKMapView _commonInitAndEnableLoading:fromIB:gestureRecognizerHostView:showsAttribution:] + 878
9 MapKit 0x2f40d86b -[MKMapView initWithCoder:] + 134
10 UIKit 0x30e70169 UINibDecoderDecodeObjectForValue + 740
11 UIKit 0x30e6fe7f -[UINibDecoder decodeObjectForKey:] + 90
12 UIKit 0x30dcb5ff -[UIRuntimeConnection initWithCoder:] + 150
13 UIKit 0x30e70169 UINibDecoderDecodeObjectForValue + 740
14 UIKit 0x30e70109 UINibDecoderDecodeObjectForValue + 644
15 UIKit 0x30e6fe7f -[UINibDecoder decodeObjectForKey:] + 90
16 UIKit 0x30dcadd1 -[UINib instantiateWithOwner:options:] + 888
17 UIKit 0x30d2360b -[UIViewController _loadViewFromNibNamed:bundle:] + 234
18 UIKit 0x30b7fbcd -[UIViewController loadView] + 92
19 UIKit 0x30a602ed -[UIViewController loadViewIfRequired] + 72
20 UIKit 0x30a60269 -[UIViewController view] + 24
21 UIKit 0x30b0a14b -[UINavigationController _startTransition:fromViewController:toViewController:] + 198
22 UIKit 0x30b09dfd -[UINavigationController _startDeferredTransitionIfNeeded:] + 572
23 UIKit 0x30b09b6d -[UINavigationController __viewWillLayoutSubviews] + 44
24 UIKit 0x30b09b05 -[UILayoutContainerView layoutSubviews] + 184
25 UIKit 0x30a5bd59 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 380
26 QuartzCore 0x306d962b -[CALayer layoutSublayers] + 142
27 QuartzCore 0x306d4e3b CA::Layer::layout_if_needed(CA::Transaction*) + 350
28 QuartzCore 0x30703cdd -[CALayer layoutIfNeeded] + 140
29 UIKit 0x30ad8163 -[UIViewController window:setupWithInterfaceOrientation:] + 242
30 UIKit 0x30ad6783 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3498
31 UIKit 0x30ad59d3 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 46
32 UIKit 0x30ad595b -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 94
33 UIKit 0x30ad58f3 -[UIWindow _setRotatableViewOrientation:duration:force:] + 42
34 UIKit 0x30acdf69 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 108
35 UIKit 0x30a62107 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 382
36 UIKit 0x30ad5641 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 696
37 UIKit 0x30ad5105 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 164
38 UIKit 0x30a67045 -[UIWindow addRootViewControllerViewIfPossible] + 460
39 UIKit 0x30a64827 -[UIWindow _setHidden:forced:] + 302
40 UIKit 0x30ace33d -[UIWindow makeKeyAndVisible] + 60
41 UIKit 0x30acafad -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1820
42 UIKit 0x30ac556b -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 714
43 UIKit 0x30a616e9 -[UIApplication handleEvent:withNewEvent:] + 3540
44 UIKit 0x30a60851 -[UIApplication sendEvent:] + 72
45 UIKit 0x30ac4ca9 _UIApplicationHandleEvent + 616
46 GraphicsServices 0x33079aed _PurpleEventCallback + 608
47 GraphicsServices 0x330796d7 PurpleEventCallback + 34
48 CoreFoundation 0x2e209a67 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
49 CoreFoundation 0x2e209a03 __CFRunLoopDoSource1 + 346
50 CoreFoundation 0x2e2081d7 __CFRunLoopRun + 1398
51 CoreFoundation 0x2e172ebf CFRunLoopRunSpecific + 522
52 CoreFoundation 0x2e172ca3 CFRunLoopRunInMode + 106
53 UIKit 0x30ac3ed1 -[UIApplication _run] + 760
54 UIKit 0x30abf14d UIApplicationMain + 1136
55 --------------- 0x000ef833 main (main.m:16)
56 libdyld.dylib 0x38efcab7 start + 2
Another (IOS 6.1.6)
vThread : Fatal Exception: NSGenericException
0 CoreFoundation 0x31eaf2a3 __exceptionPreprocess + 162
1 libobjc.A.dylib 0x39b0b97f objc_exception_throw + 30
2 UIKit 0x3404d30f -[UIStoryboardPushSegue perform] + 1118
3 UIKit 0x33da20c5 -[UIApplication sendAction:to:from:forEvent:] + 72
4 UIKit 0x33da214d -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 120
5 UIKit 0x33da20c5 -[UIApplication sendAction:to:from:forEvent:] + 72
6 UIKit 0x33da2077 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
7 UIKit 0x33da2055 -[UIControl sendAction:to:forEvent:] + 44
8 UIKit 0x33da190b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 502
9 UIKit 0x33da1e01 -[UIControl touchesEnded:withEvent:] + 488
10 UIKit 0x33cca5f1 -[UIWindow _sendTouchesForEvent:] + 524
11 UIKit 0x33cb7801 -[UIApplication sendEvent:] + 380
12 UIKit 0x33cb711b _UIApplicationHandleEvent + 6154
13 GraphicsServices 0x359735a3 _PurpleEventCallback + 590
14 GraphicsServices 0x359731d3 PurpleEventCallback + 34
15 CoreFoundation 0x31e84173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
16 CoreFoundation 0x31e84117 __CFRunLoopDoSource1 + 138
17 CoreFoundation 0x31e82f99 __CFRunLoopRun + 1384
18 CoreFoundation 0x31df5ebd CFRunLoopRunSpecific + 356
19 CoreFoundation 0x31df5d49 CFRunLoopRunInMode + 104
20 GraphicsServices 0x359722eb GSEventRunModal + 74
21 UIKit 0x33d0b301 UIApplicationMain + 1120
22 --------------- 0x00116833 main (main.m:16)
23 libdyld.dylib 0x39f42b20 start
[UIPageViewController _sendChildViewWill:appear:animated:] + 290
There's nothing in the stack trace from my app. What's causing this crash?
0
libobjc.A.dylib
objc_msgSend + 5
countByEnumeratingWithState:objects:count:
1
UIKit
-[UIPageViewController _sendChildViewWill:appear:animated:] + 290
2
UIKit
-[UIPageViewController viewDidAppear:] + 68
3
UIKit
-[UIViewController _setViewAppearState:isAnimating:] + 410
4
CoreFoundation
__53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 52
5
CoreFoundation
-[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 220
6
UIKit
-[UIViewController _setViewAppearState:isAnimating:] + 724
7
UIKit
-[UIViewController _endAppearanceTransition:] + 264
8
UIKit
-[UIWindowController transitionViewDidComplete:fromView:toView:removeFromView:] + 1714
9
UIKit
__101-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:]_block_invoke293 + 170
10
UIKit
-[_UIViewControllerTransitionContext completeTransition:] + 74
11
UIKit
-[UITransitionView notifyDidCompleteTransition:] + 288
12
UIKit
-[UITransitionView _didCompleteTransition:] + 944
13
UIKit
-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 178
14
UIKit
-[UIViewAnimationState animationDidStop:finished:] + 70
15
QuartzCore
CA::Layer::run_animation_callbacks(void*) + 232
16 libdispatch.dylib
_dispatch_client_callout + 22
23 UIKit
UIApplicationMain + 1136
24
main.m line 14
I am not able to reproduce this crash but received this kind of crashes multiple times from production build. In my app tab bar is loaded from storyboard only and tab bar is always hidden all the time.
Does it's main cause is low memory? Any guess, how to solve or reproduce this kind of problems
Hardware Model: iPad2,4
OS Version: iPhone OS 7.0.4 (11B554a)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x393f71fc
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray replaceObjectsInRange:withObject:length:: Out of bounds'
Last Exception Backtrace:
0 CoreFoundation 0x2e766f4b __exceptionPreprocess + 131
1 libobjc.A.dylib 0x38e386af objc_exception_throw + 38
2 CoreFoundation 0x2e766e8d +[NSException raise:format:] + 104
3 Foundation 0x2f089aff -[NSMutableRLEArray replaceObjectsInRange:withObject:length:] + 122
4 Foundation 0x2f088efb -[NSConcreteMutableAttributedString initWithString:attributes:] + 310
5 UIKit 0x30ee8ed7 -[NSAttributedString(UILabelAdditions) _ui_synthesizeAttributedSubstringFromRange:usingDefaultAttributes:] + 86
6 UIKit 0x30ee8c9f -[UILabel _synthesizedAttributedText] + 1010
7 UIKit 0x30ee8307 -[UILabel _textRectForBounds:limitedToNumberOfLines:includingShadow:] + 222
8 UIKit 0x30ee8213 -[UILabel textRectForBounds:limitedToNumberOfLines:] + 54
9 UIKit 0x30ee80fb -[UILabel _intrinsicSizeWithinSize:] + 162
10 UIKit 0x30ee8049 -[UILabel sizeThatFits:] + 32
11 UIKit 0x30ee7f37 -[UIView(Geometry) sizeToFit] + 126
12 UIKit 0x31002be1 -[UITabBarButton initWithImage:selectedImage:label:withInsets:] + 388
13 UIKit 0x31001a1f -[UITabBarItem(Static) _createViewForTabBar:showingBadge:withTint:idiom:] + 1170
14 UIKit 0x31001583 -[UITabBarItem(Static) _createViewForTabBar:showingBadge:idiom:] + 38
15 UIKit 0x30ffd859 -[UITabBarItem(Static) _updateViewForIdiom:positionItems:] + 160
16 UIKit 0x31004c43 -[UITabBar(Static) _configureItems:] + 406
17 UIKit 0x310042db -[UITabBar(Static) _positionTabBarButtons:ignoringItem:] + 1234
18 UIKit 0x3100133f -[UITabBar setItems:animated:] + 1358
19 UIKit 0x31000d29 -[UITabBarController _rebuildTabBarItemsAnimated:] + 800
20 UIKit 0x310051f9 -[UITabBarController _setSelectedViewController:] + 76
21 UIKit 0x30eeb6e5 +[UIView(Animation) performWithoutAnimation:] + 72
22 UIKit 0x31008bf7 -[UITabBarController _selectDefaultViewControllerIfNecessaryWithAppearanceTransitions:] + 218
23 UIKit 0x31008077 -[UITabBarController viewWillAppear:] + 134
24 UIKit 0x30ef40eb -[UIViewController _setViewAppearState:isAnimating:] + 346
25 CoreFoundation 0x2e6aff65 __53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 52
26 CoreFoundation 0x2e6a994d -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 220
27 UIKit 0x30ef4265 -[UIViewController _setViewAppearState:isAnimating:] + 724
28 UIKit 0x3106a4bf -[UINavigationController _startCustomTransition:] + 846
29 UIKit 0x30f88273 -[UINavigationController _startDeferredTransitionIfNeeded:] + 418
30 UIKit 0x30f8807d -[UINavigationController __viewWillLayoutSubviews] + 44
31 UIKit 0x30f88015 -[UILayoutContainerView layoutSubviews] + 184
32 UIKit 0x30ed9da3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 346
33 QuartzCore 0x30b60c6b -[CALayer layoutSublayers] + 142
34 QuartzCore 0x30b5c47b CA::Layer::layout_if_needed(CA::Transaction*) + 350
35 QuartzCore 0x30b5c30d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
36 QuartzCore 0x30b5bd1f CA::Context::commit_transaction(CA::Transaction*) + 230
37 QuartzCore 0x30b5bb2f CA::Transaction::commit() + 314
38 QuartzCore 0x30b5585d CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
39 CoreFoundation 0x2e7321cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
40 CoreFoundation 0x2e72fb71 __CFRunLoopDoObservers + 284
41 CoreFoundation 0x2e72feb3 __CFRunLoopRun + 730
42 CoreFoundation 0x2e69ac27 CFRunLoopRunSpecific + 522
43 CoreFoundation 0x2e69aa0b CFRunLoopRunInMode + 106
44 GraphicsServices 0x3336e283 GSEventRunModal + 138
45 UIKit 0x30f3e049 UIApplicationMain + 1136
46 MyApp main (in MyApp) (main.m:16)
47 libdyld.dylib 0x39340ab7 start + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x393f71fc __pthread_kill + 8
1 libsystem_c.dylib 0x393a7ffd abort + 77
2 MyApp uncaught_exception_handler (in MyApp) + 27
3 CoreFoundation 0x2e76724f __handleUncaughtException + 579
4 libobjc.A.dylib 0x38e3890f _objc_terminate() + 175
5 libc++abi.dylib 0x386ed1c7 std::__terminate(void (*)()) + 79
6 libc++abi.dylib 0x386ecd2d __cxa_increment_exception_refcount + 1
7 libobjc.A.dylib 0x38e387f7 objc_exception_rethrow + 43
8 CoreFoundation 0x2e69ac9d CFRunLoopRunSpecific + 641
9 CoreFoundation 0x2e69aa0b CFRunLoopRunInMode + 106
10 GraphicsServices 0x3336e283 GSEventRunModal + 138
11 UIKit 0x30f3e049 UIApplicationMain + 1136
12 MyApp main (in MyApp) (main.m:16)
From you crash log, line 5
5 UIKit 0x30ee8ed7 -[NSAttributedString(UILabelAdditions) _ui_synthesizeAttributedSubstringFromRange:usingDefaultAttributes:] + 86
seems like you generate your attribute string based on
- (NSAttributedString *)attributedSubstringFromRange:(NSRange)aRange
Maybe set a break point at that code, and check if your string length is larger than or equal to the range.
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.