NSBundleResourceRequest could not connect to its helper daemon

Hi,

We started seeing application getting crashed when we are calling conditionallyBeginAccessingResources API of NSBundleResourceRequest

https://developer.apple.com/documentation/foundation/nsbundleresourcerequest/1614834-conditionallybeginaccessingresou

Is this known IOS API issue?

Crash log
Code Block
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x189cb186c __exceptionPreprocess
1 libobjc.A.dylib 0x19ecccc50 objc_exception_throw
2 Foundation 0x18b032fa0 _setupConnection
3 libdispatch.dylib 0x1898a5db0 _dispatch_client_callout
4 libdispatch.dylib 0x1898a75c8 _dispatch_once_callout
5 Foundation 0x18b032cb4 +[NSBundleResourceRequest _connection]
6 Foundation 0x18b031b50 -[_NSBundleODRDataForApplications initWithBundle:]
7 Foundation 0x18b031a70 +[_NSBundleODRDataForApplications dataForBundle:createIfRequired:]
8 Foundation 0x18b0346a8 -[NSBundleResourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:]
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1b7be22d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7be1660 mach_msg + 76
2 CoreFoundation 0x189c2cc30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x189c26c14 __CFRunLoopRun + 1216
4 CoreFoundation 0x189c2621c CFRunLoopRunSpecific + 600
5 Foundation 0x18aed5df0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x18aed5cbc -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x18c71ac48 -[UIEventFetcher threadMain] + 516
8 Foundation 0x18b047a34 __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x1d575fcb0 _pthread_start + 320
10 libsystem_pthread.dylib 0x1d5768778 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1b7be22d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7be1660 mach_msg + 76
2 MyFitnessPal 0x1054f948c FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194)
3 libsystem_pthread.dylib 0x1d575fcb0 _pthread_start + 320
4 libsystem_pthread.dylib 0x1d5768778 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x1b7c07184 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1d5761860 _pthread_wqthread + 352
2 libsystem_pthread.dylib 0x1d576876c start_wqthread + 8
JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x1b7c061ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1d5763468 _pthread_cond_wait + 1192
2 libc++.1.dylib 0x19ed6d3c4 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 JavaScriptCore 0x19400cd00 bmalloc::Scavenger::threadRunLoop() + 552
4 JavaScriptCore 0x19400c7b4 bmalloc::Scavenger::Scavenger(std::__1::scoped_lock<bmalloc::Mutex> const&) + 14
5 JavaScriptCore 0x19400dccc std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer(std::__1::__thread_struct*) + 46
6 libsystem_pthread.dylib 0x1d575fcb0 _pthread_start + 320
7 libsystem_pthread.dylib 0x1d5768778 thread_start + 8
AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x1b7be22d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7be1660 mach_msg + 76
2 CoreFoundation 0x189c2cc30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x189c26c14 __CFRunLoopRun + 1216
4 CoreFoundation 0x189c2621c CFRunLoopRunSpecific + 600
5 AudioSession 0x19176f0c4 GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x19177125c CAPThread::Entry(CAPThread*) + 92
7 libsystem_pthread.dylib 0x1d575fcb0 _pthread_start + 320
8 libsystem_pthread.dylib 0x1d5768778 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1b7be22d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7be1660 mach_msg + 76
2 CoreFoundation 0x189c2cc30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x189c26c14 __CFRunLoopRun + 1216
4 CoreFoundation 0x189c2621c CFRunLoopRunSpecific + 600
5 CFNetwork 0x18a4fc1c0 _CFURLStorageSessionCopyCache + 64452
6 Foundation 0x18b047a34 __NSThread__start__ + 864
7 libsystem_pthread.dylib 0x1d575fcb0 _pthread_start + 320
8 libsystem_pthread.dylib 0x1d5768778 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x1b7c07184 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1d5761860 _pthread_wqthread + 352
2 libsystem_pthread.dylib 0x1d576876c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1b7c07184 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1d5761860 _pthread_wqthread + 352
2 libsystem_pthread.dylib 0x1d576876c start_wqthread + 8


Please post the entire crash report generated by Apple so we can see all of the additional information contained in it beyond the stack traces.
Here is the production crash log from firebase.



The best course of action here is to use Feedback Assistant to file a bug report. Please include any crash reports you received from the App Store through Xcode, rather than the crash reports from any third-party services. Please post the FB number here once you've done that.
Here is the FB number: FB9020726
Would like to know if we have any suggestions to suppress the crash..
There isn't any code level workaround you can apply here, as there was a problem with the daemon supporting on-demand resources -- it's out of your process. This is why I asked for the bug report, which we're looking into. Thank you for taking the time to file it.
NSBundleResourceRequest could not connect to its helper daemon
 
 
Q