Application crashes after TCCAccessRequest

We are receiving crash reports on iOS 14.x devices. The problem is that we can't determine the cause of crash and therefore how to fix it.

There is no CRASHING_DUE_TO_PRIVACY_VIOLATION signal, but I suggest it is still privacy-related issue.

Code Block
#13. Crashed: Thread
SIGABRT 0x0000000000000000
0 libsystem_kernel.dylib 0x1b277cb84 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x1b2781a30 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x1b2781a64 __darwin_check_fd_set_overflow.cold.1 + 0
3 TCC 0x1c852f01c TCCAccessRequest + 0
4 TCC 0x1c852fadc __TCCAccessRequest_block_invoke.218 + 0
5 TCC 0x1c85340f4 __tccd_send_message_block_invoke + 612
6 libxpc.dylib 0x1d030c17c _xpc_connection_reply_callout + 112
7 libxpc.dylib 0x1d02ffaa8 _xpc_connection_call_reply_async + 88
8 libdispatch.dylib 0x18441de38 _dispatch_client_callout3 + 20
9 libdispatch.dylib 0x184439410 _dispatch_mach_msg_async_reply_invoke + 348
10 libdispatch.dylib 0x18442f65c _dispatch_kevent_worker_thread + 1252
11 libsystem_pthread.dylib 0x1d02d984c _pthread_wqthread + 332
#6. JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x1b277e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1d02db468 _pthread_cond_wait + 1192
2 libc++.1.dylib 0x1998e5328 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 JavaScriptCore 0x18eb804dc void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 JavaScriptCore 0x18eb84ba8 bmalloc::Scavenger::threadRunLoop() + 208
5 JavaScriptCore 0x18eb847b4 bmalloc::Scavenger::Scavenger(std::__1::scoped_lock<bmalloc::Mutex> const&) + 0
6 JavaScriptCore 0x18eb85ccc std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer(std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x1d02d7cb0 _pthread_start + 320
#7. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1b275a2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b2759660 mach_msg + 76
2 CoreFoundation 0x1847a4c30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x18479ec14 __CFRunLoopRun + 1216
4 CoreFoundation 0x18479e21c CFRunLoopRunSpecific + 600
5 CFNetwork 0x1850741c0 (Missing)
6 Foundation 0x185bbfa34 __NSThread__start__ + 864
7 libsystem_pthread.dylib 0x1d02d7cb0 _pthread_start + 320
#8. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x1b275a2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b2759660 mach_msg + 76
2 CoreFoundation 0x1847a4c30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x18479ec14 __CFRunLoopRun + 1216
4 CoreFoundation 0x18479e21c CFRunLoopRunSpecific + 600
5 AudioSession 0x18c2e70c4 GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x18c2e925c CAPThread::Entry(CAPThread*) + 92
7 libsystem_pthread.dylib 0x1d02d7cb0 _pthread_start + 320
#9. com.apple.coreaudio.AQClient
0 libsystem_kernel.dylib 0x1b275a2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b2759660 mach_msg + 76
2 CoreFoundation 0x1847a4c30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x18479ec14 __CFRunLoopRun + 1216
4 CoreFoundation 0x18479e21c CFRunLoopRunSpecific + 600
5 AudioToolbox 0x18d9429fc GenericRunLoopThread::Entry(void*) + 164
6 libAudioToolboxUtility.dylib 0x199fd5144 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x1d02d7cb0 _pthread_start + 320
#10. Thread
0 libsystem_kernel.dylib 0x1b277cbb0 __accept + 8
1 AppIOS 0x102f8b774 __async_wait_block_invoke + 112
2 AppIOS 0x102f77a4c __28-[YMMAsyncExecutor execute:]_block_invoke + 36
3 libdispatch.dylib 0x18441c24c _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x18441ddb0 _dispatch_client_callout + 20
5 libdispatch.dylib 0x18442510c _dispatch_lane_serial_drain + 580
6 libdispatch.dylib 0x184425c5c _dispatch_lane_invoke + 408
7 libdispatch.dylib 0x18442fd78 _dispatch_workloop_worker_thread + 708
8 libsystem_pthread.dylib 0x1d02d9814 _pthread_wqthread + 276
#11. Thread
0 libsystem_pthread.dylib 0x1d02e0764 start_wqthread + 0
#12. Thread
0 libsystem_pthread.dylib 0x1d02e0764 start_wqthread + 0
#14. Thread
0 libsystem_kernel.dylib 0x1b275a2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b2759660 mach_msg + 76
2 CoreFoundation 0x1847a4c30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x18479ec14 __CFRunLoopRun + 1216
4 CoreFoundation 0x18479e21c CFRunLoopRunSpecific + 600
5 AVFCore 0x18c3bcdc8 -[AVRunLoopCondition _waitInMode:untilDate:] + 404
6 AVFCapture 0x19ebc1864 -[AVCaptureSession _buildAndRunGraph] + 1144
7 AVFCapture 0x19ebbaec0 -[AVCaptureSession _commitConfiguration] + 96
8 CameraUI 0x1af00b630 -[CAMCaptureEngine _commitSessionConfigurationIfNecessaryWithLogReason:] + 316
9 CameraUI 0x1aee6f6c8 __35-[CAMCaptureEngine enqueueCommand:]_block_invoke + 176
10 AssetsLibraryServices 0x1965b32b0 __pl_dispatch_async_block_invoke + 44
11 libdispatch.dylib 0x18441c24c _dispatch_call_block_and_release + 32
12 libdispatch.dylib 0x18441ddb0 _dispatch_client_callout + 20
13 libdispatch.dylib 0x18442510c _dispatch_lane_serial_drain + 580
14 libdispatch.dylib 0x184425c5c _dispatch_lane_invoke + 408
15 libdispatch.dylib 0x18442fd78 _dispatch_workloop_worker_thread + 708
16 libsystem_pthread.dylib 0x1d02d9814 _pthread_wqthread + 276
#15. Thread
0 libsystem_pthread.dylib 0x1d02e0764 start_wqthread + 0


Does anybody have a clue what the problem is and how to debug and fix it?

We are receiving crash reports on iOS 14.x devices.

Can you post a full crash report for this? Use the text attachment feature (the paperclip icon) to avoid clogging up the timeline.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I’m sorry, I should have been more specific. I’m looking for an Apple crash report for this problem. Third-party crash reports don’t help me, alas (1).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

(1) For more background as to why, see my Implementing Your Own Crash Reporter post.
Got some more info. Apple crash report is more explanatory.
It had the termination reason, which our third-party reporter lacked.


Thank you for replies

It had the termination reason, which our third-party reporter lacked.

*chuckle*

Well, that was easy (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Application crashes after TCCAccessRequest
 
 
Q