Skip to content

Media library causes freezes under iOS 15.2 #5465

Closed
@langleyd

Description

@langleyd

When starting the App for the first time on iOS 15.2 I wanted to create a message with an image from the media library. I got the permissions dialog, after allowing usage the app freezes for a while. Afterwards I can't use the media library button. Restarting the App removes the problem.

When debugging from XCode I notice following:

In: (void)reloadRecentCapturesCollection
{
// Retrieve recents snapshot for the selected media types
PHFetchResult *smartAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeSmartAlbumUserLibrary options:nil];

there is:

2022-01-17 07:54:58.723191+0100 Riot[763:84056] [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}

which cauxes an assert in debug mode.

Apple has the following to say: https://developer.apple.com/forums/thread/696804

Metadata

Metadata

Assignees

Labels

A-MediaO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions