Crash on media selection button tap

Originator:pepik.ml
Number:rdar://45038031 Date Originated:October 5 2018, 12:13 PM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification:AVFoundation Reproducible:Always
 
Area:
AVFoundation

Summary:
When using AVPlayerViewController as child controller to play video in other controller, after entering fullscreen and tapping media selection button the app crashes. The stack trace is attached. Note that the app does not support landscape on other screens than the fullscreen video playback.

Steps to Reproduce:
1) Create new controller
2) Add AVPlayerViewController
3) Add AVPlayer with video stream
4) Enter fullscreen while playing video (in portrait orientation)
5) Channge orientation to landscape
6) Tap media selection button (right bottom corner)
7) The will crash

Expected Results:
Not to crash.

Actual Results:
Crash.

Version/Build:
- Doesn't work on iPhone 7 Plus with iOS 12 (both real device and simulator),
- works fine on iPhone Xs (simulator) with iOS 12 and iPhone 6s with iOS 12 (real device)
- also works with multiple older devices with iOS 11 (iPhone 5, iPhone 6)

Configuration:
Producition, Debug

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!