Hi
Getting a crash mainly on iOS 16 and later with the Apple network thread. From our logs seems like in many locations in the app. Anyone any advice on how to debug it.
This crash hasn't happened before ios16 in our app
This problem does not occur to all users.
I have tried several methods (such as using different versions of xcode build App), but still not solved...
Apple crash log below:
Crashed: com.apple.root.default-qos.overcommit
0 libxpc.dylib 0x16020 _xpc_dictionary_insert + 96
1 Network 0x908504 nw_path_snapshot_agents + 292
2 Network 0x907960 nw_path_snapshot_path + 192
3 Network 0x90711c nw_path_evaluator_evaluate + 3428
4 Network 0x905c48 nw_path_create_evaluator_for_endpoint + 104
5 Network 0x74af64 nw_nat64_v4_address_requires_synthesis + 252
6 libsystem_info.dylib 0x48e8 si_addrinfo + 2348
7 libsystem_info.dylib 0x140d4 __si_async_call_block_invoke + 100
8 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
9 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
10 libdispatch.dylib 0x15b8c _dispatch_root_queue_drain + 684
11 libdispatch.dylib 0x16284 _dispatch_worker_thread2 + 164
12 libsystem_pthread.dylib 0xdbc _pthread_wqthread + 228
13 libsystem_pthread.dylib 0xb98 start_wqthread + 8
here is many apple crash report:
In addition, we found that the same stack crashed different threads:
已崩溃:com.apple.network.connections EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000036
0 libxpc.dylib 0x15bfc _xpc_dictionary_insert + 96
1 libxpc.dylib 0x177a8 _xpc_dictionary_copy_apply + 76
2 libxpc.dylib 0x15248 _xpc_dictionary_apply_node_f + 156
3 libxpc.dylib 0x144c4 _xpc_dictionary_copy + 88
4 Network 0x27e174 -[NWConcrete_nw_protocol_options initWithOptions:] + 184
5 Network 0x323240 __nw_protocol_stack_copy_block_invoke_2 + 64
6 Network 0x7065c4 nw_array_apply + 124
7 Network 0x322dcc nw_protocol_stack_copy + 308
8 Network 0x32a310 -[NWConcrete_nw_parameters initWithParameters:stripConnected:shallowCopy:] + 592
9 Network 0x47993c nw_endpoint_resolver_create_child_parameters + 116
10 Network 0x4784e8 nw_endpoint_resolver_update + 5920
11 Network 0x481f68 __52-[NWConcrete_nw_endpoint_resolver startWithHandler:]_block_invoke_2 + 84
12 Network 0x144e08 __nw_resolver_update_client_block_invoke + 88
13 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
14 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
15 libdispatch.dylib 0xd620 _dispatch_workloop_invoke + 2076
16 libdispatch.dylib 0x16e10 _dispatch_workloop_worker_thread + 652
17 libsystem_pthread.dylib 0xdf8 _pthread_wqthread + 288
18 libsystem_pthread.dylib 0xb98 start_wqthread + 8
已崩溃:com.apple.CFNetwork.Connection EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000036
0 libxpc.dylib 0x15bfc _xpc_dictionary_insert + 96
1 libxpc.dylib 0x177a8 _xpc_dictionary_copy_apply + 76
2 libxpc.dylib 0x15248 _xpc_dictionary_apply_node_f + 156
3 libxpc.dylib 0x144c4 _xpc_dictionary_copy + 88
4 Network 0x27e174 -[NWConcrete_nw_protocol_options initWithOptions:] + 184
5 Network 0x323240 __nw_protocol_stack_copy_block_invoke_2 + 64
6 Network 0x7065c4 nw_array_apply + 124
7 Network 0x322dcc nw_protocol_stack_copy + 308
8 Network 0x32a310 -[NWConcrete_nw_parameters initWithParameters:stripConnected:shallowCopy:] + 592
9 Network 0x3e2e00 nw_connection_create_with_id + 128
10 Network 0x3d4df4 nw_connection_create + 96
11 CFNetwork 0xffadc CFURLDownloadCancel + 74236
12 CFNetwork 0x17fd4 CFURLRequestSetURL + 9928
13 CFNetwork 0x10f2c CFURLCacheSetMemoryCapacity + 10964
14 CFNetwork 0xf7a8 CFURLCacheSetMemoryCapacity + 4944
15 CFNetwork 0x2bf48 CFURLRequestSetHTTPRequestMethod + 18576
16 CFNetwork 0x16ef34 _CFNetworkErrorGetLocalizedDescription + 336932
17 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
18 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
19 libdispatch.dylib 0xb694 _dispatch_lane_serial_drain + 672
20 libdispatch.dylib 0xc214 _dispatch_lane_invoke + 436
21 libdispatch.dylib 0xd4f8 _dispatch_workloop_invoke + 1780
22 libdispatch.dylib 0x16e10 _dispatch_workloop_worker_thread + 652
23 libsystem_pthread.dylib 0xdf8 _pthread_wqthread + 288
24 libsystem_pthread.dylib 0xb98 start_wqthread + 8
@ Developer Technical Support @ Apple