My app crashed a lot on iOS14 since I've added PhotoLibrary Authorization.
The firebase stack below:
And another suspicious thread stack below:
It looks like a deadlock issue.
Anybody any clues?
Thanks a lot!
The firebase stack below:
Code Block 已崩溃:NSPersistentStoreCoordinator 0x28031ddc0 EXC_BREAKPOINT 0x00000001976f9cd0 0 libdispatch.dylib __DISPATCH_WAIT_FOR_QUEUE__ + 492 1 libdispatch.dylib _dispatch_sync_f_slow + 148 arrow_right 2 AssetsLibraryServices -[PLAssetsdClient libraryClient] + 168 3 PhotoLibraryServices -[PLXPCPhotoLibraryStoreEndpointFactory newEndpoint] + 32 4 CoreData -[NSXPCStoreConnection createConnectionWithOptions:] + 572 5 CoreData -[NSXPCStoreConnection initForStore:] + 100 6 CoreData -[NSXPCStoreConnectionManager initForStore:] + 216 7 CoreData -[NSXPCStore initWithPersistentStoreCoordinator:configurationName:URL:options:] + 1068 8 CoreData __91-[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]_block_invoke + 1452 9 CoreData gutsOfBlockToNSPersistentStoreCoordinatorPerform + 208 10 libdispatch.dylib _dispatch_client_callout + 20 11 libdispatch.dylib _dispatch_lane_barrier_sync_invoke_and_complete + 60 12 CoreData _perform + 184 13 CoreData -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 484 14 PhotoLibraryServices -[PLPersistentContainer _configureXPCPersistentStoreCoordinator:error:] + 672 15 PhotoLibraryServices -[PLPersistentContainer newSharedPersistentStoreCoordinator] + 172 16 PhotoLibraryServices __57-[PLPersistentContainer sharedPersistentStoreCoordinator]_block_invoke + 60 17 AssetsLibraryServices PLResultWithUnfairLock + 60 18 PhotoLibraryServices -[PLPersistentContainer sharedPersistentStoreCoordinator] + 104 19 PhotoLibraryServices -[PLPhotoLibraryBundle newChangeHandlingContainer] + 116 20 PhotoLibraryServices __60-[PLPhotoLibraryBundle initWithLibraryURL:bundleController:]_block_invoke.66 + 48 21 AssetsLibraryServices __27-[PLLazyObject objectValue]_block_invoke + 52 22 AssetsLibraryServices PLResultWithUnfairLock + 60 23 AssetsLibraryServices -[PLLazyObject objectValue] + 104 24 PhotoLibraryServices -[PLPhotoLibraryBundle distributeChangesSinceLastCheckpoint] + 28 25 Photos __93-[PHPhotoLibrary _commitTransactionOnExecutionContext:withInstrumentation:completionHandler:]_block_invoke + 224 26 Photos __94-[PHPhotoLibrary _sendChangesRequest:onExecutionContext:withInstrumentation:retryCount:reply:]_block_invoke + 324 27 Photos __83-[PHPhotoLibrary _sendChangesRequest:onExecutionContext:withInstrumentation:reply:]_block_invoke + 92 28 AssetsLibraryServices __70+[PLAssetsdPhotoKitClient sendChangesRequest:usingProxyFactory:reply:]_block_invoke + 120 29 AssetsLibraryServices -[PLAssetsdServiceProxyFactory _inq_createServiceProxyWithCallStackSymbols:errorHandler:] + 1188 30 AssetsLibraryServices __74-[PLAssetsdServiceProxyFactory remoteObjectProxyWithErrorHandler:handler:]_block_invoke_2 + 64 31 libdispatch.dylib _dispatch_call_block_and_release + 32 32 libdispatch.dylib _dispatch_client_callout + 20 33 libdispatch.dylib _dispatch_lane_serial_drain + 620 34 libdispatch.dylib _dispatch_lane_invoke + 404 35 libdispatch.dylib _dispatch_workloop_worker_thread + 780 36 libsystem_pthread.dylib _pthread_wqthread + 276 37 libsystem_pthread.dylib start_wqthread + 8
And another suspicious thread stack below:
Code Block com.apple.photos.accessCallbacks keyboard_arrow_up 0 libsystem_kernel.dylib __ulock_wait + 8 1 libdispatch.dylib _dlock_wait + 56 2 libdispatch.dylib _dispatch_group_wait_slow + 60 3 libdispatch.dylib dispatch_block_wait + 308 4 PhotoLibraryServices +[PLLimitedLibraryPicker _presentLimitedLibraryPickerFromViewController:options:] + 572 5 AssetsLibraryServices PLPresentLimitedLibraryPicker + 308 6 AssetsLibraryServices -[PLPrivacy _checkAuthStatusForPhotosAccessScope:promptIfUnknown:resultHandler:] + 1008 7 libdispatch.dylib _dispatch_call_block_and_release + 32 8 libdispatch.dylib _dispatch_client_callout + 20 9 libdispatch.dylib _dispatch_lane_serial_drain + 620 10 libdispatch.dylib _dispatch_lane_invoke + 456 11 libdispatch.dylib _dispatch_workloop_worker_thread + 780 12 libsystem_pthread.dylib _pthread_wqthread + 276 13 libsystem_pthread.dylib start_wqthread + 8
It looks like a deadlock issue.
Anybody any clues?
Thanks a lot!