Skip to content

Memory issue when using POSAdjustedAssetReaderIOS7 #3

Description

@lxzhh

Hi, Pavel Osipov, there is a huge memory problem when reader photo using POSAdjustedAssetReaderIOS7, my iPhone 4s run into memory warning and the app crashed when I choose some photos to upload. At first I find not all photos will lead to huge memory usage. I debug by using the instruments and find only the image with POSAdjustedAssetReaderIOS7 will cause this problem.

I did not dig into the code but it seems you will use POSAdjustedAssetReaderIOS7 only here

    if (representation.metadata[@"AdjustmentXMP"] != nil) {
        POSAdjustedAssetReaderIOS7 *assetReader = [POSAdjustedAssetReaderIOS7 new];
        assetReader.JPEGCompressionQuality = _adjustedJPEGCompressionQuality;
        return assetReader;
   }

Currently I comment this and use POSFastAssetReader instead, hope this can help you find the cause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions