NSDictionary - Check if object has any keys - objective-c

I am working with the Pocket API, it returns a JSON feed with my "read later" items. The key/value names are dynamic (they keep changing), so in order to parse through them, I am using [object allKeys] to get all the different keys. I then loop through that array and store all the data I need in my custom object.
The problem I am having is when the list object is empty (ie: when I am performing pagination). When it is empty, performing [object allKeys] crashes, because there are no keys in the dictionary.
Is there a way to check if an NSDictionary object, contains any keys or not?
Normal list object structure:
list = {
1170784230 = {
"amp_url" = "http://jalopnik.com/jaguar-f-type-svr-this-is-it-in-all-its-575-horsepower-1754489727/amp",
"excerpt" = "A lot of things have run through my mind when I\U2019ve driven the Jaguar F-Type R. \U201cThis thing desperately needs more horsepower\U201d has never been one of them. But we are in the age of overkill, and our beloved F-Type is about to get a heavy dose of just that. Meet the insane F-Type SVR.",
"favorite" = "true",
"given_title" = "",
"given_url" = "http://jalopnik.com/jaguar-f-type-svr-this-is-it-in-all-its-575-horsepower-1754489727",
"has_image" = 1,
"has_video" = 0
};
};
Empty list object structure:
list = {
};
How can I detect if an object contains any keys without crashing?
Thanks for your time, Dan.
Update 1
Here is the crash log:
2017-10-05 10:37:37.864293+0100 TestApp[68108:5683371] -[__NSArray0 allKeys]: unrecognized selector sent to instance 0x604000000050
2017-10-05 10:37:37.867373+0100 TestApp[68108:5683371] [General] An uncaught exception was raised
2017-10-05 10:37:37.867409+0100 TestApp[68108:5683371] [General] -[__NSArray0 allKeys]: unrecognized selector sent to instance 0x604000000050
2017-10-05 10:37:37.867506+0100 TestApp[68108:5683371] [General] (
0 CoreFoundation 0x00007fff2f81a0fb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff56106c76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2f8b2c34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff2f790510 ___forwarding___ + 1456
4 CoreFoundation 0x00007fff2f78fed8 _CF_forwarding_prep_0 + 120
5 TestApp 0x000000010006e5c4 __52-[DataManager loadPocketData:pagination:completion:]_block_invoke_2 + 356
6 TestApp 0x0000000100041c52 __51-[DataManager loadNetworkCustomRequest:completion:]_block_invoke + 162
7 CFNetwork 0x00007fff2e7297bf __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
8 CFNetwork 0x00007fff2e729021 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 147
9 Foundation 0x00007fff3185bab3 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
10 Foundation 0x00007fff3185b915 -[NSBlockOperation main] + 68
11 Foundation 0x00007fff31859dc2 -[__NSOperationInternal _start:] + 778
12 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
13 libdispatch.dylib 0x0000000100446a14 _dispatch_block_invoke_direct + 576
14 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
15 libdispatch.dylib 0x0000000100446a14 _dispatch_block_invoke_direct + 576
16 libdispatch.dylib 0x00000001004467b4 dispatch_block_perform + 109
17 Foundation 0x00007fff31855dd0 __NSOQSchedule_f + 342
18 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
19 libdispatch.dylib 0x00000001004475be _dispatch_continuation_pop + 940
20 libdispatch.dylib 0x000000010043e5af _dispatch_async_redirect_invoke + 738
21 libdispatch.dylib 0x0000000100434d77 _dispatch_root_queue_drain + 723
22 libdispatch.dylib 0x0000000100434a50 _dispatch_worker_thread3 + 116
23 libsystem_pthread.dylib 0x00000001004af1d2 _pthread_wqthread + 1387
24 libsystem_pthread.dylib 0x00000001004aec55 start_wqthread + 13
)
2017-10-05 10:37:37.868416+0100 TestApp[68108:5683371] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArray0 allKeys]: unrecognized selector sent to instance 0x604000000050'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2f81a0fb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff56106c76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2f8b2c34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff2f790510 ___forwarding___ + 1456
4 CoreFoundation 0x00007fff2f78fed8 _CF_forwarding_prep_0 + 120
5 TestApp 0x000000010006e5c4 __52-[DataManager loadPocketData:pagination:completion:]_block_invoke_2 + 356
6 TestApp 0x0000000100041c52 __51-[DataManager loadNetworkCustomRequest:completion:]_block_invoke + 162
7 CFNetwork 0x00007fff2e7297bf __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
8 CFNetwork 0x00007fff2e729021 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 147
9 Foundation 0x00007fff3185bab3 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
10 Foundation 0x00007fff3185b915 -[NSBlockOperation main] + 68
11 Foundation 0x00007fff31859dc2 -[__NSOperationInternal _start:] + 778
12 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
13 libdispatch.dylib 0x0000000100446a14 _dispatch_block_invoke_direct + 576
14 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
15 libdispatch.dylib 0x0000000100446a14 _dispatch_block_invoke_direct + 576
16 libdispatch.dylib 0x00000001004467b4 dispatch_block_perform + 109
17 Foundation 0x00007fff31855dd0 __NSOQSchedule_f + 342
18 libdispatch.dylib 0x0000000100432f1f _dispatch_client_callout + 8
19 libdispatch.dylib 0x00000001004475be _dispatch_continuation_pop + 940
20 libdispatch.dylib 0x000000010043e5af _dispatch_async_redirect_invoke + 738
21 libdispatch.dylib 0x0000000100434d77 _dispatch_root_queue_drain + 723
22 libdispatch.dylib 0x0000000100434a50 _dispatch_worker_thread3 + 116
23 libsystem_pthread.dylib 0x00000001004af1d2 _pthread_wqthread + 1387
24 libsystem_pthread.dylib 0x00000001004aec55 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Related

React native iOS application crash in production mode

My application developed in react native and last version deployed on app store crashing with below given crash logs.
Last Exception Backtrace:
0 CoreFoundation 0x1a66a927c __exceptionPreprocess + 228 (NSException.m:172)
1 libobjc.A.dylib 0x1a58839f8 objc_exception_throw + 56 (objc-exception.mm:557)
2 CoreFoundation 0x1a65b34b0 +[NSException raise:format:] + 116 (NSException.m:145)
3 Passport 0x100cf4788 RCTFatal + 400
4 Passport 0x100cf24a4 -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 491
5 CoreFoundation 0x1a66b0900 __invoking___ + 144
6 CoreFoundation 0x1a65924d0 -[NSInvocation invoke] + 292 (NSForwarding.m:3052)
7 CoreFoundation 0x1a6593104 -[NSInvocation invokeWithTarget:] + 60 (NSForwarding.m:3123)
8 Passport 0x100d056c8 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 491
9 Passport 0x100d4514c facebook::react::invokeInner+ 495948 (RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 247
10 Passport 0x100d44eac invocation function for block in facebook::react::RCTNativeModule::invoke+ 495276 (unsigned int, folly::dynamic&&, int) + 87
11 libdispatch.dylib 0x1a60e8a38 _dispatch_call_block_and_release + 24 (init.c:1372)
12 libdispatch.dylib 0x1a60e97d4 _dispatch_client_callout + 16 (object.m:511)
13 libdispatch.dylib 0x1a6092320 _dispatch_lane_serial_drain$VARIANT$mp + 592 (inline_internal.h:2441)
14 libdispatch.dylib 0x1a6092e3c _dispatch_lane_invoke$VARIANT$mp + 428 (queue.c:3805)
15 libdispatch.dylib 0x1a609b4a8 _dispatch_workloop_worker_thread + 596 (queue.c:5889)
16 libsystem_pthread.dylib 0x1a62c9114 _pthread_wqthread + 304 (pthread.c:2371)
17 libsystem_pthread.dylib 0x1a62cbcd4 start_wqthread + 4
Same code working fine in development mode in application. I am not able to derive any meaningful information from crash report. Any help should be appreciated.

Crashing on iOS 11 inside of CFNetwork

I'm seeing dozens of crashes every few hours for an app, solely in iOS 11. The stack trace doesn't help and I've got no clue since the rest of the threads are doing something completely different in each of the crash logs. Thus I'm unable to figure out what exactly is triggering it. Anyone else seeing this?
It always seems to be this line:
TCPIOConnection::_handleTLSEvent(nw_tls_context*, tls_handshake_message_t, void () block_pointer, bool) + 640
Crashed: com.apple.CFNetwork.Connection
0 libsystem_kernel.dylib 0x184f05338 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1850194d4 pthread_kill$VARIANT$mp + 360
2 libsystem_c.dylib 0x184e74b0c abort + 140
3 libsystem_c.dylib 0x184e485f0 basename_r + 314
4 CFNetwork 0x185aeca34 TCPIOConnection::_handleTLSEvent(nw_tls_context*, tls_handshake_message_t, void () block_pointer, bool) + 640
5 libnetwork.dylib 0x1862a88c0 __tcp_connection_set_tls_message_handler_on_nw_connection_block_invoke + 168
6 libboringssl.dylib 0x1861862c0 __boringssl_context_handshake_message_handler_block_invoke + 160
7 libdispatch.dylib 0x184d69e04 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x184d69dc4 _dispatch_client_callout + 16
9 libdispatch.dylib 0x184d73ef4 _dispatch_queue_serial_drain$VARIANT$mp + 532
10 libdispatch.dylib 0x184d74944 _dispatch_queue_invoke$VARIANT$mp + 340
11 libdispatch.dylib 0x184d73da8 _dispatch_queue_serial_drain$VARIANT$mp + 200
12 libdispatch.dylib 0x184d74944 _dispatch_queue_invoke$VARIANT$mp + 340
13 libdispatch.dylib 0x184d75510 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 428
14 libdispatch.dylib 0x184d7e0a8 _dispatch_workloop_worker_thread$VARIANT$mp + 620
15 libsystem_pthread.dylib 0x1850171e8 _pthread_wqthread + 924
16 libsystem_pthread.dylib 0x185016e40 start_wqthread + 4
There does seem to be one more thread common between all these crashlogs and I suspect it's from Fabric itself. Anyone else seeing this as well?
trust
0 libsystem_kernel.dylib 0x182550a24 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18255089c mach_msg + 72
2 libdispatch.dylib 0x1823ece00 _dispatch_mach_send_and_wait_for_reply + 656
3 libdispatch.dylib 0x1823ed2d0 dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$mp + 64
4 libxpc.dylib 0x1826bf9b4 xpc_connection_send_message_with_reply_sync + 196
5 Security 0x1836235bc securityd_message_with_reply_sync + 176
6 Security 0x1836238fc securityd_send_sync_and_do + 80
7 Security 0x1836a5a30 __SecTrustEvaluateIfNecessary_block_invoke_3 + 432
8 Security 0x183674494 SecOSStatusWith + 52
9 Security 0x1836a5864 __SecTrustEvaluateIfNecessary_block_invoke_2 + 96
10 libsystem_trace.dylib 0x1826a0b68 _os_activity_initiate_impl + 60
11 Security 0x1836a57f4 __SecTrustEvaluateIfNecessary_block_invoke + 260
12 libdispatch.dylib 0x1823d5dc4 _dispatch_client_callout + 16
13 libdispatch.dylib 0x1823deb94 _dispatch_queue_barrier_sync_invoke_and_complete + 56
14 Security 0x1836a28e8 SecTrustEvaluateIfNecessary + 520
15 Security 0x1836a2c10 SecTrustEvaluate + 64
16 MyApp 0x10359c6e0 -[FABCertificatePinner evaluateTrust:result:] (FABCertificatePinner.m:52)
17 MyApp 0x10359c784 -[FABCertificatePinner handleChallenge:fromURLSession:completionHandler:] (FABCertificatePinner.m:76)
18 MyApp 0x10358dfc8 -[ANSNetworkRetryHandler handleChallenge:fromURLSession:completionHandler:] (ANSNetworkRetryHandler.m:55)
19 MyApp 0x103596ff4 -[ANSAnswersController uploader:session:didReceiveChallenge:completionHandler:] (ANSAnswersController.m:528)
20 MyApp 0x103591ac4 -[ANSUploader URLSession:didReceiveChallenge:completionHandler:] (ANSUploader.m:347)
21 Foundation 0x1834116f8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
22 Foundation 0x1833516f4 -[NSBlockOperation main] + 72
23 Foundation 0x1833412d4 -[__NSOperationInternal _start:] + 868
24 libdispatch.dylib 0x1823d5dc4 _dispatch_client_callout + 16
25 libdispatch.dylib 0x1823dd5e8 _dispatch_block_invoke_direct$VARIANT$mp + 260
26 libdispatch.dylib 0x1823d5dc4 _dispatch_client_callout + 16
27 libdispatch.dylib 0x1823dd5e8 _dispatch_block_invoke_direct$VARIANT$mp + 260
28 libdispatch.dylib 0x1823dd4b0 dispatch_block_perform$VARIANT$mp + 104
29 Foundation 0x1834133d0 __NSOQSchedule_f + 376
30 libdispatch.dylib 0x1823d5dc4 _dispatch_client_callout + 16
31 libdispatch.dylib 0x1823de454 _dispatch_continuation_pop$VARIANT$mp + 456
32 libdispatch.dylib 0x1823dcb94 _dispatch_async_redirect_invoke$VARIANT$mp + 648
33 libdispatch.dylib 0x1823e36d0 _dispatch_root_queue_drain + 596
34 libdispatch.dylib 0x1823e341c _dispatch_worker_thread4 + 56
35 libsystem_pthread.dylib 0x182683338 _pthread_wqthread + 1260
36 libsystem_pthread.dylib 0x182682e40 start_wqthread + 4

UITableViewController in iOS 8 Today Extension

I'm trying to add UITableViewController to Today Widget, but every time I drag UITableViewController to Storyboard and run the Widget it crashes with the following error.
I've tried multiple times. I've tried it by using Table View object, but problem persists.
Note: It crashes even before loading viewDidLoad() method.
2015-06-06 01:19:20.569 iOSHackerToday[3202:283287] * Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '* -[NSArrayM
insertObject:atIndex:]: object cannot be nil'
*** First throw call stack: ( 0 CoreFoundation 0x0000000107842c65 __exceptionPreprocess + 165 1 libobjc.A.dylib
0x00000001074dbbb7 objc_exception_throw + 45 2 CoreFoundation
0x000000010770f8ca -[__NSArrayM insertObject:atIndex:] + 954 3
UIKit 0x0000000107d6f0b9
-[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 338 4 UIKit 0x0000000108241a0c
-[_UIViewServiceViewControllerOperator __createViewController:withContextToken:fbsDisplays:appearanceSerializedRepresentations:legacyAppearance:traitCollection:initialInterfaceOrientation:hostAccessibilityServerPort:canShowTextServices:replyHandler:]
+ 2216 5 CoreFoundation 0x0000000107738dec __invoking_ + 140 6 CoreFoundation 0x0000000107738c42 -[NSInvocation invoke] + 290 7 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 8 UIKit
0x00000001082fd01b -[_UIViewServiceImplicitAnimationDecodingProxy
forwardInvocation:] + 222 9 CoreFoundation
0x000000010779ff4f forwarding + 495 10 CoreFoundation
0x000000010779fcd8 _CF_forwarding_prep_0 + 120 11 CoreFoundation
0x0000000107738dec invoking_ + 140 12 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 13 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 14 UIKit
0x00000001082889f4 -[_UIQueueingProxy forwardInvocation:] + 319 15
CoreFoundation 0x000000010779ff4f
forwarding + 495 16 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 17 CoreFoundation
0x0000000107738dec invoking_ + 140 18 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 19 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 20
CoreFoundation 0x000000010779ff4f
forwarding + 495 21 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 22 CoreFoundation
0x0000000107738dec invoking_ + 140 23 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 24 libdispatch.dylib
0x0000000109da6f16 _dispatch_call_block_and_release + 12 25
libdispatch.dylib 0x0000000109dc1964
_dispatch_client_callout + 8 26 libdispatch.dylib 0x0000000109daca59 _dispatch_main_queue_callback_4CF + 704 27
CoreFoundation 0x00000001077aa1f9
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 28 CoreFoundation 0x000000010776bdcb __CFRunLoopRun
+ 2043 29 CoreFoundation 0x000000010776b366 CFRunLoopRunSpecific + 470 30 GraphicsServices
0x000000010b01ca3e GSEventRunModal + 161 31 UIKit
0x0000000107c3b900 UIApplicationMain + 1282 32 libxpc.dylib
0x000000010a0a7aec _xpc_objc_main + 453 33 libxpc.dylib
0x000000010a0a9e91 xpc_main + 185 34 Foundation
0x0000000107209ee1 service_connection_handler + 0 35 PlugInKit
0x0000000106ff3a82 -[PKService run] + 521 36 PlugInKit
0x0000000106ff3747 +[PKService main] + 55 37 PlugInKit
0x0000000106ff3aa6 +[PKService _defaultRun:arguments:] + 17 38
libextension.dylib 0x000000010978399d NSExtensionMain
+ 51 39 libdyld.dylib 0x0000000109df1145 start + 1 40 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type
NSException (lldb)
When you delete the default layout and drag a new table view controller, you need to mark the new view controller as 'Intial View Controller'
Here's the Apple's document which explains how to do it. https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/SetInitialController.html
In the storyboard, if you are using a custom view controller class made in swift, make sure you check the box 'Inherit Module From Target':

I'm having various crashes in the UIActivityGroupViewController which is part of UIDocumentInteractionController & UIActivityViewController

What are the chances those crashes are totally unrelated to my app, and caused by some other 3rd party app installed on users device?
Application Specific Information:
objc_msgSend() selector name: nsli_layoutEngine
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000192eefbd0 objc_msgSend + 16
1 Foundation 0x0000000183473370 -[NSLayoutConstraint _layoutEngine] + 48
2 Foundation 0x0000000183473c18 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 236
3 UIKit 0x00000001873bf4a0 -[_UIAlertControllerView _updateBackdrop] + 504
4 UIKit 0x00000001873beb40 -[_UIAlertControllerView _updateStyle] + 164
5 UIKit 0x000000018703fc48 -[UIAlertController traitCollectionDidChange:] + 192
6 UIKit 0x0000000186f84118 -[UIViewController _updateTraitsIfNecessary] + 232
7 UIKit 0x0000000186c71564 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 340
8 QuartzCore 0x00000001865c9994 -[CALayer layoutSublayers] + 164
9 QuartzCore 0x00000001865c4564 CA::Layer::layout_if_needed(CA::Transaction*) + 316
10 QuartzCore 0x00000001865c4408 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
11 QuartzCore 0x00000001865c3c08 CA::Context::commit_transaction(CA::Transaction*) + 272
12 QuartzCore 0x00000001865c398c CA::Transaction::commit() + 432
13 UIKit 0x0000000186ee4db0 _UIWindowUpdateVisibleContextOrder + 236
14 UIKit 0x0000000186ee4bf8 +[UIWindow _prepareWindowsPassingTestForAppResume:] + 28
15 UIKit 0x0000000186f08710 -[UIApplication _updateSnapshotAndStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:] + 192
16 UIKit 0x0000000186f07924 __80-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:]_block_invoke_2 + 132
17 libdispatch.dylib 0x00000001935213ac _dispatch_call_block_and_release + 20
18 libdispatch.dylib 0x000000019352136c _dispatch_client_callout + 12
19 libdispatch.dylib 0x0000000193525980 _dispatch_main_queue_callback_4CF + 928
20 CoreFoundation 0x0000000182479fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
21 CoreFoundation 0x000000018247804c __CFRunLoopRun + 1488
22 CoreFoundation 0x00000001823a50a4 CFRunLoopRunSpecific + 392
23 GraphicsServices 0x000000018b50b5a4 GSEventRunModal + 164
24 UIKit 0x0000000186cda3c0 UIApplicationMain + 1484
25 Pogoplug 0x00000001000ef9f4 main (main.m:11)
26 libdyld.dylib 0x000000019354aa08 start + 0
And another one:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 9
Application Specific Information:
Selector name found in current argument registers: URL
Thread 9 Crashed:
0 libobjc.A.dylib 0x38ddcf78 lookUpImpOrForward
+ 48
1 libobjc.A.dylib 0x38ddcf3f _class_lookupMethodAndLoadCache3 + 32
2 libobjc.A.dylib 0x38de31f9 _objc_msgSend_uncached + 22
3 UIKit 0x2e91f539 -[UIActivityItemProvider main] + 22
4 Foundation 0x2ba51505 -[__NSOperationInternal _start:] + 766
5 Foundation 0x2baf6557 __NSOQSchedule_f + 184
6 libdispatch.dylib 0x3934c4d3 _dispatch_queue_drain$VARIANT$mp + 1460
7 libdispatch.dylib 0x3934bda1 _dispatch_queue_invoke$VARIANT$mp + 82
8 libdispatch.dylib 0x3934e491 _dispatch_root_queue_drain + 386
9 libdispatch.dylib 0x3934f8a3 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x394c2da9 _pthread_wqthread + 666
11 libsystem_pthread.dylib 0x394c2afc start_wqthread + 6
And here the list of view controllers being presented before those crashes occur:
2015/03/28 01:07:20:382 {DEBUG} : _UIDocumentActivityViewController
2015/03/28 01:07:20:382 {DEBUG} : UIAlertController
2015/03/28 01:07:20:383 {DEBUG} : _UIActivityGroupListViewController
2015/03/28 01:07:20:383 {DEBUG} : SFAirDropActivityViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
I had the same crash and found that I was trying to present UIActivityViewController from non-existent item (actually, from rightBarButtonItem that was nil).

app crashing because of animationDidStart selector is sent to objects that don't support it

In my app i'm starting to see a new type of crash resulting from animationDidStart selector being sent to objects that don't support it like UIScrollViewDelayedTouchesBeganGestureRecognizer and UIImageView. i started getting them on my new iphone 5s iOS 7.0.3 device (not sure if that is relevant to the crash).
the call stacks are :
Stack Trace: (
0 CoreFoundation 0x2de06e9b <redacted> + 154
1 libobjc.A.dylib 0x381676c7 objc_exception_throw + 38
2 CoreFoundation 0x2de0a7b7 <redacted> + 202
3 CoreFoundation 0x2de090af <redacted> + 706
4 CoreFoundation 0x2dd57dc8 _CF_forwarding_prep_0 + 24
5 QuartzCore 0x302183c1 <redacted> + 152
6 libdispatch.dylib 0x3864c0af <redacted> + 22
7 libdispatch.dylib 0x3864e9a9 _dispatch_main_queue_callback_4CF + 268
8 CoreFoundation 0x2ddd15b1 <redacted> + 8
9 CoreFoundation 0x2ddcfe7d <redacted> + 1308
10 CoreFoundation 0x2dd3a471 CFRunLoopRunSpecific + 524
11 CoreFoundation 0x2dd3a253 CFRunLoopRunInMode + 106
12 GraphicsServices 0x32a6e2eb GSEventRunModal + 138
13 UIKit 0x305ef845 UIApplicationMain + 1136
14 spIM 0x001398cd main + 116
15 libdyld.dylib 0x38660ab7 <redacted> + 2
)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView animationDidStart:]: unrecognized selector sent to instance 0x1a3e5260'
*** First throw call stack:
(0x2de06e83 0x381676c7 0x2de0a7b7 0x2de090af 0x2dd57dc8 0x302183c1 0x3864c0af 0x3864e9a9 0x2ddd15b1 0x2ddcfe7d 0x2dd3a471 0x2dd3a253 0x32a6e2eb 0x305ef845 0x1398cd 0x38660ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
and
Stack Trace: (
0 CoreFoundation 0x2de06e9b <redacted> + 154
1 libobjc.A.dylib 0x381676c7 objc_exception_throw + 38
2 CoreFoundation 0x2de0a7b7 <redacted> + 202
3 CoreFoundation 0x2de090af <redacted> + 706
4 CoreFoundation 0x2dd57dc8 _CF_forwarding_prep_0 + 24
5 QuartzCore 0x302183c1 <redacted> + 152
6 libdispatch.dylib 0x3864c0af <redacted> + 22
7 libdispatch.dylib 0x3864e9a9 _dispatch_main_queue_callback_4CF + 268
8 CoreFoundation 0x2ddd15b1 <redacted> + 8
9 CoreFoundation 0x2ddcfe7d <redacted> + 1308
10 CoreFoundation 0x2dd3a471 CFRunLoopRunSpecific + 524
11 CoreFoundation 0x2dd3a253 CFRunLoopRunInMode + 106
12 GraphicsServices 0x32a6e2eb GSEventRunModal + 138
13 UIKit 0x305ef845 UIApplicationMain + 1136
14 spIM 0x001378cd main + 116
15 libdyld.dylib 0x38660ab7 <redacted> + 2
)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIScrollViewDelayedTouchesBeganGestureRecognizer animationDidStart:]: unrecognized selector sent to instance 0x1abc2c80'
*** First throw call stack:
(0x2de06e83 0x381676c7 0x2de0a7b7 0x2de090af 0x2dd57dc8 0x302183c1 0x3864c0af 0x3864e9a9 0x2ddd15b1 0x2ddcfe7d 0x2dd3a471 0x2dd3a253 0x32a6e2eb 0x305ef845 0x1378cd 0x38660ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException