Crash when trying to fullscreen an embedded video within a form sheet + sample

Originator:steipete
Number:rdar://11433460 Date Originated:11-May-2012 08:14 PM
Status:Open Resolved:
Product:iOS SDK Product Version:5.1
Classification:Crash Reproducible:Always
 
11-May-2012 08:14 PM Peter Steinberger:
Summary:

When trying to fullscreen a video embedded in an formsheet (UIModalPresentationFormSheet) we get the crash Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UIViewController: 0xd47e540> should have parent view controller:<UIViewController: 0x6868b40> but requested parent is:<MPInlineVideoViewController: 0x6c648e0>'

Doesn't happen if we don't use UIModalPresentationFormSheet.

Steps to Reproduce:

Start sample app. Press play. Try to go to fullscreen.

Expected Results:

fullscreen.

Actual Results:

crash.

Regression:

Works in 4.x

Notes:

Comments

sample: https://www.dropbox.com/s/5dvktl17x0jjtip/videocrash.zip


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!