requestImageForAsset produces nil result for small targetSize only when iPhone-only binary (iOS 9.3)

Originator:yuya.presto
Number:rdar://25622585 Date Originated:2016-04-08
Status:Duplicate/24271713 Resolved:
Product:iOS Product Version:9.3.1
Classification:Other Bugs Reproducible:
 
Summary:
When using [[PHImageManager defaultManager] requestImageForAsset:...], it produces nil result when specified targetSize is small (e.g. CGSizeMake(106, 106).
This only happens for iPhone-only binary and does not reproduce with universal binary.

IMG_0068: iPhone/iPad Universal binary
IMG_0069: iPhone only binary

This does not happen when large size is used (e.g. 1024 x 1024).

Steps to Reproduce:
1. Take a photo on iPad
2. Run below code to fetch thumbnail of took photo.

    [[PHImageManager defaultManager]
        requestImageForAsset:localPHAssetObject
                  targetSize:CGSizeMake(106, 106)
                 contentMode:PHImageContentModeAspectFill
                     options:nil
               resultHandler:^(UIImage *result, NSDictionary *info) {
                     // result is nil ONLY when iPhone-only binary.
               }];


Expected Results:
The *result contains UIImage instance.

Actual Results:
The *result contains nil.

Version:
9.3.1 (13E238)

Notes:


Configuration:
iPad Wi-Fi (model: MGKM2J/A)

Attachments:
'IMG_0068.jpg' and 'IMG_0069.jpg' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!