Search code examples
iosalassetslibraryassetslibrary

"More than maximum 5 filtered albums trying to register. This will fail." using AssetsLibrary


I sometimes get "More than maximum 5 filtered albums trying to register. This will fail." when I call setAssetsFilter on a ALAssetsGroup.

Anyone knows why? I've seen similar questions but all related to the UIImagePickerController.

here the code:

ALAssetsLibrary *lib = [[ALAssetsLibrary alloc] init];

    [lib enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *group, BOOL *stop) {

        [group setAssetsFilter:[ALAssetsFilter allPhotos]];
        [group enumerateAssetsWithOptions:NSEnumerationReverse usingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {....}];

Solution

  • Most guys on this have seen this question:iOS 5 GM: : More than maximum 5 filtered album lists trying to register. This will fail. And this: iPhone, “More than maximum 5 filtered album lists trying to register. This will fail.” Error. So we can believe that this is a known issue bug. No big problem.

    I also see this comment:

    On iOS 5.1.1, I do check for the availablity of the source type and still get the warning when I call the image picker for the 5th time. I do not see this on iOS 6.0 so Apple seems to have fixed something. – Richard Altenburg - Brainchild