Bug 255394 - Safari crashes after present AVFullScreenViewController on iPhone 8+ in portraitUpsideDown orientation
Summary: Safari crashes after present AVFullScreenViewController on iPhone 8+ in portr...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-13 06:40 PDT by nikstarygin
Modified: 2023-04-13 15:01 PDT (History)
4 users (show)

See Also:


Attachments
MobileSafari crash log (20.07 KB, text/plain)
2023-04-13 07:27 PDT, nikstarygin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nikstarygin 2023-04-13 06:40:02 PDT
Hi WebKit!
I found crash in Safari and in my application only on iPhone 8+
Steps to reproduce:
1. Open any site with video
2. Set device orientation on portraitUpsideDown
3. Enter video fullscreen
--
Application crashes with stack:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'preferredInterfaceOrientationForPresentation 'portraitUpsideDown' must match a supported interface orientation: 'portrait, landscapeLeft, landscapeRight'!'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018040e7ec __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x0000000180051144 objc_exception_throw + 56
	2   CoreFoundation                      0x000000018040e6fc -[NSException initWithCoder:] + 0
	3   UIKitCore                           0x0000000143b72438 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 200
	4   UIKitCore                           0x0000000143a8b0ec -[_UIFullscreenPresentationController _adjustOrientationIfNecessaryInWindow:forViewController:preservingViewController:] + 468
	5   UIKitCore                           0x0000000143a82c28 -[UIPresentationController _presentWithAnimationController:inWindow:interactionController:target:didFinish:] + 520
	6   UIKitCore                           0x0000000143b69f74 -[UIViewController _presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:] + 1132
	7   UIKitCore                           0x0000000143b6c604 -[UIViewController _presentViewController:withAnimationController:completion:] + 3216
	8   UIKitCore                           0x0000000143b6d10c __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 88
	9   UIKitCore                           0x0000000143b6d364 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 364
	10  UIKitCore                           0x0000000143b6d078 -[UIViewController _presentViewController:animated:completion:] + 160
	11  UIKitCore                           0x0000000143b6d408 -[UIViewController presentViewController:animated:completion:] + 140
	12  AVKit                               0x000000013df9b304 -[AVTransitionController _present:fromViewController:animated:completion:] + 152
	13  AVKit                               0x000000013df9930c -[AVTransitionController beginFullScreenPresentationOfViewController:fromView:isInteractive:completion:] + 592
	14  AVKit                               0x000000013df30fd0 -[AVPlayerViewController _transitionToAttachedFullScreenAnimated:interactive:completionHandler:] + 396
	15  AVKit                               0x000000013df30e04 -[AVPlayerViewController _transitionToFullScreenAnimated:interactive:completionHandler:] + 588
	16  AVKit                               0x000000013df38284 -[AVPlayerViewController(AVPlayerViewController_WebKitOnly) enterFullScreenAnimated:completionHandler:] + 648
	17  WebCore                             0x000000014fe0ad60 _ZN7WebCore29VideoFullscreenInterfaceAVKit17doEnterFullscreenEv + 152
	18  WebKit                              0x00000001159ed760 _ZN6WebKit27VideoFullscreenManagerProxy15enterFullscreenEN3WTF16ObjectIdentifierINS_36PlaybackSessionContextIdentifierTypeEEE + 92
	19  JavaScriptCore                      0x00000001407a2e5c _ZN3WTF7RunLoop11performWorkEv + 172
	20  JavaScriptCore                      0x00000001407a3890 _ZN3WTF7RunLoop11performWorkEPv + 32
Comment 1 nikstarygin 2023-04-13 07:27:42 PDT
Created attachment 465884 [details]
MobileSafari crash log
Comment 2 Sam Sneddon [:gsnedders] 2023-04-13 09:31:19 PDT
This is both not a WebKit bug (it's a platform bug, rdar://problem/98819383), and is already fixed in iOS 16.4 (which shipped last month).
Comment 3 nikstarygin 2023-04-13 09:55:34 PDT
thanks