UIImagePickerController crashes internally if backgrounded while processing image

Originator:stevjerbs
Number:rdar://19953748 Date Originated:25-Feb-2015
Status:Closed Resolved:Yes, iOS 11
Product:iOS SDK Product Version:iOS 8.1.2 (12B440)
Classification:Crash Reproducible:Always
 
Summary:
A UIImagePickerController can crash if the app is backgrounded at a moment when a taken image is being processed internally.
Exception: *** setObjectForKey: object cannot be nil (key: UIImagePickerControllerOriginalImage)

Steps to Reproduce:
Using attached sample
1. Open attached sample app
2. Wait for a few seconds for the image picker to start taking pictures
3. Background application with either the home button or the 4 or 5 finger swiping claw grab action

Not using sample app
1. Take a picture with a UIImagePickerController
2. Background the app
3. If timed correctly somehow, the app may crash

Expected Results:
Application does not crash when returning from background

Actual Results:
Application crashes with the exception, *** setObjectForKey: object cannot be nil (key: UIImagePickerControllerOriginalImage)

Version:
iOS 8.1.2 (12B440)

Notes:
Attached a sample app which is just a UIImagePickerController that continuously takes pictures to aid in reproducibility.

Configuration:
iPad 4 Wifi

Attachments:
'CamCrasher.zip' was successfully uploaded.

Comments

Fixed

This appears to have been fixed in iOS 11.

By stevjerbs at Feb. 6, 2018, 4:51 p.m. (reply...)

help !

Did you get a resolution from apple for this issue ? I am still getting this issue on iOS 9.x device.

By ayyappazmail at Aug. 2, 2016, 9:53 a.m. (reply...)

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!