Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一次安装使用时选择允许访问相册权限后一片空白,第二次再次进入就好了 #1547

Closed
tenxun123 opened this issue Nov 19, 2021 · 20 comments

Comments

@tenxun123
Copy link

提bug前必看
请先回答下列三个问题,否则不允处理,谢谢配合。
1、我最新的Demo是否有这个bug?【如果Demo没问题,请升级新版
答:没有

2、你用的是什么版本?升级到最新版后是否正常?
答:3.6.6,升级最新版本后也有问题

3、是否有改动过我库内部的代码?【如有,请说明改动点
答:没有

bug内容描述
第一次安装使用时选择允许访问相册权限后一片空白,第二次再次进入就好了

我如何复现这个bug?
首次安装后,第一次进入相册就会出现空白。复现概率比较低,但是确实存在

截图

F5194307-5D57-43CE-B538-0355E78E76F7

其它说明
有没有其它要补充的?比如你的初始化TZImagePickerController的代码

@banchichen
Copy link
Owner

我的demo没问题,你的项目里低概率复现吗?

@tomsemi
Copy link

tomsemi commented Nov 30, 2021

我这里在demo第一次使用,选择允许访问相册权限后,直接卡死 ,beta版本的iOS15.2系统:iOS15.2(19C5044b)

@banchichen
Copy link
Owner

@tomsemi 非beta系统会这样吗?卡死时有什么日志?

@tomsemi
Copy link

tomsemi commented Dec 2, 2021

@tomsemi 非beta系统会这样吗?卡死时有什么日志?

非beta系统测试下来不会卡死,日志:
2021-12-02 10:26:52.198083+0800 TZImagePickerController[22055:1658073] [GatekeeperXPC] Failed to open photo library file:///var/mobile/Media/, Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization}
2021-12-02 10:26:52.198221+0800 TZImagePickerController[22055:1658073] [GatekeeperXPC] Got a bind failure for URL file:///var/mobile/Media/, resetting bind state: PLResult:0x282c381c0 failure: Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization} (previous result: (null))
2021-12-02 10:26:52.198335+0800 TZImagePickerController[22055:1658073] [GatekeeperXPC] XPC connection error to assetsd getLibraryServiceWithReply: : Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization}
2021-12-02 10:26:52.199115+0800 TZImagePickerController[22055:1658073] [Backend] Swallowing proxy invocation: <NSInvocation: 0x283928cc0> getLibraryServiceWithReply:
CoreData: XPC: Unable to create NSXPCConnection
2021-12-02 10:26:52.200152+0800 TZImagePickerController[22055:1658073] [error] fault: Something has gone badly awry initializing the XPC connection pool: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
CoreData: fault: Something has gone badly awry initializing the XPC connection pool: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
2021-12-02 10:27:13.356840+0800 TZImagePickerController[22055:1658686] [Backend] Swallowing proxy invocation: <NSInvocation: 0x283913e40> getLibraryServiceWithReply:
2021-12-02 10:27:13.356893+0800 TZImagePickerController[22055:1658686] [Backend] openPhotoLibraryDatabaseWithPostOpenProgress:options:error: Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization}
2021-12-02 10:27:13.356933+0800 TZImagePickerController[22055:1658686] [Backend] Failed to load library: Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization}
2021-12-02 10:27:13.356979+0800 TZImagePickerController[22055:1658686] [Backend] failed to load photo library PHPhotoLibraryUserInitiatedQoS with url file:///var/mobile/Media/, Error Domain=com.apple.photos.error Code=41011 "Unauthorized access: client does not have valid TCC authorization" UserInfo={NSLocalizedDescription=Unauthorized access: client does not have valid TCC authorization}
2021-12-02 10:27:16.274977+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #2
2021-12-02 10:27:16.275533+0800 TZImagePickerController[22055:1658258] CoreData: XPC: Unable to sendMessage: to server
2021-12-02 10:27:19.279359+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #3
2021-12-02 10:27:22.281112+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #4
2021-12-02 10:27:25.285164+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #5
2021-12-02 10:27:28.288962+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #6
2021-12-02 10:27:31.293542+0800 TZImagePickerController[22055:1658258] CoreData: XPC: sendMessage: failed #7
2021-12-02 10:27:34.298541+0800 TZImagePickerController[22055:1658258] CoreData: XPC: Unable to connect to server with options {
NSXPCStoreServerEndpointFactory = "<PLXPCPhotoLibraryStoreEndpointFactory: 0x282c74e20>";
skipModelCheck = 1;
}
2021-12-02 10:27:34.299442+0800 TZImagePickerController[22055:1658258] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo={Problem=Unable to send to server; failed after 8 attempts.}
2021-12-02 10:27:34.304998+0800 TZImagePickerController[22055:1658258] [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060)
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060)
CoreData: annotation: userInfo:
CoreData: annotation: Problem : Unable to send to server; failed after 8 attempts.
CoreData: annotation: storeType: NSXPCStore
CoreData: annotation: configuration: (null)
CoreData: annotation: URL: file:///var/mobile/Media/PhotoData/Photos.sqlite
CoreData: annotation: options:
CoreData: annotation: NSXPCStoreServerEndpointFactory : <PLXPCPhotoLibraryStoreEndpointFactory: 0x282c74e20>
CoreData: annotation: skipModelCheck : 1
2021-12-02 10:27:34.307514+0800 TZImagePickerController[22055:1658258] [Backend] Failed to connect to XPC PhotoLibraryStore file:///var/mobile/Media/PhotoData/Photos.sqlite with options {
NSXPCStoreServerEndpointFactory = "<PLXPCPhotoLibraryStoreEndpointFactory: 0x282c74e20>";
skipModelCheck = 1;
}: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo={Problem=Unable to send to server; failed after 8 attempts.}
2021-12-02 10:27:34.308245+0800 TZImagePickerController[22055:1658258] [Migration] Failed to configure PSC for library file:///var/mobile/Media/: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo={Problem=Unable to send to server; failed after 8 attempts.}
2021-12-02 10:27:34.308711+0800 TZImagePickerController[22055:1658258] [LibraryBundle] Unable to create PLLibraryBundleLogInfo because PSC is nil

@tomsemi
Copy link

tomsemi commented Dec 2, 2021

@tomsemi 非beta系统会这样吗?卡死时有什么日志?

切后台后回来的崩溃日志:
Incident Identifier: A06151AA-C137-430C-999F-05BAA4866087
CrashReporter Key: c142cd23894586d785ec0e77e8fac13e13a4142f
Hardware Model: iPhone10,3
Process: TZImagePickerController [22212]
Path: /private/var/containers/Bundle/Application/7797DE5E-B9C2-4873-98E8-22D8998AD283/TZImagePickerController.app/TZImagePickerController
Identifier: tanzhenios2021.TZImagePickerController.www2
Version: 3.6.7 (1)
Code Type: ARM-64 (Native)
Role: Background
Parent Process: launchd [1]
Coalition: tanzhenios2021.TZImagePickerController.www2 [2804]

Date/Time: 2021-12-02 10:51:50.3008 +0800
Launch Time: 2021-12-02 10:46:21.3417 +0800
OS Version: iPhone OS 15.2 (19C5044b)
Release Type: Beta
Baseband Version: 7.02.00
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application<tanzhenios2021.TZImagePickerController.www2>:22212 exhausted real (wall clock) time allowance of 10.00 seconds
ProcessVisibility: Background
ProcessState: Running
WatchdogEvent: scene-update
WatchdogVisibility: Foreground
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 9.590 (user 9.590, system 0.000), 15% CPU",
"Elapsed application CPU time (seconds): 0.104, 0% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>

Triggered by Thread: 0

Thread 0 name: Dispatch queue: NSPersistentStoreCoordinator 0x281114e00
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1be2e5088 __semwait_signal + 8
1 libsystem_c.dylib 0x18e7cb8e0 nanosleep + 212
2 libsystem_c.dylib 0x18e7df28c sleep + 44
3 CoreData 0x18b40d074 -[NSXPCStore sendMessage:fromContext:interrupts:error:] + 676
4 CoreData 0x18b4970b4 -[NSXPCStore loadMetadata:] + 296
5 CoreData 0x18b3be368 __91-[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]_block_invoke + 2668
6 CoreData 0x18b39b0f8 gutsOfBlockToNSPersistentStoreCoordinatorPerform + 196
7 libdispatch.dylib 0x100c89f94 _dispatch_client_callout + 16
8 libdispatch.dylib 0x100c99638 _dispatch_lane_barrier_sync_invoke_and_complete + 120
9 CoreData 0x18b51a820 _perform + 168
10 CoreData 0x18b3e9780 -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 376
11 PhotoLibraryServices 0x196c32d50 -[PLPersistentContainer _configureXPCPersistentStoreCoordinator:error:] + 596
12 PhotoLibraryServices 0x196bf4aa8 -[PLPersistentContainer newSharedPersistentStoreCoordinator] + 296
13 PhotoLibraryServices 0x196b7cdcc __57-[PLPersistentContainer sharedPersistentStoreCoordinator]_block_invoke + 56
14 PhotoLibraryServicesCore 0x1e67238e4 PLResultWithUnfairLock + 52
15 PhotoLibraryServices 0x196b762f0 -[PLPersistentContainer sharedPersistentStoreCoordinator] + 76
16 PhotoLibraryServices 0x196b7a9bc -[PLPhotoLibraryBundle newChangeHandlingContainer] + 112
17 PhotoLibraryServices 0x196bada60 __60-[PLPhotoLibraryBundle initWithLibraryURL:bundleController:]_block_invoke.34 + 44
18 PhotoLibraryServicesCore 0x1e672e3b8 __27-[PLLazyObject objectValue]_block_invoke + 60
19 PhotoLibraryServicesCore 0x1e67238e4 PLResultWithUnfairLock + 52
20 PhotoLibraryServicesCore 0x1e6722114 -[PLLazyObject objectValue] + 76
21 PhotoLibraryServices 0x197013aa0 -[PLPhotoLibraryBundle resumeChangeHandling] + 24
22 Photos 0x1969efa48 -[PHPhotoLibrary _resumeChangeHandlingIfNeeded] + 268
23 PhotoLibraryServicesCore 0x1e67220b8 __pl_dispatch_sync_block_invoke + 36
24 libdispatch.dylib 0x100c89f94 _dispatch_client_callout + 16
25 libdispatch.dylib 0x100c99638 _dispatch_lane_barrier_sync_invoke_and_complete + 120
26 PhotoLibraryServicesCore 0x1e67221c0 pl_dispatch_sync + 96
27 Photos 0x1968fd1b4 -[PHPhotoLibrary registerFetchResult:] + 116
28 Photos 0x196923578 -[PHFetchResult setRegisteredForChangeNotificationDeltas:] + 96
29 Photos 0x1968d5c34 -[PHFetchResult updateRegistrationForChangeNotificationDeltas] + 124
30 Photos 0x1968eb3a8 -[PHFetchResult initWithQuery:oids:registerIfNeeded:usingManagedObjectContext:] + 624
31 Photos 0x1968e821c -[PHFetchResult initWithQuery:] + 92
32 Photos 0x1968e122c -[PHQuery executeQuery] + 132
33 Photos 0x1968ea74c __67+[PHAssetCollection fetchAssetCollectionsWithType:subtype:options:]_block_invoke + 200
34 Photos 0x1968ea27c +[PHObject authorizationAwareFetchResultWithOptions:fetchBlock:] + 92
35 Photos 0x1968eb0f8 +[PHAssetCollection fetchAssetCollectionsWithType:subtype:options:] + 88
36 TZImagePickerController 0x100969660 -[TZImageManager getCameraRollAlbumWithFetchAssets:completion:] + 556
37 TZImagePickerController 0x10098f690 -[TZImagePickerController pushPhotoPickerVc] + 344
38 TZImagePickerController 0x10098d860 -[TZImagePickerController initWithMaxImagesCount:columnNumber:delegate:pushPhotoPickerVc:] + 2140
39 TZImagePickerController 0x100963f18 -[ViewController pushTZImagePickerController] + 324
40 TZImagePickerController 0x100962e7c -[ViewController collectionView:didSelectItemAtIndexPath:] + 1316
41 UIKitCore 0x1868bc360 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:deselectPrevious:performCustomSelectionAction:] + 896
42 UIKitCore 0x186c34328 -[UICollectionView touchesEnded:withEvent:] + 612
43 UIKitCore 0x1867a8b84 forwardTouchMethod + 316
44 UIKitCore 0x18671b494 _UIGestureEnvironmentUpdate + 6748
45 UIKitCore 0x18674cc28 -[UIGestureEnvironment _updateForEvent:window:] + 744
46 UIKitCore 0x1867595bc -[UIWindow sendEvent:] + 4364
47 UIKitCore 0x1868fd10c -[UIApplication sendEvent:] + 896
48 UIKitCore 0x18672e10c __dispatchPreprocessedEventFromEventQueue + 8124
49 UIKitCore 0x186723058 __processEventQueue + 6748
50 UIKitCore 0x1867283e8 __eventFetcherSourceCallback + 168
51 CoreFoundation 0x1843132b0 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
52 CoreFoundation 0x1843232d8 __CFRunLoopDoSource0 + 204
53 CoreFoundation 0x184266678 __CFRunLoopDoSources0 + 256
54 CoreFoundation 0x18426baa8 __CFRunLoopRun + 768
55 CoreFoundation 0x18427ee1c CFRunLoopRunSpecific + 572
56 GraphicsServices 0x1a46019a0 GSEventRunModal + 160
57 UIKitCore 0x186ab2634 -[UIApplication _run] + 1080
58 UIKitCore 0x186847b3c UIApplicationMain + 2028
59 TZImagePickerController 0x10098313c main + 104
60 dyld 0x100de8290 start + 444

Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x1be2e4b10 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1be2e5134 mach_msg + 72
2 CoreFoundation 0x184267b60 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0x18426bc48 __CFRunLoopRun + 1184
4 CoreFoundation 0x18427ee1c CFRunLoopRunSpecific + 572
5 Foundation 0x1859b83dc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x1859f6c4c -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x186a3037c -[UIEventFetcher threadMain] + 512
8 Foundation 0x185a048bc NSThread__start + 792
9 libsystem_pthread.dylib 0x1de7583a4 _pthread_start + 116
10 libsystem_pthread.dylib 0x1de7569fc thread_start + 8

Thread 2 name: Dispatch queue: com.apple.libtrace.state.block-list
Thread 2:
0 libsystem_kernel.dylib 0x1be2e56f4 __ulock_wait + 8
1 libdispatch.dylib 0x100c8aa50 _dlock_wait + 52
2 libdispatch.dylib 0x100c8a83c _dispatch_thread_event_wait_slow + 52
3 libdispatch.dylib 0x100c99984 DISPATCH_WAIT_FOR_QUEUE + 336
4 libdispatch.dylib 0x100c993c0 _dispatch_sync_f_slow + 172
5 libsystem_trace.dylib 0x19d5fd124 ___os_state_request_for_self_block_invoke + 344
6 libdispatch.dylib 0x100c88718 _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x100c89f94 _dispatch_client_callout + 16
8 libdispatch.dylib 0x100c91150 _dispatch_lane_serial_drain + 684
9 libdispatch.dylib 0x100c91e08 _dispatch_lane_invoke + 484
10 libdispatch.dylib 0x100c9d4e8 _dispatch_workloop_worker_thread + 852
11 libsystem_pthread.dylib 0x1de756e84 _pthread_wqthread + 284
12 libsystem_pthread.dylib 0x1de7569f0 start_wqthread + 8

Thread 3:
0 libsystem_pthread.dylib 0x1de7569e8 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x1de7569e8 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000004 x1: 0x0000000000000000 x2: 0x0000000000000001 x3: 0x0000000000000001
x4: 0x0000000000000003 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x00000001f6233030 x9: 0x0000000000000003 x10: 0x0000000000000011 x11: 0x03ea0001a291d621
x12: 0x00000000001b754a x13: 0x00000001f62b5248 x14: 0x000000018451806e x15: 0x00000001f62b5248
x16: 0x000000000000014e x17: 0x000000018b4b6474 x18: 0x0000000000000000 x19: 0x000000016f4c2860
x20: 0x000000016f4c2870 x21: 0x0000000000000000 x22: 0x00000001f62b4000 x23: 0x0000000282f65900
x24: 0x0000000000000008 x25: 0x0000000000000007 x26: 0x000000019eb2c0e6 x27: 0x00000001f70b7000
x28: 0x000000019e5280ae fp: 0x000000016f4c2850 lr: 0x000000018e7cb8e0
sp: 0x000000016f4c2820 pc: 0x00000001be2e5088 cpsr: 0x60000000
far: 0x0000000000000000 esr: 0x56000080 Address size fault

Binary Images:
0x1be2e4000 - 0x1be315fff libsystem_kernel.dylib arm64 /usr/lib/system/libsystem_kernel.dylib
0x18e7c7000 - 0x18e841fff libsystem_c.dylib arm64 <7b1f5e8fb1ca379e9d988d0d024b8775> /usr/lib/system/libsystem_c.dylib
0x18b361000 - 0x18b6d8fff CoreData arm64 <725902805f2a37c8af2efbc477400118> /System/Library/Frameworks/CoreData.framework/CoreData
0x100c84000 - 0x100ccffff libdispatch.dylib arm64 /usr/lib/system/introspection/libdispatch.dylib
0x196b71000 - 0x1972c2fff PhotoLibraryServices arm64 /System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices
0x1e671a000 - 0x1e67fbfff PhotoLibraryServicesCore arm64 <298e157df9d23a03bc3499a8a95715ff> /System/Library/PrivateFrameworks/PhotoLibraryServicesCore.framework/PhotoLibraryServicesCore
0x1968cf000 - 0x196b70fff Photos arm64 <586949e4b44d3056964ee8e28a2de5d5> /System/Library/Frameworks/Photos.framework/Photos
0x100938000 - 0x1009affff TZImagePickerController arm64 /private/var/containers/Bundle/Application/7797DE5E-B9C2-4873-98E8-22D8998AD283/TZImagePickerController.app/TZImagePickerController
0x1865c6000 - 0x187d55fff UIKitCore arm64 <9e8f37de958a30d79aebba648215e933> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x184261000 - 0x18469bfff CoreFoundation arm64 <87fc3a6e24b03da1995dda367bcd8357> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1a4600000 - 0x1a4608fff GraphicsServices arm64 /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x100dd0000 - 0x100e23fff dyld arm64 /usr/lib/dyld
0x1859a1000 - 0x185c81fff Foundation arm64 <68cc60b55ff63747bd1741170179cce7> /System/Library/Frameworks/Foundation.framework/Foundation
0x1de752000 - 0x1de765fff libsystem_pthread.dylib arm64 <75a64b07b9b7370ca246a2e900df3187> /usr/lib/system/libsystem_pthread.dylib
0x19d5f4000 - 0x19d60bfff libsystem_trace.dylib arm64 <97f73e2dd578359099efd251b5cf890b> /usr/lib/system/libsystem_trace.dylib

EOF

@banchichen
Copy link
Owner

@tomsemi 大概率是beta系统的bug,产时间卡住主线程,进程被看门狗杀了,可以保持观察下,发布正式版的时候应该好了

@jtouzy
Copy link

jtouzy commented Dec 12, 2021

FYI, we had the same issue in our app on iOS 15.2.
It seems related that we call PHPhotoLibrary.shared().register(self) before asking for photo permission.
If we do it later, no more Apple failure.

@XuLiCC
Copy link

XuLiCC commented Dec 14, 2021

15.2 必现

@tomsemi
Copy link

tomsemi commented Dec 14, 2021

15.2正式版测试下来也存在此问题 @banchichen

@lionsom
Copy link

lionsom commented Dec 14, 2021

15.2正式版,必现!!!救急!!!

@banchichen
Copy link
Owner

已复现,正在修复中,今晚发一版

@banchichen
Copy link
Owner

@jtouzy Thanks, you're right. Thank you for your information!

- [[PHPhotoLibrary sharedPhotoLibrary] registerChangeObserver:self];

+ if ([[TZImageManager manager] authorizationStatusAuthorized]) {
+     [[PHPhotoLibrary sharedPhotoLibrary] registerChangeObserver:self];
+ }

The new version(3.6.8) has fixed this problem

@banchichen
Copy link
Owner

banchichen commented Dec 14, 2021

@tenxun123 @tomsemi @XuLiCC @lionsom 已修复,3.6.8版本

源码引入的可参考这个commit:c904492

试了下,支付宝也不行,微信和钉钉是好的

@tomsemi
Copy link

tomsemi commented Dec 15, 2021

感谢,速度真快

@2410495654
Copy link

3.6.8 在iOS14.6还会出问题;其他版本可以。
第一次选择部分不会显示;第二次就好了

@banchichen
Copy link
Owner

@2410495654 你这个iOS14.6的问题,3.6.7是好的吗?

@2410495654
Copy link

3.6.4 有问题;3.6.7 不知道
Demo 3.6.8;机子 iPhone11,iOS14.6

https://dsc-prod.oss-cn-hangzhou.aliyuncs.com/app/ios/files/IMG_0752.MP4
iOS15.2、iOS13.1正常
@banchichen

@banchichen
Copy link
Owner

@2410495654 相册变化后,会触发photoLibraryDidChange回调,里面会尝试重新拿相册数据,你帮忙看下这个流程是否正常哈
然后这个手机,在微信、抖音上会这样吗?

@lww7329
Copy link

lww7329 commented Jan 9, 2023

banchichen老师,3.8.3版本,在ios14.0系统上依然存在这个问题,复现步骤需要再第一次安装是先打开相机拍照取图后,在打开相册取图时触发,我贴一下日志。

2023-01-09 16:49:59.860717+0800 XesApp[6327:4668026] [Backend] openPhotoLibraryDatabaseWithPostOpenProgress:options:error: Error Domain=com.apple.photos.error Code=46104 "(null)"
2023-01-09 16:49:59.860753+0800 XesApp[6327:4668026] [Backend] Failed to load library: Error Domain=com.apple.photos.error Code=46104 "(null)"
2023-01-09 16:49:59.860805+0800 XesApp[6327:4668026] [Backend] failed to load photo library PHPhotoLibraryUserInitiatedQoS with url file:///var/mobile/Media/, Error Domain=com.apple.photos.error Code=46104 "(null)"
2023-01-09 16:49:59.861274+0800 XesApp[6327:4668026] [GatekeeperXPC] Unable to get XPC service from assetsd getLibraryServiceWithReply:: Error Domain=com.apple.photos.error Code=46104 "(null)"@

@lww7329
Copy link

lww7329 commented Jan 9, 2023

@banchichen thanks for watch my question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants