Unclear crash report in iOS - ios

I found couple of strange crash issues in my app and here is the details of it
Incident Identifier: 9ECA0354-F69F-4562-A9FC-4904319BFC72
CrashReporter Key: 7e75d7f19d6ccbb07328f3b3317626187ecbc9bb
Hardware Model: iPod5,1
Process: myApp [1760]
Path: /var/mobile/Applications/7E5B3CA8-81BA-4F6A-A2A8-1B8F4060A037/myApp.app/myApp
Identifier: myApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-09-24 11:33:16.513 +0530
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 11
Last Exception Backtrace:
0 CoreFoundation 0x342c229e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3bfa697a objc_exception_throw + 26
2 CoreFoundation 0x342c1d80 __NSFastEnumerationMutationHandler + 124
3 Foundation 0x34b62504 -[NSConcreteMapTable countByEnumeratingWithState:objects:count:] + 52
4 CoreFoundation 0x3424ad34 -[__NSFastEnumerationEnumerator nextObject] + 128
5 CoreFoundation 0x3421df0c -[NSEnumerator countByEnumeratingWithState:objects:count:] + 44
6 Foundation 0x34c7208e -[NSISEngine enumerateRows:] + 210
7 Foundation 0x34c77fda -[NSISEngine description] + 118
8 CoreFoundation 0x34232892 -[NSObject(NSObject) _copyDescription] + 30
9 CoreFoundation 0x342a32d6 __CFStringAppendFormatCore + 11134
10 CoreFoundation 0x3423dfa4 CFStringCreateWithFormatAndArguments + 68
11 CoreFoundation 0x342c2190 +[NSException raise:format:] + 52
12 Foundation 0x34c7411a -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 186
13 Foundation 0x34c76754 -[NSISEngine optimize] + 56
14 Foundation 0x34c76e6a -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 630
15 Foundation 0x34c7fbba -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 390
16 UIKit 0x365033bc -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 124
17 UIKit 0x36503530 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 32
18 UIKit 0x360ea2dc -[UIView(Internal) _didMoveFromWindow:toWindow:] + 372
19 UIKit 0x360ea5c2 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1114
20 UIKit 0x360e4e4e -[UIView(Hierarchy) _postMovedFromSuperview:] + 134
21 UIKit 0x360cc7d8 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1296
22 UIKit 0x360e9af2 -[UIScrollView(UIScrollViewInternal) _addContentSubview:atBack:] + 66
23 UIKit 0x360e993a -[UITableView(_UITableViewPrivate) _addContentSubview:atBack:] + 126
24 UIKit 0x360fc0a0 -[UITableView(_UITableViewPrivate) _updateVisibleHeadersAndFootersNow:] + 1696
25 UIKit 0x360fa506 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1810
26 UIKit 0x361117ca -[UITableView layoutSubviews] + 202
27 UIKit 0x360cd7fe -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
28 QuartzCore 0x35e77d86 -[CALayer layoutSublayers] + 210
29 QuartzCore 0x35e77924 CA::Layer::layout_if_needed(CA::Transaction*) + 456
30 QuartzCore 0x35e78858 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
31 QuartzCore 0x35e7823e CA::Context::commit_transaction(CA::Transaction*) + 234
32 QuartzCore 0x35e7804c CA::Transaction::commit() + 312
33 QuartzCore 0x35e77eac CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
34 CoreFoundation 0x342976c8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
35 CoreFoundation 0x342959bc __CFRunLoopDoObservers + 272
36 CoreFoundation 0x34295d12 __CFRunLoopRun + 738
37 CoreFoundation 0x34208eb8 CFRunLoopRunSpecific + 352
38 CoreFoundation 0x34208d44 CFRunLoopRunInMode + 100
39 GraphicsServices 0x37dd02e6 GSEventRunModal + 70
40 UIKit 0x3611e2fc UIApplicationMain + 1116
41 myApp 0x000a4aca 0xa2000 + 10954
42 libdyld.dylib 0x3c3ddb1c start + 0
It says that thread 11 is crashed but this looks like main thread crash as I can see from last line. The thread 11 stack trace looks like this
Thread 11 Crashed:
0 libsystem_kernel.dylib 0x3c4a4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c3f2cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c3f2a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c3f28a0 start_wqthread + 4
Also the crash report points out that app was crashed while doing enumeration but I am not sure how it is related to UIView and UITableView objects as I see from the stack trace. Some more info, I have tableview which shows a list if data, this is fetched from server.
Can some help me in fixing this issue?
Thanks

#nkd, why not use a Crash Reporting Manager like , Crashlytics it does a two step symbolication process, once at the app, and at the server side, to give you exact location of your crash with all thread information, testing environment etc.
I have been using this extensively, helps a lot in resolving bugs.

Related

Crash in UIGestureRecognizer related to WebView

I have a random crash in Webview that happend a couple of times already.
(Test automation tools: Monkey)
It looks like it is related to UIWebView, but I have no clue what happened
- any help is appreciated The crash seems to be known.
Version: 1.0 (1.0)
Code Type: ARM-64 (Native)
Parent Process: debugserver [406]
Date/Time: 2015-08-07 20:33:59.099 +0800
Launch Time: 2015-08-07 20:13:10.956 +0800
OS Version: iOS 8.3 (12F70)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000002e6beb8
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001959d3bd0 objc_msgSend + 16
1 UIKit 0x0000000188ff77b0 -[UIWebDocumentView selectionRectsForRange:] + 44
2 UIKit 0x00000001890d03b0 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) distanceBetweenPoint:andRange:] + 88
3 UIKit 0x0000000188dddcf4 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) oneFingerTap:] + 3364
4 UIKit 0x0000000188dc30d8 _UIGestureRecognizerSendActions + 272
5 UIKit 0x0000000188c5c71c -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 576
6 UIKit 0x00000001890cd4f8 ___UIGestureRecognizerUpdate_block_invoke662 + 56
7 UIKit 0x0000000188c20480 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 288
8 UIKit 0x0000000188c1e82c _UIGestureRecognizerUpdate + 2500
9 UIKit 0x0000000188c5a894 -[UIWindow _sendGesturesForEvent:] + 1040
10 UIKit 0x0000000188c59f4c -[UIWindow sendEvent:] + 656
11 UIKit 0x0000000188c2d188 -[UIApplication sendEvent:] + 260
12 UIKit 0x0000000188ece320 _UIApplicationHandleEventFromQueueEvent + 15420
13 UIKit 0x0000000188c2b69c _UIApplicationHandleEventQueue + 1712
14 CoreFoundation 0x00000001841a423c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
15 CoreFoundation 0x00000001841a34e0 __CFRunLoopDoSources0 + 260
16 CoreFoundation 0x00000001841a1590 __CFRunLoopRun + 708
17 CoreFoundation 0x00000001840cd2d0 CFRunLoopRunSpecific + 392
18 GraphicsServices 0x000000018d8eb6f8 GSEventRunModal + 164
19 UIKit 0x0000000188c92fa8 UIApplicationMain + 1484
20 PxxSDK 0x000000010009f144 0x100088000 + 94532
21 libdyld.dylib 0x000000019603ea04 start + 0
code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-08-07 19:47:25.688 +0800
Launch Time: 2015-08-07 18:30:53.690 +0800
OS Version: iOS 8.3 (12F70)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x1841ec2d8 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x1959c00e4 objc_exception_throw + 60
2 CoreFoundation 0x1841f33a4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 220
3 CoreFoundation 0x1841f0154 ___forwarding___ + 928
4 CoreFoundation 0x1840f2ccc _CF_forwarding_prep_0 + 92
5 UIKit 0x188ff77b4 -[UIWebDocumentView selectionRectsForRange:] + 48
6 UIKit 0x1890d03b4 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) distanceBetweenPoint:andRange:] + 92
7 UIKit 0x188dddcf8 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) oneFingerTap:] + 3368
8 UIKit 0x188dc30dc _UIGestureRecognizerSendActions + 276
9 UIKit 0x188c5c720 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 580
10 UIKit 0x1890cd4fc ___UIGestureRecognizerUpdate_block_invoke662 + 60
11 UIKit 0x188c20484 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 292
12 UIKit 0x188c1e830 _UIGestureRecognizerUpdate + 2504
13 UIKit 0x188c5a898 -[UIWindow _sendGesturesForEvent:] + 1044
14 UIKit 0x188c59f50 -[UIWindow sendEvent:] + 660
15 UIKit 0x188c2d18c -[UIApplication sendEvent:] + 264
16 UIKit 0x188ece324 _UIApplicationHandleEventFromQueueEvent + 15424
17 UIKit 0x188c2b6a0 _UIApplicationHandleEventQueue + 1716
18 CoreFoundation 0x1841a4240 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
19 CoreFoundation 0x1841a34e4 __CFRunLoopDoSources0 + 264
20 CoreFoundation 0x1841a1594 __CFRunLoopRun + 712
21 CoreFoundation 0x1840cd2d4 CFRunLoopRunSpecific + 396
22 GraphicsServices 0x18d8eb6fc GSEventRunModal + 168
23 UIKit 0x188c92fac UIApplicationMain + 1488
24 PxxSDK 0x100107148 0x1000f0000 + 94536
25 libdyld.dylib 0x19603ea08 start + 4
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-08-07 18:30:15.419 +0800
Launch Time: 2015-08-07 18:10:52.612 +0800
OS Version: iOS 8.3 (12F70)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000014da98b0
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001959d3bd0 objc_msgSend + 16
1 UIKit 0x0000000188c6ae48 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) containerIsBrowserView] + 48
2 UIKit 0x0000000188c6add0 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) textDocument] + 44
3 UIKit 0x0000000188c6acd0 -[UITextSelectionView selection] + 48
4 UIKit 0x0000000188d5a6b8 -[UITextSelectionView inputViewDidChange] + 108
5 CoreFoundation 0x00000001841922c0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 16
6 CoreFoundation 0x00000001840cf44c _CFXNotificationPost + 2056
7 Foundation 0x0000000184ffea7c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
8 UIKit 0x000000018932bc8c -[UIInputWindowController postEndNotifications:withInfo:] + 160
9 UIKit 0x000000018932a390 -[UIInputWindowController performWithSafeTransitionFrames:] + 148
10 UIKit 0x000000018932dac0 __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke644 + 460
11 UIKit 0x0000000188c64770 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 404
12 UIKit 0x0000000188c642d8 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 184
13 UIKit 0x0000000188c641e0 -[UIViewAnimationState animationDidStop:finished:] + 100
14 UIKit 0x000000018261bfec -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 52
15 QuartzCore 0x000000018857968c CA::Layer::run_animation_callbacks(void*) + 292
16 libdispatch.dylib 0x0000000196011950 _dispatch_client_callout + 12
17 libdispatch.dylib 0x0000000196016208 _dispatch_main_queue_callback_4CF + 1604
18 CoreFoundation 0x00000001841a37f4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
19 CoreFoundation 0x00000001841a189c __CFRunLoopRun + 1488
20 CoreFoundation 0x00000001840cd2d0 CFRunLoopRunSpecific + 392
21 GraphicsServices 0x000000018d8eb6f8 GSEventRunModal + 164
22 UIKit 0x0000000188c92fa8 UIApplicationMain + 1484
23 PxxSDK 0x0000000100067144 0x100050000 + 94532
24 libdyld.dylib 0x000000019603ea04 start + 0

Exception (SIGABRT) when opening on an iPad, unable to replicate.

Apparently an App I submitted for review crashed twice on an iPad, with the following issue highlighted. I'm having trouble deciphering anything usable from this, if anyone's able to shed some light on this I'd appreciate it. I've attempted to replicate the issue using the simulator's but I've been unsuccessful. I don't understand how this could work on an iPhone, whilst testing, but not on the iPad.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000195a8f270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000195b2d224 pthread_kill + 108
2 libsystem_c.dylib 0x0000000195a06b14 abort + 108
3 Christmas 0x0000000100101b90 0x1000f4000 + 56208
4 Christmas 0x0000000100101744 0x1000f4000 + 55108
5 Christmas 0x00000001000ff504 0x1000f4000 + 46340
6 Christmas 0x00000001000ff218 0x1000f4000 + 45592
7 Christmas 0x0000000100135088 0x1000f4000 + 266376
8 UIKit 0x0000000188f6be3c -[UIViewController _setViewAppearState:isAnimating:] + 512
9 UIKit 0x00000001890099bc -[UINavigationController _startTransition:fromViewController:toViewController:] + 796
10 UIKit 0x00000001890093b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 636
11 UIKit 0x00000001890090d8 -[UINavigationController __viewWillLayoutSubviews] + 52
12 UIKit 0x0000000189009058 -[UILayoutContainerView layoutSubviews] + 196
13 UIKit 0x0000000188f51a28 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 568
14 QuartzCore 0x00000001888a9990 -[CALayer layoutSublayers] + 164
15 QuartzCore 0x00000001888a4560 CA::Layer::layout_if_needed(CA::Transaction*) + 316
16 QuartzCore 0x00000001888a4404 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
17 QuartzCore 0x00000001888a3c04 CA::Context::commit_transaction(CA::Transaction*) + 272
18 QuartzCore 0x00000001888a3988 CA::Transaction::commit() + 432
19 UIKit 0x0000000188f489fc _afterCACommitHandler + 152
20 CoreFoundation 0x000000018475e148 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
21 CoreFoundation 0x000000018475b0d4 __CFRunLoopDoObservers + 356
22 CoreFoundation 0x000000018475b4b4 __CFRunLoopRun + 832
23 CoreFoundation 0x00000001846891f0 CFRunLoopRunSpecific + 392
24 GraphicsServices 0x000000018d7eb5a0 GSEventRunModal + 164
25 UIKit 0x0000000188fba780 UIApplicationMain + 1484
26 Christmas 0x0000000100103914 0x1000f4000 + 63764
27 libdyld.dylib 0x0000000195976a04 start + 0

Random crash on setting UITabBarButton label attributed text (Tab Title)

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.

Crash log is not completely symbolicated

I am able to symbolicate my crash logs in xcode 4.5 EXCEPT for the last line. Specifically line 29 of the 'Last Exception Backtrace' and line 15 in the 'Thread 0' area in the crash log doesn't show the object or method call when all the other lines do. My code is CoachMe1.
Any ideas as to why this would be ?
Here is the Symbolicated code:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3165929e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x355af97a objc_exception_throw + 26
2 CoreFoundation 0x316591c0 +[NSException raise:format:] + 100
3 Foundation 0x34a9ece2 -[NSKeyedUnarchiver initForReadingWithData:] + 2402
4 CoachMe1 0x000047b6 -[CoachMe1ViewController viewWillAppear:] (CoachMe1ViewController.m:322)
5 UIKit 0x32b7531c -[UIViewController _setViewAppearState:isAnimating:] + 132
6 UIKit 0x32b817a0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 536
7 UIKit 0x32b814ac -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
8 UIKit 0x32b6fb8e -[UINavigationController pushViewController:transition:forceImmediate:] + 854
9 UIKit 0x32b6f82e -[UINavigationController pushViewController:animated:] + 34
10 CoachMe1 0x000183da -[FrontPageViewController loadGameDashboard] (FrontPageViewController.m:38)
11 UIKit 0x32bf90a8 -[UIApplication sendAction:to:from:forEvent:] + 68
12 UIKit 0x32bf905a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
13 UIKit 0x32bf9038 -[UIControl sendAction:to:forEvent:] + 40
14 UIKit 0x32bf88ee -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
15 UIKit 0x32bf8de4 -[UIControl touchesEnded:withEvent:] + 484
16 UIKit 0x32b215f4 -[UIWindow _sendTouchesForEvent:] + 520
17 UIKit 0x32b0e804 -[UIApplication sendEvent:] + 376
18 UIKit 0x32b0e11e _UIApplicationHandleEvent + 6150
19 GraphicsServices 0x3085459e _PurpleEventCallback + 586
20 GraphicsServices 0x308541ce PurpleEventCallback + 30
21 CoreFoundation 0x3162e16e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
22 CoreFoundation 0x3162e112 __CFRunLoopDoSource1 + 134
23 CoreFoundation 0x3162cf94 __CFRunLoopRun + 1380
24 CoreFoundation 0x3159feb8 CFRunLoopRunSpecific + 352
25 CoreFoundation 0x3159fd44 CFRunLoopRunInMode + 100
26 GraphicsServices 0x308532e6 GSEventRunModal + 70
27 UIKit 0x32b622fc UIApplicationMain + 1116
28 CoachMe1 0x0000257e main (main.m:14)
29 CoachMe1 0x00002538 0x1000 + 5432
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3934f350 __pthread_kill + 8
1 libsystem_c.dylib 0x33cb111e pthread_kill + 54
2 libsystem_c.dylib 0x33ced96e abort + 90
3 libc++abi.dylib 0x30803d4a abort_message + 70
4 libc++abi.dylib 0x30800ff4 _ZL17default_terminatev + 20
5 libobjc.A.dylib 0x355afa74 _ZL15_objc_terminatev + 144
6 libc++abi.dylib 0x30801078 _ZL19safe_handler_callerPFvvE + 76
7 libc++abi.dylib 0x30801110 std::terminate() + 16
8 libc++abi.dylib 0x30802594 __cxa_rethrow + 84
9 libobjc.A.dylib 0x355af9cc objc_exception_rethrow + 8
10 CoreFoundation 0x3159ff1c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x3159fd44 CFRunLoopRunInMode + 100
12 GraphicsServices 0x308532e6 GSEventRunModal + 70
13 UIKit 0x32b622fc UIApplicationMain + 1116
14 CoachMe1 0x0000257e main (main.m:14)
15 CoachMe1 0x00002538 0x1000 + 5432
Your app is crashing in loadGameDashboard function in FrontPageViewController.m class line 38.
Please check this function with a break point . you see where your app is crashing....

Strange iOS tableView/CALayer crashes

My app started crashing after long time in background right when I launch it again.
The problem of course is when it wasn't killed - only when it was in the background.
the log is:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32858a1c __pthread_kill + 8
1 libsystem_c.dylib 0x337013b4 pthread_kill + 52
2 libsystem_c.dylib 0x336f9bf8 abort + 72
3 libstdc++.6.dylib 0x30504a64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x3068f06c _objc_terminate + 104
5 libstdc++.6.dylib 0x30502e36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x30502e8a std::terminate() + 10
7 libstdc++.6.dylib 0x30502f5a __cxa_throw + 78
8 libobjc.A.dylib 0x3068dc84 objc_exception_throw + 64
9 CoreFoundation 0x3351048a +[NSException raise:format:arguments:] + 62
10 Foundation 0x326ea56c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 56
11 UIKit 0x31bc3a82 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 666
12 UIKit 0x31bc3764 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 28
13 UIKit 0x31bbc0c6 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 930
14 UIKit 0x31bbb276 -[UITableView layoutSubviews] + 134
15 UIKit 0x31b675f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 20
16 CoreFoundation 0x3347defc -[NSObject(NSObject) performSelector:withObject:] + 16
17 QuartzCore 0x33351bae -[CALayer layoutSublayers] + 114
18 QuartzCore 0x33351966 CALayerLayoutIfNeeded + 178
19 QuartzCore 0x333571be CA::Context::commit_transaction(CA::Transaction*) + 206
20 QuartzCore 0x33356fd0 CA::Transaction::commit() + 184
21 QuartzCore 0x3335004e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
22 CoreFoundation 0x334e7a2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
23 CoreFoundation 0x334e945e __CFRunLoopDoObservers + 406
24 CoreFoundation 0x334ea754 __CFRunLoopRun + 848
25 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
26 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
27 GraphicsServices 0x311a5418 GSEventRunModal + 108
28 GraphicsServices 0x311a54c4 GSEventRun + 56
29 UIKit 0x31b90d62 -[UIApplication _run] + 398
30 UIKit 0x31b8e800 UIApplicationMain + 664
31 Vento 0x00002c64 main (main.m:14)
32 Vento 0x00002c0c start + 32
Any idea where to start digging?
Thank you!
Look at the log to see the exception detail.
Run the static code analyzer over your code. It may find the bug for you.

Resources