_xpc_api_misuse

Originator:an00na
Number:rdar://22860899 Date Originated:25-Sep-2015 02:40 PM
Status:Duplicate of 21832853 (Open) Resolved:
Product:iOS SDK Product Version:9.0
Classification:Other Bug Reproducible:Sometimes
 
The top crash in my iOS 9 app is _xpc_api_misuse:

Exception Type:  SIGTRAP
Exception Codes: #0 at 0x199f2e88c
Crashed Thread:  9

Thread 9 Crashed:
0   libxpc.dylib                         0x0000000199f2e88c _xpc_api_misuse + 52
1   libxpc.dylib                         0x0000000199f19b38 _xpc_connection_pack_message + 220
2   libxpc.dylib                         0x0000000199f19a1c xpc_connection_send_message + 76
3   libsystem_network.dylib              0x0000000199e7cbe0 net_helper_send + 252
4   libsystem_network.dylib              0x0000000199e77c94 tcp_connection_create_waiting_reply + 80
5   libsystem_network.dylib              0x0000000199e7ae6c __tcp_connection_allocate_block_invoke + 220
6   libsystem_network.dylib              0x0000000199e8024c __net_helper_endpoint_deliver_block_invoke_2 + 40
7   libdispatch.dylib                    0x0000000199cd57b0 _dispatch_call_block_and_release + 20
8   libdispatch.dylib                    0x0000000199cd5770 _dispatch_client_callout + 12
9   libdispatch.dylib                    0x0000000199ce175c _dispatch_queue_drain + 860
10  libdispatch.dylib                    0x0000000199cd9274 _dispatch_queue_invoke + 460
11  libdispatch.dylib                    0x0000000199ce362c _dispatch_root_queue_drain + 724
12  libdispatch.dylib                    0x0000000199ce334c _dispatch_worker_thread3 + 108
13  libsystem_pthread.dylib              0x0000000199ee9478 _pthread_wqthread + 1088
14  libsystem_pthread.dylib              0x0000000199ee9028 start_wqthread + 0

It seems to have nothing to do with my code. I can only guess maybe it is caused by SFSafariViewController since it is xpc?

Comments

We have this exact same crash. It's also the top crash for us. However, the app was built using XCode 6 before iOS9 came out and doesn't use SFSafariViewController so that's probably not the cause

Here's another one like it, fresh from Crashlytics

Thread : Crashed: XPC API Misuse: Attempt to send a message expecting a reply to  (com.apple.networking.connection.0x15428a760)AA
0  libxpc.dylib                   0x0000000197e4e88c _xpc_api_misuse + 52
1  libxpc.dylib                   0x0000000197e4e88c _xpc_api_misuse + 52
2  libxpc.dylib                   0x0000000197e39b38 _xpc_serializer_create + 222
3  libxpc.dylib                   0x0000000197e39a1c xpc_connection_send_message + 80
4  libsystem_network.dylib        0x0000000197d9cbe0 net_helper_send + 256
5  libsystem_network.dylib        0x0000000197d97c94 tcp_connection_create_waiting_reply + 84
6  libsystem_network.dylib        0x0000000197d9ae6c __tcp_connection_allocate_block_invoke + 224
7  libsystem_network.dylib        0x0000000197da024c __net_helper_endpoint_deliver_block_invoke_2 + 44
8  libdispatch.dylib              0x0000000197bf57b0 _dispatch_call_block_and_release + 24
9  libdispatch.dylib              0x0000000197bf5770 _dispatch_client_callout + 16
10 libdispatch.dylib              0x0000000197c0175c _dispatch_queue_drain + 864
11 libdispatch.dylib              0x0000000197bf9274 _dispatch_queue_invoke + 464
12 libdispatch.dylib              0x0000000197c0362c _dispatch_root_queue_drain + 728
13 libdispatch.dylib              0x0000000197c0334c _dispatch_worker_thread3 + 112
14 libsystem_pthread.dylib        0x0000000197e09478 _pthread_wqthread + 1092
15 libsystem_pthread.dylib        0x0000000197e09028 start_wqthread + 4

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!