Objective-C - UIBarButtonItem Crashes, weird crash log - objective-c

I have an UIBarButtonItem that is crashing, but I can't figure out what is happening. It's not generating any error on the debugger and its crash log is not symbolicating some parts. This is the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x354ba88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37861259 objc_exception_throw + 33
2 CoreFoundation 0x354ba789 +[NSException raise:format:] + 1
3 Foundation 0x34fa23ff -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 87
4 Exame_iPhone 0x000b9029 0x4b000 + 450601
5 Exame_iPhone 0x000b9071 0x4b000 + 450673
6 Exame_iPhone 0x0010a60d 0x4b000 + 783885
7 Exame_iPhone 0x0010aa7b 0x4b000 + 785019
8 Exame_iPhone 0x00069ff3 0x4b000 + 126963
9 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
10 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
11 UIKit 0x32fcf5e7 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 119
12 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
13 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
14 UIKit 0x32f09dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
15 UIKit 0x32f09da1 -[UIControl sendAction:to:forEvent:] + 45
16 UIKit 0x32f09b11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
17 UIKit 0x32f0a449 -[UIControl touchesEnded:withEvent:] + 477
18 UIKit 0x32f0892b -[UIWindow _sendTouchesForEvent:] + 319
19 UIKit 0x32f08319 -[UIWindow sendEvent:] + 381
20 UIKit 0x32eee695 -[UIApplication sendEvent:] + 357
21 UIKit 0x32eedf3b _UIApplicationHandleEvent + 5827
22 GraphicsServices 0x370ad22b PurpleEventCallback + 883
23 CoreFoundation 0x3548e523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
24 CoreFoundation 0x3548e4c5 __CFRunLoopDoSource1 + 141
25 CoreFoundation 0x3548d313 __CFRunLoopRun + 1371
26 CoreFoundation 0x354104a5 CFRunLoopRunSpecific + 301
27 CoreFoundation 0x3541036d CFRunLoopRunInMode + 105
28 GraphicsServices 0x370ac439 GSEventRunModal + 137
29 UIKit 0x32f1ccd5 UIApplicationMain + 1081
30 Exame_iPhone 0x0004c23b 0x4b000 + 4667
31 Exame_iPhone 0x0004c1e0 0x4b000 + 4576
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35d7032c __pthread_kill + 8
1 libsystem_c.dylib 0x328bc208 pthread_kill + 48
2 libsystem_c.dylib 0x328b5298 abort + 88
3 libc++abi.dylib 0x35872f64 abort_message + 40
4 libc++abi.dylib 0x35870346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x37861350 _objc_terminate + 140
6 libc++abi.dylib 0x358703be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3587044a std::terminate() + 14
8 libc++abi.dylib 0x3587181e __cxa_rethrow + 82
9 libobjc.A.dylib 0x378612a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35410506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35410366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x370ac432 GSEventRunModal + 130
13 UIKit 0x32f1ccce UIApplicationMain + 1074
14 Exame_iPhone 0x0004c234 0x4b000 + 4660
15 Exame_iPhone 0x0004c1d8 0x4b000 + 4568
Does anybody know what is going on?
Regards!

An assertion fails in the non-symbolicated lines, probably in your own method. Set a breakpoint at the beginning of your button method and step through until you get the crash.

Related

Uncaught exception [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key btnAvatar

2017-04-13 12:16:36.606 Boardmeeting[4601:1375127] Uncaught exception [<UIViewController 0x7f988fe32750> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key btnAvatar.
2017-04-13 12:16:36.611 Boardmeeting[4601:1375127] Stack trace: (
0 CoreFoundation 0x000000010f555d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010efbe21e objc_exception_throw + 48
2 CoreFoundation 0x000000010f555c99 -[NSException raise] + 9
3 Foundation 0x000000010d25e9df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x000000010d90d293 -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010db8179e -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010f4fa9e0 -[NSArray makeObjectsPerformSelector:] + 256
7 UIKit 0x000000010db80122 -[UINib instantiateWithOwner:options:] + 1867
8 UIKit 0x000000010d9139c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
9 UIKit 0x000000010d9142e7 -[UIViewController loadView] + 177
10 UIKit 0x000000010d91461c -[UIViewController loadViewIfRequired] + 201
11 UIKit 0x000000010d914e70 -[UIViewController view] + 27
12 UIKit 0x000000010d9734f3 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 483
13 UIKit 0x000000010d972935 -[UITabBarController transitionFromViewController:toViewController:] + 59
14 UIKit 0x000000010d96e7f6 -[UITabBarController _setSelectedViewController:] + 365
15 UIKit 0x000000010d96e57b -[UITabBarController setSelectedIndex:] + 131
16 Boardmeeting 0x0000000109746bce -[LoginViewController prepareForSegue:sender:] + 350
17 UIKit 0x000000010df4817f -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 353
18 UIKit 0x000000010df47fed -[UIStoryboardSegueTemplate _perform:] + 82
19 UIKit 0x000000010d917a1f -[UIViewController performSegueWithIdentifier:sender:] + 99
20 Boardmeeting 0x00000001097470ee -[LoginViewController requestFinished:] + 446
21 Boardmeeting 0x00000001096fbe9e -[ASIHTTPRequest reportFinished] + 142
22 Foundation 0x000000010d27ee9e __NSThreadPerformPerform + 326
23 CoreFoundation 0x000000010f4fa761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x000000010f4df98c __CFRunLoopDoSources0 + 556
25 CoreFoundation 0x000000010f4dee76 __CFRunLoopRun + 918
26 CoreFoundation 0x000000010f4de884 CFRunLoopRunSpecific + 420
27 GraphicsServices 0x0000000115158a6f GSEventRunModal + 161
28 UIKit 0x000000010d772c68 UIApplicationMain + 159
29 Boardmeeting 0x0000000109758eae main + 142
30 libdyld.dylib 0x000000011067b68d start + 1
)
This usually happens when you remove an IBOutlet from a class, but you don't remove the outlet link in the storyboard.
In your case it's btnAvatar: could you have removed this from your class/controller but you left it there on the storyboard?

updateSubviewsOfScrollContentViews ios10 crash

In My HockeyApp crash reports, I am getting the following crash in iOS10. Not sure what is the reason behind this.
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000187346f30 objc_msgSend + 16
1 UIKit 0x000000018e972bd8 updateSubviewsOfScrollContentViews + 184
2 UIKit 0x000000018e972cdc updateSubviewsOfScrollContentViews + 444
3 UIKit 0x000000018e972cdc updateSubviewsOfScrollContentViews + 444
4 UIKit 0x000000018e972cdc updateSubviewsOfScrollContentViews + 444
5 UIKit 0x000000018e972cdc updateSubviewsOfScrollContentViews + 444
6 UIKit 0x000000018e972ad0 -[UIWebBrowserView _collectAdditionalSubviews] + 380
7 UIKit 0x000000018e972924 -[UIWebDocumentView _updateSubviewCaches] + 52
8 UIKit 0x000000018e79493c -[UIWebDocumentView subviews] + 88
9 UIKit 0x000000018ea45bd4 -[UIView(CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 68
10 UIKit 0x000000018e741770 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1248
11 QuartzCore 0x000000018bc0a40c -[CALayer layoutSublayers] + 144
12 QuartzCore 0x000000018bbff0e8 CA::Layer::layout_if_needed(CA::Transaction*) + 288
13 QuartzCore 0x000000018bbfefa8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
14 QuartzCore 0x000000018bb7bc64 CA::Context::commit_transaction(CA::Transaction*) + 248
15 QuartzCore 0x000000018bba30d0 CA::Transaction::commit() + 508
16 QuartzCore 0x000000018bba3af0 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 116
17 CoreFoundation 0x00000001888a97dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
18 CoreFoundation 0x00000001888a740c __CFRunLoopDoObservers + 368
19 CoreFoundation 0x00000001887d6068 CFRunLoopRunSpecific + 472
20 WebCore 0x000000018d377a2c RunWebThread(void*) + 452
21 libsystem_pthread.dylib 0x000000018798f860 _pthread_body + 236
22 libsystem_pthread.dylib 0x000000018798f770 _pthread_start + 280
23 libsystem_pthread.dylib 0x000000018798cdbc thread_start + 0
Any suggestions will be extremely helpful.
This is answered in the following post.
UIWebDocumentView _updateSubviewCaches crash in iOS10
The root cause for these issues are same.

How to debug CoreFoundation Crash run_animation_callbacks

I do not know how I can use the following crash report from crashlytics to narrow down the source of the crash.
All I understand is that it has something to do with CoreFoundation, but what exactly is the crash? And where in my code is it happening?
Is a CAAnimation Delegate? Or perhaps I did not remove and observer from NSNotifications?
Any ideas?
Crashed: com.apple.main-thread SIGABRT ABORT at 0x39a5cdf0
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x39a5cdf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x39addc97 pthread_kill + 62
2 libsystem_c.dylib 0x399fb939 abort + 76
3 libc++abi.dylib 0x38bfabbd __cxa_bad_cast
4 libc++abi.dylib 0x38c1466f default_terminate_handler() + 266
5 libobjc.A.dylib 0x393eef11 _objc_terminate() + 192
6 libc++abi.dylib 0x38c11def std::__terminate(void (*)()) + 78
7 libc++abi.dylib 0x38c115b1 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
8 libobjc.A.dylib 0x393eed4b objc_exception_throw + 250
9 CoreFoundation 0x2b4975fd __methodDescriptionForSelector
10 CoreFoundation 0x2b4954d9 ___forwarding___ + 712
11 CoreFoundation 0x2b3c49d8 _CF_forwarding_prep_0 + 24
12 QuartzCore 0x2e4eeff3 CA::Layer::run_animation_callbacks(void*) + 150
13 libdispatch.dylib 0x39958c6f _dispatch_client_callout + 22
14 libdispatch.dylib 0x39964553 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1322
15 CoreFoundation 0x2b457889 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x2b455fa9 __CFRunLoopRun + 1512
17 CoreFoundation 0x2b3a19a1 CFRunLoopRunSpecific + 476
18 CoreFoundation 0x2b3a17b3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x32b531a9 GSEventRunModal + 136
20 UIKit 0x2eb2c695 UIApplicationMain + 1440

iOS 7 Exception Type: EXC_CRASH (SIGABRT)

Does anyone have a clue on this crash ?
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x30e57e83 __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3b1b86c7 objc_exception_throw + 38
2 CoreFoundation 0x30e57dc5 +[NSException raise:format:] + 112
3 CoreData 0x30bc6be3 -[_PFBatchFaultingArray objectAtIndex:] +
146
4 ChevronRetail 0x000345bd 0x1f000 + 87485
5 ChevronRetail 0x000314e5 0x1f000 + 74981
6 ChevronRetail 0x0003143d 0x1f000 + 74813
7 ChevronRetail 0x000313c3 0x1f000 + 74691
8 ChevronRetail 0x00031cc7 0x1f000 + 76999
9 UIKit 0x336d7349 -[UIScrollView(UIScrollViewInternal)
_delegateScrollViewAnimationEnded] + 68
10 UIKit 0x336d72c5 -[UIScrollView(UIScrollViewInternal)
_scrollViewAnimationEnded:finished:] + 176
11 UIKit 0x023c001b 0x2393000 + 184347
12 UIKit 0x3377fd6b -[UIAnimator stopAnimation:] + 466
13 UIKit 0x3377f74d -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 284
14 UIKit 0x3377f62d -[UIAnimator(Static) _LCDHeartbeatCallback:] + 52
15 QuartzCore 0x332b2ad3 CA::Display::DisplayLinkItem::dispatch() + 98
16 QuartzCore 0x332b287d CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
17 IOMobileFramebuffer 0x35edc76d IOMobileFramebufferVsyncNotifyFunc + 104
18 IOKit 0x31b39be5 IODispatchCalloutFromCFMessage + 248
19 CoreFoundation 0x30e17b81 __CFMachPortPerform + 136
20 CoreFoundation 0x30e22777 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
21 CoreFoundation 0x30e22713 __CFRunLoopDoSource1 + 346
22 CoreFoundation 0x30e20edf __CFRunLoopRun + 1406
23 CoreFoundation 0x30d8b471 CFRunLoopRunSpecific + 524
24 CoreFoundation 0x30d8b253 CFRunLoopRunInMode + 106
25 GraphicsServices 0x35abf2eb GSEventRunModal + 138
26 UIKit 0x33640845 UIApplicationMain + 1136
27 ChevronRetail 0x00057fd5 0x1f000 + 233429
28 libdyld.dylib 0x3b6b1ab7 start + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b7681fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b7cfa4f pthread_kill + 55
2 libsystem_c.dylib 0x3b719029 abort + 73
3 libc++abi.dylib 0x3ab6798b abort_message + 71
4 libc++abi.dylib 0x3ab806e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x3b1b8937 _objc_terminate() + 191
6 libc++abi.dylib 0x3ab7e1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x3ab7dd13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3b1b880b objc_exception_rethrow + 39
9 CoreFoundation 0x30d8b4e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x30d8b24f CFRunLoopRunInMode + 103
11 GraphicsServices 0x35abf2e7 GSEventRunModal + 135
12 UIKit 0x33640841 UIApplicationMain + 1133
13 ChevronRetail 0x00057fd1 0x1f000 + 233425
14 libdyld.dylib 0x3b6b1ab5 start + 1

when scrolling data in tableview its crashing

When i am moving the data from tableview cell by one its crashing ..
When my view did loaded my array count is 64
I assign this to number of row return [categorieArray count];
and cell configuration
cell.textLabel.text=[categorieArray objectAtIndex:indexPath.row];
return cell;
*** Call stack at first throw:
(
0 CoreFoundation 0x00f8fbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010e45c2 objc_exception_throw + 47
2 CoreFoundation 0x00f916fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00f01366 ___forwarding___ + 966
4 CoreFoundation 0x00f00f22 _CF_forwarding_prep_0 + 50
5 Sigma-Aldrich 0x0000468d -[RootViewController tableView:cellForRowAtIndexPath:] + 237
6 UIKit 0x000977fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
7 UIKit 0x0008d77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
8 UIKit 0x000a2450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
9 UIKit 0x0009a538 -[UITableView layoutSubviews] + 242
10 QuartzCore 0x017f5451 -[CALayer layoutSublayers] + 181
11 QuartzCore 0x017f517c CALayerLayoutIfNeeded + 220
12 QuartzCore 0x017ee37c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
13 QuartzCore 0x017ee0d0 _ZN2CA11Transaction6commitEv + 292
14 QuartzCore 0x0181e7d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
15 CoreFoundation 0x00f70fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
16 CoreFoundation 0x00f060e7 __CFRunLoopDoObservers + 295
17 CoreFoundation 0x00ecebd7 __CFRunLoopRun + 1575
18 CoreFoundation 0x00ece240 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00ece161 CFRunLoopRunInMode + 97
20 GraphicsServices 0x01203268 GSEventRunModal + 217
21 GraphicsServices 0x0120332d GSEventRun + 115
22 UIKit 0x0003242e UIApplicationMain + 1160
23 Sigma-Aldrich 0x00001d49 main + 121
24 Sigma-Aldrich 0x00001cc5 start + 53
25 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
It seems you have an incomplete implementation of your UITableViewDataSource, specifically (it seems) you forgot to implement tableView:cellForRowAtIndexPath, so that when the framework tries and calls it, it fails.
Have a look here for more info.