UIImagePickerController crash the app

Originator:zeev
Number:rdar://14903468 Date Originated:03-Sep-2013
Status:Open Resolved:
Product:iOS SDK Product Version:IOS 7
Classification: Reproducible:
 
Summary:
Open a UIImagePickerController with allowsEditing and videoMaximumDuration and selecting a file from the Photo Library which have duration larger than videoMaximumDuration crash the app.

Steps to Reproduce:
1. Init UIImagePickerController
 UIImagePickerController *picker = [[UIImagePickerController alloc] init];
            picker.delegate = self;
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            picker.mediaTypes = mediaTypes; //kUTTypeMovie
            picker.allowsEditing = YES;
            picker.videoQuality = UIImagePickerControllerQualityTypeIFrame1280x720;
            picker.videoMaximumDuration = 15.0;
2. Open the picker
3. Select a video of 20 sec


Expected Results:
Video shows with a 15 sec frame that crop the video

Actual Results:
App crash

Version:
7.0 (11A4449d)

Notes:
Looks related to another reported bug radar//:14451716

Same steps with a video shorter than 15 sec doesn't crash

Configuration:
iOS7 beta 6 [7.0 (11A4449d)]
Same exact code runs on iOS6.x.x

Comments

Upgrade to iOS 7.0 SDK (Xcode 5.0) works !!!

The issue still happen when working with the previous SDK (which we were hopping to use for a little longer to delay the work which is needed with the move to Xcode 5.0...)


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!