Crashed: com.apple.NSURLSession-work
0 libobjc.A.dylib 0x1b1046dd0 objc_release + 16
1 libobjc.A.dylib 0x1b1026cd8 object_cxxDestructFromClass(objc_object*, objc_class*) + 112
2 libobjc.A.dylib 0x1b103e148 objc_destructInstance + 80
3 libobjc.A.dylib 0x1b10455c4 _objc_rootDealloc + 80
4 CFNetwork 0x19cb967e4 CFNetServiceBrowserSearchForServices + 14800
5 CFNetwork 0x19cba3df8 CFNetServiceBrowserSearchForServices + 69604
6 libdispatch.dylib 0x19c16da84 _dispatch_call_block_and_release + 32
7 libdispatch.dylib 0x19c16f81c _dispatch_client_callout + 20
8 libdispatch.dylib 0x19c177004 _dispatch_lane_serial_drain + 620
9 libdispatch.dylib 0x19c177c34 _dispatch_lane_invoke + 456
10 libdispatch.dylib 0x19c1824bc _dispatch_workloop_worker_thread + 764
11 libsystem_pthread.dylib 0x1e81fe7a4 _pthread_wqthread + 276
12 libsystem_pthread.dylib 0x1e820574c start_wqthread + 8
Replies
CFNetwork crashes in ios 14.6
Please post a full Apple crash report. Use the text attachment feature (click the paperclip icon and then choose Add File) to avoid clogging up the timeline.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Your crash report has this crashing thread backtrace:
Thread 8 name:
Thread 8 Crashed:
0 … objc_release + 16 (objc-runtime-new.h:1589)
1 … object_cxxDestructFromClass(objc_object*, objc_class*) + 112 (objc-class.mm:455)
2 … objc_destructInstance + 80 (objc-class.mm:469)
3 … _objc_rootDealloc + 80 (objc-runtime-new.mm:8162)
4 … -[NSURLSession finalizeDelegateWithError:] + 368 (Session.mm:1671)
5 … __56-[__NSURLSessionLocal _onqueue_invokeInvalidateCallback]_block_invoke + 40 (LocalSession.mm:787)
6 … _dispatch_call_block_and_release + 32 (init.c:1466)
7 … _dispatch_client_callout + 20 (object.m:559)
8 … _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
9 … _dispatch_lane_invoke + 456 (queue.c:3862)
10 … _dispatch_workloop_worker_thread + 764 (queue.c:6589)
11 … 0x1e3f5f000 + 14244
12 … 0x1e3f5f000 + 42828
which doesn’t match up with the backtrace in your original post. What makes you think that these are related?
If you’ve matched these up based on frames 3 through 0 then that suggests you have memory management problems, that is, you have separate subsystems within your app (NSURLSession and CFNetService) that are crashing when releasing an object. In that case I recommend that you apply the standard memory debugging tools, and especially Zombies, to see if they make the problem more reproducible.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"