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
Related
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)
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).
I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of:
Selector name found in current argument registers: isEqual:
But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9.
Here is the log file for the crash:
Incident Identifier: 77FAD32D-0316-489E-B898-9C084A4FF48A
CrashReporter Key: A9FEF4E7-53F7-5FD1-AEDE-915C87BD437F
Hardware Model: MacBookPro8,1
Process: iModerate Deskto [4155]
Path: /Users/USER/Desktop/iModerate Desktop.app/Contents/MacOS/iModerate Desktop
Identifier: com.fuzzybadger.iModerate-Desktop
Version: 1.1.549
Code Type: X86-64
Parent Process: launchd [159]
Date/Time: 2014-02-28 10:40:33 +0000
OS Version: Mac OS X 10.9.0 (13A603)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_NOOP at 0x0
Crashed Thread: 10
Application Specific Information:
Selector name found in current argument registers: isEqual:
Thread 0:
0 libsystem_kernel.dylib 0x00007fff852b1716 __psynch_cvwait + 10
1 QuartzCore 0x00007fff8769cce7 _ZN2CA13DispatchGroupD2Ev + 53
2 QuartzCore 0x00007fff8768916e _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 538
3 QuartzCore 0x00007fff876888f1 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
4 QuartzCore 0x00007fff8768837c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 236
5 QuartzCore 0x00007fff87688016 _ZN2CA11Transaction6commitEv + 388
6 QuartzCore 0x00007fff876987a1 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71
7 CoreFoundation 0x00007fff8998d0a7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
8 CoreFoundation 0x00007fff8998d017 __CFRunLoopDoObservers + 391
9 CoreFoundation 0x00007fff8997e294 CFRunLoopRunSpecific + 340
10 HIToolbox 0x00007fff8fbd1f0d RunCurrentEventLoopInMode + 226
11 HIToolbox 0x00007fff8fbd1b85 ReceiveNextEventCommon + 173
12 HIToolbox 0x00007fff8fbd1abc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 AppKit 0x00007fff8ce6828e _DPSNextEvent + 1434
14 AppKit 0x00007fff8ce678db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 AppKit 0x00007fff8ce5b9cc -[NSApplication run] + 553
16 AppKit 0x00007fff8ce46803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff8ce435fd start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff852b2662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91e9f152 _dispatch_mgr_init + 0
Thread 2:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e47907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
5 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
6 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 3:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 AppKit 0x00007fff8d0081ce _NSEventThread + 144
5 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 4:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e49a7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
5 Simperium-OSX 0x000000010cb6b838 -[_SRRunLoopThread main] (SRWebSocket.m:1744)
6 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
7 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
8 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 5:
0 libsystem_kernel.dylib 0x00007fff852b19aa __select + 10
1 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
2 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 6:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 8:
0 libsystem_platform.dylib 0x00007fff8bde7cd1 OSAtomicDequeue + 17
1 libsystem_malloc.dylib 0x00007fff8f4b16c4 nano_malloc + 35
2 libsystem_malloc.dylib 0x00007fff8f4af87c malloc_zone_malloc + 71
3 CoreFoundation 0x00007fff899118df __CFBasicHashRehash + 287
4 CoreFoundation 0x00007fff89917566 __CFBasicHashAddValue + 86
5 CoreFoundation 0x00007fff89916609 CFDictionarySetValue + 217
6 libCGCMS.A.dylib 0x00007fff8b857fb8 CreateProfileSet + 104
7 libCGCMS.A.dylib 0x00007fff8b857e61 profileRef + 189
8 libCGCMS.A.dylib 0x00007fff8b858b79 create + 1205
9 libCGCMS.A.dylib 0x00007fff8b859454 get_cms_space_for_space + 140
10 libCGCMS.A.dylib 0x00007fff8b8592ca get_color_world_for_space + 166
11 libCGCMS.A.dylib 0x00007fff8b8591f0 CMSTransformCreateConverter + 63
12 CoreGraphics 0x00007fff86681ba1 CGColorTransformCacheGetConversionType + 145
13 CoreGraphics 0x00007fff86681aeb CGColorTransformConvertNeedsCMS + 113
14 CoreGraphics 0x00007fff8667f8e9 img_data_lock + 1217
15 CoreGraphics 0x00007fff8667e480 CGSImageDataLock + 149
16 libRIP.A.dylib 0x00007fff86548b3c ripc_AcquireImage + 769
17 libRIP.A.dylib 0x00007fff86547b85 ripc_DrawImage + 1025
18 CoreGraphics 0x00007fff8667e023 CGContextDrawImage + 457
19 AppKit 0x00007fff8cfd8c02 __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 835
20 AppKit 0x00007fff8cfd86a8 -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1073
21 AppKit 0x00007fff8cfd7fee __71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 896
22 AppKit 0x00007fff8cf63626 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 170
23 AppKit 0x00007fff8cfd7b6c -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1447
24 AppKit 0x00007fff8cfd7153 -[NSImage _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction:flip:hints:] + 1453
25 AppKit 0x00007fff8d01fa21 -[NSImageCell _drawImageWithFrame:inView:] + 225
26 AppKit 0x00007fff8d01f8e5 -[NSImageCell drawInteriorWithFrame:inView:] + 625
27 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
28 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
29 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
30 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
31 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
32 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
33 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
34 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
35 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
36 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
37 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
38 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
39 AppKit 0x00007fff8cfc8713 _NSBackingLayerDisplay + 235
40 AppKit 0x00007fff8cf9faab -[_NSViewBackingLayer display] + 811
41 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
42 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
43 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
44 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
45 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
46 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
47 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 Crashed:
0 libobjc.A.dylib 0x00007fff87f0e097 objc_msgSend + 23
1 CoreFoundation 0x00007fff899573d9 -[__NSDictionaryM setObject:forKey:] + 505
2 AppKit 0x00007fff8ceb032b -[NSCell _textAttributes] + 531
3 AppKit 0x00007fff8ceb00e2 -[NSCell _unformattedAttributedStringValue:] + 301
4 AppKit 0x00007fff8cfead57 -[NSButtonCell _currentTitle] + 122
5 AppKit 0x00007fff8cfea3fb -[NSButtonCell _configureAndDrawTitleWithRect:cellFrame:controlView:] + 148
6 AppKit 0x00007fff8cfd62cf -[NSButtonCell drawInteriorWithFrame:inView:] + 1965
7 AppKit 0x00007fff8cfd5ac8 -[NSButtonCell drawWithFrame:inView:] + 498
8 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
9 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
10 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
11 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
12 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
13 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
14 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
15 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
16 AppKit 0x00007fff8d01e57c -[_NSBackingLayerContents drawLayer:inContext:] + 149
17 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
18 AppKit 0x00007fff8d01e0b8 -[_NSTiledLayer drawTile:inContext:] + 654
19 AppKit 0x00007fff8d01ddbc -[_NSTiledLayerContents drawLayer:inContext:] + 172
20 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
21 AppKit 0x00007fff8d7f2565 -[NSTileLayer drawInContext:] + 169
22 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
23 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
24 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
25 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
26 AppKit 0x00007fff8d01dccf -[NSTileLayer display] + 119
27 AppKit 0x00007fff8d01a175 -[_NSTiledLayerContents update:] + 5545
28 AppKit 0x00007fff8d0188e8 -[_NSTiledLayer display] + 404
29 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
30 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
31 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
32 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
33 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
34 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
35 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 crashed with X86-64 Thread State:
rip: 0x00007fff87f0e097 rbp: 0x000000011ab59d20 rsp: 0x000000011ab59cb8 rax: 0x00007fff76b7c648
rbx: 0x0000000000000001 rcx: 0x0000000000000000 rdx: 0x00007fff76b7c648 rdi: 0x00006080006321a0
rsi: 0x00007fff8d89320c r8: 0x00007fff8d85082b r9: 0x0000000000000032 r10: 0x00007fff8d89320c
r11: 0xbadd0dacedb8bead r12: 0x0000608000232d00 r13: 0x0000000000000002 r14: 0x0000000000000003
r15: 0x0000000000000003 rflags: 0x0000000000010246 cs: 0x000000000000002b fs: 0x0000000000000000
gs: 0x000000000e5d0000
The string Selector name found in current argument registers: isEqual: in the crash report is actually coming from HockeySDK and shows the last selector name objc_msgSend() was trying to call. It is identical to OS X showing the following string in their crash reports: objc_msgSend() selector name: isEqual:.
We'll improve this message in our SDK and also see what we can do in the backend for current incoming messages.
So the crash is not caused by HockeySDK!
The reason for the crash is, that objc_msgSend (thread 10 frame 0) was trying to call isEqual on an invalid object, hence the exception type SIGSEGV (See http://en.wikipedia.org/wiki/Segmentation_fault ). This was triggered by [NSButtonCell _currentTitle] in frame 4.
So you might want to check your table views and cells memory management. Especially when you assign a title to an NSButtonCell.
Can anyone tell me if this crashing stack appears to be caused by Reachability? I am running apple's latest implementation of Reachability, downloadable at https://developer.apple.com/library/ios/samplecode/reachability/Introduction/Intro.html
I have an app where ARC is not enabled by default (it is a legacy app) but I enable it on a per-file basis. I have enabled -fobjc-arc for Reachability.m
When I look at these threads, my code is nowhere to be found. I see some activity happening because of a WebHTMLView (probably the ad network view code currently on screen; it's not mine).
On Thread 10, I see a SCNetworkReachabilityDeallocate, then a dispatch_semaphore_wait_slow, and the crash happens on Thread 14 in libdispatch.
Do you think this crash is being caused by that Reachability code, and have I erred in using -fobjc-arc with Reachability.m?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x2000000c
Triggered by Thread: 14
Thread 0:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x340822e6 GSEventRunModal + 134
7 UIKit 0x31c021e0 UIApplicationMain + 1132
8 MyApp 0x00053ad4 main (main.m:33)
9 libdyld.dylib 0x39c0bab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39caf838 kevent64 + 24
1 libdispatch.dylib 0x39bfe0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39bf863e _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x39cb0910 close + 8
1 CoreFoundation 0x2f370ef6 CFSocketInvalidate + 434
2 CFNetwork 0x2f0122a2 Schedulables::_SchedulablesInvalidateApplierFunction(void const*, void*) + 14
3 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
4 CFNetwork 0x2f011a94 SocketStream::close(void const*) + 280
5 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
6 CFNetwork 0x2f030286 HTTPReadFilter::_streamImpl_Close() + 66
7 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
8 CFNetwork 0x2f0301c6 NetConnection::shutdownConnectionStreams() + 98
9 CFNetwork 0x2f0309c8 NetConnection::closeStreamsIfPossibleOrSignalThatThatNeedsToBeDonePrettyPlease() + 56
10 CFNetwork 0x2f030d12 HTTPConnectionCacheEntry::removeUnauthConnection(NetConnection*) + 182
11 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
12 CFNetwork 0x2f075678 HTTPConnectionCacheEntry::purgeIdleConnections(double, double) + 256
13 CFNetwork 0x2f030ad4 HTTPConnectionCache::performIdleSweep() + 156
14 CFNetwork 0x2f073b42 HTTPConnectionCache::timeoutIdleCellConnections() + 18
15 CFNetwork 0x2f0b3394 ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 16
16 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
17 CFNetwork 0x2f019f10 RunloopBlockContext::perform() + 160
18 CFNetwork 0x2f019de2 MultiplexerSource::perform() + 218
19 CFNetwork 0x2f019c70 MultiplexerSource::_perform(void*) + 44
20 CoreFoundation 0x2f3e2f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x2f3e23ea __CFRunLoopDoSources0 + 202
22 CoreFoundation 0x2f3e0bda __CFRunLoopRun + 626
23 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
24 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
25 Foundation 0x2fd8664c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
26 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
27 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
28 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
29 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 3 name: WebThread
Thread 3:
0 CoreGraphics 0x2f49163c CGRectIsEmpty + 0
1 WebCore 0x37291700 -[WAKView setNeedsDisplayInRect:] + 76
2 WebKit 0x37cad22a -[WebHTMLView setNeedsDisplayInRect:] + 214
3 WebCore 0x372915cc WebCore::ScrollView::platformRepaintContentRectangle(WebCore::IntRect const&, bool) + 148
4 WebCore 0x37291412 WebCore::ScrollView::repaintContentRectangle(WebCore::IntRect const&, bool) + 98
5 WebCore 0x37291272 WebCore::FrameView::doDeferredRepaints() + 90
6 WebCore 0x372dc96c WebCore::FrameView::layout(bool) + 1748
7 WebCore 0x3721fb94 WebCore::ThreadTimers::sharedTimerFiredInternal() + 132
8 WebCore 0x3721fae6 WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
9 CoreFoundation 0x2f3e2e84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
10 CoreFoundation 0x2f3e2a9e __CFRunLoopDoTimer + 790
11 CoreFoundation 0x2f3e0e26 __CFRunLoopRun + 1214
12 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
13 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
14 WebCore 0x372ae7d8 RunWebThread(void*) + 416
15 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
16 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
17 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2e3295ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2e31dbf4 CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3036f408 JSC::BlockAllocator::blockFreeingThreadMain() + 204
4 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
5 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
6 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
7 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3050daf2 JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x3050db4c JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
8 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x39cc2440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2f3e645e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
4 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 8 name: AFNetworking
Thread 8:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 Foundation 0x2fd39822 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2fd8a664 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x002c33d0 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:184)
9 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
12 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 9 name: WebCore: CFNetwork Loader
Thread 9:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 WebCore 0x372f7872 WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x39cafad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x39bfcdec _dispatch_semaphore_wait_slow + 172
2 libxpc.dylib 0x39d370d6 xpc_connection_send_message_with_reply_sync + 150
3 SystemConfiguration 0x31b77362 _reach_server_target_remove + 90
4 SystemConfiguration 0x31b772d2 __SCNetworkReachabilityServer_targetRemove + 38
5 SystemConfiguration 0x31b5e318 __SCNetworkReachabilityDeallocate + 92
6 CoreFoundation 0x2f347efc CFRelease + 464
7 libdispatch.dylib 0x39bfc7e0 _dispatch_root_queue_drain + 220
8 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
9 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
10 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f38f1a6 CFRunLoopRun + 94
6 CoreMotion 0x2fa03394 ___lldb_unnamed_function1407$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
9 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 14 Crashed:
0 libobjc.A.dylib 0x3970db66 objc_msgSend + 6
1 CoreFoundation 0x2f347f58 CFRelease + 556
2 libdispatch.dylib 0x39bf7100 _dispatch_call_block_and_release + 8
3 libdispatch.dylib 0x39bfbe72 _dispatch_queue_drain + 370
4 libdispatch.dylib 0x39bf8f96 _dispatch_queue_invoke + 38
5 libdispatch.dylib 0x39bfc74e _dispatch_root_queue_drain + 74
6 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
7 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
8 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
This crash could be caused by just about any piece of code, including your own.
The stack trace indicates that a block has previously retained a pointer that is now being released with CFRelease. If the pointer was not properly retained in the first place - or was in the process of being dealloc-ed when it was originally retained, you could see this stack trace.
If you are accessing the pointer on one thread, but releasing it another, then you may well have the kind of race condition that can cause this kind of crash.
Apple has rejected my app because it crashes and I can't find a way to know where the problem is. They say that the crash was on an iPhone 4 with iOS6.
I have built the archive with Xcode 4.4 and iOS 5.1. I have already upgrade to Xcode 4.5 and iOS 6. As you will see, Xcode doesn't identify the symbols on every line of the stack trace; in particular, the system function names are missing, maybe due to the update and not the same version on my computer; I don't know.
I'm just unable to reproduce this crash, I don't have an iPhone 4, just a 3GS and have no bugs.
Here is the log:
Incident Identifier: 23FCC6BC-FB56-4681-8254-E72A01891A80
CrashReporter Key: 1378004e4baa9919d5598a6dec7f08d687552155
Hardware Model: xxx
Process: Myapp [598]
Path: /var/mobile/Applications/31F1CD56-357C-4969-8DBA-F19E7D2AF638/Myapp.app/Myapp
Identifier: Myapp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-26 14:40:48.221 -0700
OS Version: iOS 6.0 (10A403)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3403129e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3380397a objc_exception_throw + 26
2 CoreFoundation 0x34031158 +[NSException raise:format:arguments:] + 96
3 Foundation 0x38ff62aa 0x38f86000 + 459434
4 UIKit 0x36c55776 0x36b66000 + 980854
5 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
6 CoreFoundation 0x340349c0 0x33f6f000 + 809408
7 CoreFoundation 0x33f8bfe6 0x33f6f000 + 118758
8 UIKit 0x36d7372e -[_UIDelayedPresentationContext finishDelayedPresentation:] + 182
9 GameKit 0x32c1dd28 __41-[GKRemoteViewController setupRemoteView]_block_invoke_0327 + 20
10 libdispatch.dylib 0x3840a11a _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x384094b2 _dispatch_client_callout + 18
12 libdispatch.dylib 0x3840adc6 0x38408000 + 11718
13 CoreFoundation 0x34004f36 __CFRunLoopRun + 1286
14 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
15 CoreFoundation 0x33f77d44 0x33f6f000 + 36164
16 GraphicsServices 0x34ce02e6 0x34cdb000 + 21222
17 UIKit 0x36bbd2fc UIApplicationMain + 1116
18 Crossibus 0x0003cc96 main (main.m:16)
19 Crossibus 0x0003cc4c start + 36
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32d00350 __pthread_kill + 8
1 libsystem_c.dylib 0x380db11e pthread_kill + 54
2 libsystem_c.dylib 0x3811796e abort + 90
3 libc++abi.dylib 0x38c0dd4a abort_message + 70
4 libc++abi.dylib 0x38c0aff4 default_terminate() + 20
5 libobjc.A.dylib 0x33803a74 _objc_terminate() + 144
6 libc++abi.dylib 0x38c0b078 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x38c0b110 std::terminate() + 16
8 libc++abi.dylib 0x38c0c50e __cxa_throw + 118
9 libobjc.A.dylib 0x338039ba objc_exception_throw + 90
10 CoreFoundation 0x34031158 +[NSException raise:format:arguments:] + 96
11 Foundation 0x38ff62aa -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 86
12 UIKit 0x36c55776 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 166
13 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
14 CoreFoundation 0x340349c0 __invoking___ + 64
15 CoreFoundation 0x33f8bfe6 -[NSInvocation invoke] + 282
16 UIKit 0x36d7372e -[_UIDelayedPresentationContext finishDelayedPresentation:] + 182
17 GameKit 0x32c1dd28 __41-[GKRemoteViewController setupRemoteView]_block_invoke_0327 + 20
18 libdispatch.dylib 0x3840a11c _dispatch_call_block_and_release + 8
19 libdispatch.dylib 0x384094b4 _dispatch_client_callout + 20
20 libdispatch.dylib 0x3840adc6 _dispatch_main_queue_callback_4CF$VARIANT$up + 222
21 CoreFoundation 0x34004f36 __CFRunLoopRun + 1286
22 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x33f77d44 CFRunLoopRunInMode + 100
24 GraphicsServices 0x34ce02e6 GSEventRunModal + 70
25 UIKit 0x36bbd2fc UIApplicationMain + 1116
26 Crossibus 0x0003cc96 main (main.m:16)
27 Crossibus 0x0003cc4c start + 36
Thread 1 name: Dispatch queue: com.apple.root.default-priority
Thread 1:
0 libsystem_kernel.dylib 0x32d00d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x380b25e8 pthread_workqueue_addthreads_np + 44
2 libdispatch.dylib 0x38417eb0 _dispatch_queue_wakeup_global_slow + 72
3 libdispatch.dylib 0x384097da _dispatch_wakeup$VARIANT$up + 106
4 libdispatch.dylib 0x38417a24 _dispatch_queue_push_list_slow2 + 16
5 libxpc.dylib 0x3742a820 _xpc_connection_mach_event + 828
6 libdispatch.dylib 0x38419df4 _dispatch_mach_msg_invoke$VARIANT$up + 120
7 libdispatch.dylib 0x3840995a _dispatch_queue_drain$VARIANT$up + 82
8 libdispatch.dylib 0x3841a06a _dispatch_mach_invoke$VARIANT$up + 150
9 libdispatch.dylib 0x38418212 _dispatch_root_queue_drain + 190
10 libdispatch.dylib 0x384183b4 _dispatch_worker_thread2 + 80
11 libsystem_c.dylib 0x380b2a0e _pthread_wqthread + 358
12 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x32cf0648 kevent64 + 24
1 libdispatch.dylib 0x384194ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3840bdf4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 3 name: Dispatch queue: com.apple.uikit._UIViewServiceXPCProxy 0x1ededbb0 target:<_UIQueueRedirectingProxy: 0x1ed77750; target: <_UIViewServiceFencingControlProxy: 0x1ed82fc0; target: <_UIViewServiceImplicitAnimationDecodingProxy: 0x1ed678e0; target: <_UIObjectArgumentReplacingProxy: 0x1ed6ef60; target: <_UIStrongToWeakAdapter: 0x1edae420; target: <GKRemoteAuthenticateViewController: 0x1ed6c490>>>>; suspension count: 0>; queue: 0x3bebd580 (com.apple.main-thread)>
Thread 3:
0 libobjc.A.dylib 0x33800f2a objc_release + 10
1 XPCObjects 0x37d9fc66 __destroy_helper_block_133 + 18
2 libsystem_blocks.dylib 0x3427bab0 _Block_release + 220
3 libxpc.dylib 0x374256c4 _xpc_connection_call_reply + 28
4 libdispatch.dylib 0x38409996 _dispatch_queue_drain$VARIANT$up + 142
5 libdispatch.dylib 0x38409890 _dispatch_queue_invoke$VARIANT$up + 32
6 libdispatch.dylib 0x38418212 _dispatch_root_queue_drain + 190
7 libdispatch.dylib 0x384183b4 _dispatch_worker_thread2 + 80
8 libsystem_c.dylib 0x380b2a0e _pthread_wqthread + 358
9 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x32cefeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x32cf0048 mach_msg + 36
2 CoreFoundation 0x34006040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x34004d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33f77d44 CFRunLoopRunInMode + 100
6 WebCore 0x34d5ba70 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x380bd30e _pthread_start + 306
8 libsystem_c.dylib 0x380bd1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x32d00d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x380b2cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x380b2a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3be7e534
r4: 0x00000006 r5: 0x3be7eb88 r6: 0x1ed61194 r7: 0x2fdc4a14
r8: 0x1ed61170 r9: 0x00000300 r10: 0x1ed65e20 r11: 0x36ffaa2f
ip: 0x00000148 sp: 0x2fdc4a08 lr: 0x380db123 pc: 0x32d00350
cpsr: 0x00070010
Can you provide any insight into what's wrong or how to determine what's wrong?
Edit:
I think i have found, it was a problem with Game Center and IOS 6. The method "authenticateWithCompletionHandler" is deprecated and make it crash.
Thanks.
1) Your 3GS works fine and its running iOS 6, right?
2) You don't need to switch completely to Xcode4.5 if you don't want to for some reason, just install it side by side with Xcode4.4.1 and just use it to test and run your app in a Retina iPhone simulator.
3) If you still cannot get the crash, then I am going to make a wild guess that this is your problem:
5 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
Is the presentedViewController retained in a strong variable (if using ARC), or in a retained property in the presenting ViewController? If not make it so, but then, no way to know for sure if it fixes the problem.
A good reason to build up points here is to be able to add a bounty for an answer - I believe 50 points is the min. Assuming you know Android well (given last name, isn't going to make you friends here in iOS land), answer a few question now and get some points.
With a bounty, you maybe can get someone to test your app on their phone by building an Ad Hoc version of the app (but Provisioning H*ll awaits :-( )