NSInvalidArgumentException. UIPasteboard setString - ios

Usually app works great, but i received issue in Crashlytics. It's happen 1-2 times in week. For 2k-3k users. App work on iOS 7 and later.
Report: Fatal Exception: NSInvalidArgumentException
-[UIPasteboard setString:]: Argument is not an object of type NSString [(null)]
Here stack of thread where app crashed:
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x38fae1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x390167b7 pthread_kill + 58
2 libsystem_c.dylib 0x38f5eff9 abort + 76
3 libc++abi.dylib 0x383ad98f abort_message + 74
4 libc++abi.dylib 0x383c66e7 default_terminate_handler() + 254
5 libobjc.A.dylib 0x389f9f7d _objc_terminate() + 192
6 APPNAME 0x001f1495 CPPExceptionTerminate() (KSCrashSentry_CPPException.mm:193)
7 libc++abi.dylib 0x383c41b3 std::__terminate(void (*)()) + 78
8 libc++abi.dylib 0x383c3a09 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
9 libobjc.A.dylib 0x389f9dbb objc_exception_throw + 250
10 CoreFoundation 0x2e25ee0d -[NSException initWithCoder:]
11 UIKit 0x30e3e0eb -[UIPasteboard(UIPasteboardDataExtensions) setString:] + 154
12 APPNAME 0x0011cfaf __33-[WebViewController moreActions:]_block_invoke_2 (WebViewController.m:424)
13 UIKit 0x30c74ceb __56-[UIActivityViewController _cleanupActivityWithSuccess:]_block_invoke + 54
14 UIKit 0x30ba87c9 -[UIWindowController transitionViewDidComplete:fromView:toView:removeFromView:] + 1880
15 UIKit 0x30ba7f9f __101-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:]_block_invoke293 + 170
16 UIKit 0x30ba7ecb -[_UIViewControllerTransitionContext completeTransition:] + 74
17 UIKit 0x30ba7db1 -[UITransitionView notifyDidCompleteTransition:] + 288
18 UIKit 0x30ba78c1 -[UITransitionView _didCompleteTransition:] + 944
19 UIKit 0x30ac83b7 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 178
20 UIKit 0x30ac82cf -[UIViewAnimationState animationDidStop:finished:] + 66
21 QuartzCore 0x30712e0b CA::Layer::run_animation_callbacks(void*) + 234
22 libdispatch.dylib 0x38ee2d3f _dispatch_client_callout + 22
23 libdispatch.dylib 0x38ee56c3 _dispatch_main_queue_callback_4CF + 278
24 CoreFoundation 0x2e229641 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
25 CoreFoundation 0x2e227f0d __CFRunLoopRun + 1308
26 CoreFoundation 0x2e192729 CFRunLoopRunSpecific + 524
27 CoreFoundation 0x2e19250b CFRunLoopRunInMode + 106
28 GraphicsServices 0x331016d3 GSEventRunModal + 138
29 UIKit 0x30af3871 UIApplicationMain + 1136
30 APPNAME 0x000b9287 main (main.m:16)
App crahed in WebViewController in function moreActions.
12 APPNAME 0x0011cfaf __33-[WebViewController moreActions:]_block_invoke_2 (WebViewController.m:424)
This Function show UIActivityViewController and one of custom action - copy link to web page.
__weak WebViewController *weakSelf = self;
[activityViewController setCompletionHandler:^(NSString *activityType, BOOL completed) {
WebViewController *strongSelf = weakSelf;
if ([activityType isEqualToString:#"VK"]) {
// actions
} else if ([activityType isEqualToString:#"copyLink"]) {
// HERE UIPasteboard!
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setString:[strongSelf.startUrl absoluteString]];
}
}];

Make sure that [strongSelf.startUrl absoluteString] does not returns nil just before setting it to pasteboard string. I'm pretty sure that your startUrl apparently becomes nil.

Related

iOS sigbart abort crash

I am experiencing a random crash in the following method:
- (void) addLineToVCard:(NSMutableString **)vCard forKey:(NSString *)key setValue:(NSString *)value
{
[*vCard appendString:[NSString stringWithFormat:#"%#:%#\r\n", key, value]];
}
and I'm calling this as:
NSMutableString* vCard = [NSMutableString string];
[self addLineToVCard:&vCard forKey:#"BEGIN" setValue:#"VCARD"];
[self addLineToVCard:&vCard forKey:#"VERSION" setValue:#"3.0"];
What am I doing wrong ? I could avoid this by passing a reference instead of a pointer object. But I would like to know the reason of crash here.
The crash log:
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x251e6c5c __pthread_kill + 8
1 libsystem_pthread.dylib 0x25290733 pthread_kill + 62
2 libsystem_c.dylib 0x2517b0ad abort + 108
3 libsystem_malloc.dylib 0x252180ad free_list_checksum_botch + 362
4 libsystem_malloc.dylib 0x252181db free_tiny_botch + 66
5 CoreFoundation 0x255332d3 __CFStringChangeSizeMultiple + 1838
6 CoreFoundation 0x2553178b __CFStringCheckAndReplace + 554
7 CoreFoundation 0x25491557 -[__NSCFString appendString:] + 26
8 iPhoneHandheldACT 0x1ae7cf -[ContactDetailViewController addLineToVCard:forKey:setValue:] (ContactDetailViewController.m:3009)
9 iPhoneHandheldACT 0x1ae515 -[ContactDetailViewController assembleVCard:] (ContactDetailViewController.m:2987)
10 iPhoneHandheldACT 0x1adcbd -[ContactDetailViewController shareVCard:] (ContactDetailViewController.m:2927)
11 iPhoneHandheldACT 0x1ad351 __47-[ContactDetailViewController btnSharePressed:]_block_invoke (ContactDetailViewController.m:2813)
12 UIKit 0x29f2cbd9 -[UIAlertController _fireOffActionOnTargetIfValidForAction:] + 68
13 UIKit 0x29f2d283 __85-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:]_block_invoke + 30
14 UIKit 0x29e237e3 -[UIPresentationController transitionDidFinish:] + 1230
15 UIKit 0x29e26a85 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 192
16 UIKit 0x29c04157 -[_UIViewControllerTransitionContext completeTransition:] + 90
17 UIKit 0x29b11ba5 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
18 UIKit 0x29b11685 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
19 UIKit 0x29b1157f -[UIViewAnimationState animationDidStop:finished:] + 78
20 QuartzCore 0x27b71689 CA::Layer::run_animation_callbacks(void*) + 252
21 libdispatch.dylib 0x250c980f _dispatch_client_callout + 22
22 libdispatch.dylib 0x250d7ba9 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
23 CoreFoundation 0x2551db6d __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
24 CoreFoundation 0x2551c067 __CFRunLoopRun + 1574
25 CoreFoundation 0x2546b229 CFRunLoopRunSpecific + 520
26 CoreFoundation 0x2546b015 CFRunLoopRunInMode + 108
27 GraphicsServices 0x26a5bac9 GSEventRunModal + 160
28 UIKit 0x29b3f189 UIApplicationMain + 144
29 iPhoneHandheldACT 0xcbe21 main (main.m:16)
30 libdispatch.dylib 0x25113873 (Missing)
The pointer's pointer is not necessary, just like this:
- (void)addLineToVCard:(NSMutableString *)vCard forKey:(NSString *)key setValue:(NSString *)value
{
[vCard appendFormat:#"%#:%#\r\n", key, value];
}
Then use it:
NSMutableString* vCard = [NSMutableString string];
[self addLineToVCard:vCard forKey:#"BEGIN" setValue:#"VCARD"];
[self addLineToVCard:vCard forKey:#"VERSION" setValue:#"3.0"];
The result:
(lldb) po vCard
BEGIN:VCARD
VERSION:3.0

-[_UIFieldEditorLayoutManager addTextContainer:] unrecognized selector sent to instance

Crashlytics reported the following error:
Fatal Exception: NSInvalidArgumentException - [_ UIFieldEditorLayoutManager addTextContainer:] unrecognized selector sent to the instance
...
My question is: How can I control this Exception?
Greetings.
Code:
-(void) method{
NSError *authError = nil;
LAContext *laCtx = [[LAContext alloc] init];
if ([laCtx canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
...
}
} else {
[txtField becomeFirstResponder];
self.navigationItem.hidesBackButton = NO;
}
}
The report shows the crash in the line: self.navigationItem.hidesBackButton = NO;. But I think it has to do with the text field (due to the error message).
The crash report indicates:
0 iosApp 0x4e8221 CLSProcessRecordAllThreads + 4362785
1 iosApp 0x4e8221 CLSProcessRecordAllThreads + 4362785
2 iosApp 0x4e8119 CLSProcessRecordAllThreads + 4362521
3 iosApp 0x4dc05f CLSHandler + 4313183
4 iosApp 0x4e6b0b __CLSExceptionRecord_block_invoke + 4356875
5 libdispatch.dylib 0x23739b47 _dispatch_client_callout + 22
6 libdispatch.dylib 0x23745355 _dispatch_barrier_sync_f_invoke + 56
7 iosApp 0x4e650d CLSExceptionRecord + 4355341
8 iosApp 0x4e6335 CLSExceptionRecordNSException + 4354869
9 iosApp 0x4e5e4b CLSTerminateHandler() + 4353611
10 libc++abi.dylib 0x23358e17 std::__terminate(void (*)()) + 78
11 libc++abi.dylib 0x233585f5 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 110
12 libobjc.A.dylib 0x23366eeb objc_exception_throw + 250
13 CoreFoundation 0x23bc5925 __methodDescriptionForSelector + 186
14 CoreFoundation 0x23bc3559 __forwarding __ + 700
15 CoreFoundation 0x23af3c08 _CF_forwarding_prep_0 + 24
16 UIKit 0x27e0bc59 -[UIFieldEditor initWithFrame:] + 584
17 UIKit 0x27d1c44d +[UIFieldEditor sharedFieldEditor] + 88
18 UIKit 0x27e0b7d5 -[UITextField _becomeFirstResponder] + 184
19 UIKit 0x27d8374d -[UIResponder becomeFirstResponder] + 396
20 UIKit 0x27d83b29 -[UIView(Hierarchy) becomeFirstResponder] + 132
21 UIKit 0x27e0a39d -[UITextField becomeFirstResponder] + 48
22 iosApp 0x22a5bd -[MyViewController methodCrashed] (MyViewController.m:175)
23 iosApp 0x229fdf __45-[MyViewController methodLCS]_block_invoke (MyViewController.m:91)
24 Framework1 0x167a3c9 -[MyViewControllerLCS requestAuthorizationWithHandler:] (MyViewControllerLCS.m:48)
25 iosApp 0x229eb5 -[MyViewController methodLCS] (MyViewController.m:106)
26 iosApp 0x229e25 -[MyViewController viewDidAppear:] (MyViewController.m:73)
27 UIKit 0x27d152af -[UIViewController _setViewAppearState:isAnimating:] + 670
28 UIKit 0x27d15837 -[UIViewController _endAppearanceTransition:] + 258
29 UIKit 0x27dd0fdb -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 986
30 UIKit 0x27eab2d7 __49-[UINavigationController _startCustomTransition:]_block_invoke + 210
31 UIKit 0x27e2909f -[_UIViewControllerTransitionContext completeTransition:] + 90
32 UIKit 0x27f8ddfb __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke95 + 682
33 UIKit 0x27d37b25 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
34 UIKit 0x27d37605 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
35 UIKit 0x27d374ff -[UIViewAnimationState animationDidStop:finished:] + 78
36 QuartzCore 0x25dfea21 CA::Layer::run_animation_callbacks(void*) + 252
37 libdispatch.dylib 0x23739b47 _dispatch_client_callout + 22
38 libdispatch.dylib 0x23747ee1 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
39 CoreFoundation 0x23b833fd _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE_ + 8
40 CoreFoundation 0x23b818f7 __CFRunLoopRun + 1574
41 CoreFoundation 0x23ad4bf9 CFRunLoopRunSpecific + 520
42 CoreFoundation 0x23ad49e5 CFRunLoopRunInMode + 108
43 GraphicsServices 0x24d20ac9 GSEventRunModal + 160
44 UIKit 0x27d64ba1 UIApplicationMain + 144
45 iosApp 0x342779 main (main.m:14)
46 libdispatch.dylib 0x23783873 (Missing)

ios 8.1 - controller with UIWebView not shown without WiFi connection

Few days ago i started receiving user reports that my app is not working. After few hours of investigation i've found that controller is not shown ([self.navigationController pushViewController:terminalController animated:YES];) if it has UIWebView and there is no wifi connection! I did not believe it but i have 2 controllers - one with loading 'about the app' page and another is for showing some built-in app documentation. I'm testing on ios 8.1.2 and ipad 2.
Controller's viewDidLoad just is not invoked and the app just freezes. I've checked few times - if i turn wifi on and relaunch the app controllers are shown!
The problem is that i'm using uiwebview for showing local pages and it does not require wifi connection, so most users are very confused.
Any workaround?
Update: here is how i push controller:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:#"Main" bundle: nil];
ASTerminalController *terminalController = [storyboard instantiateViewControllerWithIdentifier:#"ASTerminalController"];
terminalController.htmlFilename = self.outputFilePath;
[self.navigationController pushViewController:terminalController animated:YES];
Update2: i've modified the app and now i'm creating UIWebView not in storyboard but in code. Now i can see initWithFrame hangs is there is no internet connection:
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
Update 1: probably some 3rd-party code uses UIWebView and somehow blocks it (see semaphore is used):
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3aa34540 semaphore_wait_trap + 8
1 libsystem_platform.dylib 0x3aabf431 _os_semaphore_wait + 9
2 libdispatch.dylib 0x01b966f7 0x1b94000 + 9975
3 UIKit 0x2ff893ef +[UIWebDocumentView initialize] + 39
4 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
5 libobjc.A.dylib 0x3a4022fd _class_initialize + 61
6 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
7 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
8 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
9 UIKit 0x2fe743d1 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) containerIsBrowserView] + 73
10 UIKit 0x2fe74353 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) textDocument] + 35
11 UIKit 0x2fe74271 -[UITextSelectionView selection] + 41
12 UIKit 0x2fe74e7f -[UITextSelectionView selectionChanged] + 167
13 UIKit 0x304f17bb __47-[UITextInputController _setSelectedTextRange:]_block_invoke251 + 223
14 UIKit 0x2fe74d8b __52-[UITextInputController _coordinateSelectionChange:]_block_invoke + 83
15 UIFoundation 0x3756bb63 -[NSTextStorage coordinateReading:] + 35
16 UIKit 0x2fe74d31 -[UITextInputController _coordinateSelectionChange:] + 97
17 UIKit 0x304f14d3 -[UITextInputController _setSelectedTextRange:] + 599
18 UIKit 0x2feda6db -[UITextView setAttributedText:] + 391
19 CppCode 0x0011b925 0xd1000 + 305445
20 CppCode 0x0011d0cb 0xd1000 + 311499
21 CppCode 0x00119daf 0xd1000 + 298415
22 CoreFoundation 0x2c931c5f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 11
23 CoreFoundation 0x2c88d6d1 _CFXNotificationPost + 1781
24 Foundation 0x2d5bf125 -[NSNotificationCenter postNotificationName:object:userInfo:] + 69
25 Foundation 0x2d5ebe33 -[NSUserDefaults(NSUserDefaults) registerDefaults:] + 71
26 WebKitLegacy 0x389df8cd +[WebView initialize] + 301
27 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
28 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
29 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
30 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
31 WebKitLegacy 0x389df6cf WebKitInitialize + 67
32 UIKit 0x3009cf97 ___UIApplicationLoadWebKit_block_invoke + 151
33 libdispatch.dylib 0x01b959c5 0x1b94000 + 6597
34 libdispatch.dylib 0x01b9662d 0x1b94000 + 9773
35 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
36 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
37 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
38 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
39 CppCode 0x0011182d 0xd1000 + 264237
40 UIKit 0x2fe3a52b -[UIViewController loadViewIfRequired] + 599
41 UIKit 0x2fe3a299 -[UIViewController view] + 21
42 UIKit 0x2ffc3585 -[UINavigationController _startCustomTransition:] + 625
43 UIKit 0x2fee34d3 -[UINavigationController _startDeferredTransitionIfNeeded:] + 419
44 UIKit 0x2fee32d9 -[UINavigationController __viewWillLayoutSubviews] + 41
45 UIKit 0x2fee326d -[UILayoutContainerView layoutSubviews] + 181
46 UIKit 0x2fe37a6b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 511
47 QuartzCore 0x2f85fa09 -[CALayer layoutSublayers] + 133
48 QuartzCore 0x2f85b3e1 CA::Layer::layout_if_needed(CA::Transaction*) + 357
49 QuartzCore 0x2f85b269 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 13
50 QuartzCore 0x2f85ac4d CA::Context::commit_transaction(CA::Transaction*) + 221
51 QuartzCore 0x2f85aa51 CA::Transaction::commit() + 321
52 QuartzCore 0x2f854929 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 53
53 CoreFoundation 0x2c93fd93 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 19
54 CoreFoundation 0x2c93d44f __CFRunLoopDoObservers + 275
55 CoreFoundation 0x2c93d857 __CFRunLoopRun + 911
56 CoreFoundation 0x2c88b3bd CFRunLoopRunSpecific + 473
57 CoreFoundation 0x2c88b1cf CFRunLoopRunInMode + 103
58 GraphicsServices 0x33c200a5 GSEventRunModal + 133
59 UIKit 0x2fe997ad UIApplicationMain + 1437
60 CppCode 0x0011f619 0xd1000 + 321049
61 libdyld.dylib 0x3a981aad start + 1

App crashes in Thread 0 (Only on AdHoc)

My app was recently rejected for a crash when loading a tableview. I could only reproduce the crash when running an ad-hoc build. Here's the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x30ecbe7e __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3b2286c2 objc_exception_throw + 34
2 CoreFoundation 0x30ecf7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x30ece0aa ___forwarding___ + 702
4 CoreFoundation 0x30e1cdc4 __forwarding_prep_0___ + 20
5 HSHacks 0x0011a368 -[FRepo initWithRepoInfo:andPersistence:] (FRepo.m:51)
6 HSHacks 0x00119b58 -[FRepoManager getLocalRepo:] (FRepoManager.m:85)
7 HSHacks 0x0011a1f0 +[FRepoManager getRepo:] (FRepoManager.m:126)
8 HSHacks 0x00132144 -[Firebase initWithUrl:] (Firebase.m:50)
9 HSHacks 0x000d0d8c -[ChatViewController viewDidLoad] (ChatViewController.m:61)
10 UIKit 0x33654956 -[UIViewController loadViewIfRequired] + 514
11 UIKit 0x33654714 -[UIViewController view] + 20
12 UIKit 0x3377bd8a -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 350
13 UIKit 0x3377bc1e -[UITabBarController transitionFromViewController:toViewController:] + 34
14 UIKit 0x3377bb2a -[UITabBarController _setSelectedViewController:] + 254
15 UIKit 0x33846840 -[UITabBarController _tabBarItemClicked:] + 268
16 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
17 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
18 UIKit 0x338466f6 -[UITabBar _sendAction:withEvent:] + 366
19 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
20 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
21 UIKit 0x33684d0e -[UIControl sendAction:to:forEvent:] + 42
22 UIKit 0x3367073e -[UIControl _sendActionsForEvents:withEvent:] + 370
23 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
24 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
25 UIKit 0x33684d0e -[UIControl sendAction:to:forEvent:] + 42
26 UIKit 0x3367073e -[UIControl _sendActionsForEvents:withEvent:] + 370
27 UIKit 0x33684756 -[UIControl touchesEnded:withEvent:] + 590
28 UIKit 0x3364819c _UIGestureRecognizerUpdate + 5524
29 CoreFoundation 0x30e96f64 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
30 CoreFoundation 0x30e948f2 __CFRunLoopDoObservers + 282
31 CoreFoundation 0x30e94c3e __CFRunLoopRun + 734
32 CoreFoundation 0x30dff46c CFRunLoopRunSpecific + 520
33 CoreFoundation 0x30dff24e CFRunLoopRunInMode + 102
34 GraphicsServices 0x35b392e6 GSEventRunModal + 134
35 UIKit 0x336b4840 UIApplicationMain + 1132
36 HSHacks 0x000d7efa main (main.m:16)
37 libdyld.dylib 0x3b721ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b7d81fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b83fa4e pthread_kill + 54
2 libsystem_c.dylib 0x3b789028 abort + 72
3 libc++abi.dylib 0x3abd798a abort_message + 70
4 libc++abi.dylib 0x3abf06e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3b228936 _objc_terminate() + 190
6 libc++abi.dylib 0x3abee1b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3abedd12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3b22880a objc_exception_rethrow + 38
9 CoreFoundation 0x30dff4e2 CFRunLoopRunSpecific + 638
10 CoreFoundation 0x30dff24e CFRunLoopRunInMode + 102
11 GraphicsServices 0x35b392e6 GSEventRunModal + 134
12 UIKit 0x336b4840 UIApplicationMain + 1132
13 HSHacks 0x000d7efa main (main.m:16)
14 libdyld.dylib 0x3b721ab4 start + 0
Anybody have any idea what's going on?
I think it may have something to do with this code in viewDidLoad:
[self.firebase observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
// Add the chat message to the array.
[self.chat addObject:snapshot.value];
// Reload the table view so the new message will show up.
[SVProgressHUD dismiss];
[self.chatTableView reloadData];
self.chatTextField.userInteractionEnabled = TRUE;
[self.chatTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.chat.count-1 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
}];
}

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....

Resources