App crashed after resizing in UIImagePickerController without access to Photos.

Originator:tmk.szlc
Number:rdar://19423756 Date Originated:9 Jan 2015
Status:Closed as Duplicate of 18801623 Resolved:22 Jan 2015
Product:iOS SDK Product Version:8.0
Classification:Crash Reproducible:Always
 
Summary:
App crashed when I dismiss UIImagePickerController after photo resizing.

I checked that it is because app has no access to Photos and after the photo is resized in UIImagePickerController and view is dismissed app crashes. App is not crashing only when you don't resize the photo.

Steps to Reproduce:
1. Install app
2. Tap take photo
3. Give camera access.
4. Take a photo
5. Resize Photo
6. Tap Use Photo
7. DO NOT give Photos access
8. When view is dismissed app crashed.

-------

Next case:

1. Take photo in app the same way when app has no access to Photos.
2. DO NOT resize photo.
3. Tap Use Photo.
4. View is dismissed, app didn't crash.



Expected Results:
App should not crash after resizing.

Actual Results:
App crashes after resized photo is selected in UIImagePickerController without access to Photos.

Version:
8.0.2, 8.1.2

Notes:


Configuration:
iPhone 5, iPhone 6+

Project:
https://github.com/tomkowz/rdar-19423756

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!