Bug 245241

Summary: [ iPadOS BigSur ] 3X TestWebKitAPI.WKWebViewCloseAllMediaPresentations(API tests) are constant timeouts
Product: WebKit Reporter: Hercules Hjalmarsson <hhjalmarsson>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, jer.noble, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Hercules Hjalmarsson 2022-09-15 13:34:02 PDT
TestWebKitAPI.WKWebViewCloseAllMediaPresentationsInternal.PictureInPicture
TestWebKitAPI.WKWebViewCloseAllMediaPresentations.PictureInPicture

Are two API tests that are constant timeouts on iPadOS16 since added to the queues.

HISTORY:
https://results.webkit.org/?suite=api-tests&suite=api-tests&test=TestWebKitAPI.WKWebViewCloseAllMediaPresentations.PictureInPicture&test=TestWebKitAPI.WKWebViewCloseAllMediaPresentationsInternal.PictureInPicture

DIFF(TestWebKitAPI.WKWebViewCloseAllMediaPresentations.PictureInPicture):
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(235) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        VideoFullscreenManager::enterVideoFullscreenForVideoElement(0x426161940)
        VideoFullscreenModelVideoElement 0x426087180 ctor
        VideoFullscreenModelVideoElement 0x426087180 setVideoElement(0x428002a00)
        VideoFullscreenInterfaceAVKit::setupFullscreen(0x164083200)
        VideoFullscreenManager::setVideoLayerFrameFenced(0x426161940, 2f)
        WebFullScreenManager 0x4263fb560 videoControlsManagerDidChange()
        VideoFullscreenInterfaceAVKit::enterFullscreen(0x164083200) 0
        VideoFullscreenInterfaceAVKit::willStartPictureInPicture(0x164083200)
        VideoFullscreenInterfaceAVKit::willStopPictureInPicture(0x164083200)
        VideoFullscreenInterfaceAVKit::didStopPictureInPicture(0x164083200)

DIFF(TestWebKitAPI.WKWebViewCloseAllMediaPresentationsInternal.PictureInPicture):
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(235) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        VideoFullscreenManager::enterVideoFullscreenForVideoElement(0x466165940)
        VideoFullscreenModelVideoElement 0x4664fd740 ctor
        VideoFullscreenModelVideoElement 0x4664fd740 setVideoElement(0x468002a00)
        VideoFullscreenInterfaceAVKit::setupFullscreen(0x16307b100)
        VideoFullscreenManager::setVideoLayerFrameFenced(0x466165940, 2f)
        WebFullScreenManager 0x4663fe7a0 videoControlsManagerDidChange()
        VideoFullscreenInterfaceAVKit::enterFullscreen(0x16307b100) 0
        VideoFullscreenInterfaceAVKit::willStartPictureInPicture(0x16307b100)
        VideoFullscreenInterfaceAVKit::willStopPictureInPicture(0x16307b100)
        VideoFullscreenInterfaceAVKit::didStopPictureInPicture(0x16307b100)

Build URL:
https://build.webkit.org/#/builders/666/builds/3/steps/18/logs/stdio
Comment 1 Radar WebKit Bug Importer 2022-09-15 13:34:22 PDT
<rdar://problem/99985210>
Comment 2 Hercules Hjalmarsson 2022-09-15 13:37:09 PDT
This issue can be reproduced by using command:

run-api-tests --iterations=2  --iPad-simulator --debug  TestWebKitAPI.WKWebViewCloseAllMediaPresentations.PictureInPicture
Comment 3 Hercules Hjalmarsson 2022-09-15 13:54:54 PDT
TestWebKitAPI.WKWebViewCloseAllMediaPresentations.MultipleSequentialCloseAllMediaPresentations

Found a third API test that appears to be related to the previous two. This is also a constant timeout on iPadOS16 Debug+Release.

HISTORY:
https://results.webkit.org/?suite=api-tests&suite=api-tests&suite=api-tests&test=TestWebKitAPI.WKWebViewCloseAllMediaPresentations.MultipleSequentialCloseAllMediaPresentations&test=TestWebKitAPI.WKWebViewCloseAllMediaPresentations.PictureInPicture&test=TestWebKitAPI.WKWebViewCloseAllMediaPresentationsInternal.PictureInPicture

DIFF:
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(235) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        VideoFullscreenManager::enterVideoFullscreenForVideoElement(0x4be168400)
        VideoFullscreenModelVideoElement 0x4be2c3600 ctor
        VideoFullscreenModelVideoElement 0x4be2c3600 setVideoElement(0x4c0002a00)
        VideoFullscreenInterfaceAVKit::setupFullscreen(0x16007f100)
        VideoFullscreenManager::setVideoLayerFrameFenced(0x4be168400, 2f)
        WebFullScreenManager 0x4be57ef20 videoControlsManagerDidChange()
        VideoFullscreenInterfaceAVKit::enterFullscreen(0x16007f100) 0
        VideoFullscreenInterfaceAVKit::willStartPictureInPicture(0x16007f100)
        VideoFullscreenInterfaceAVKit::willStopPictureInPicture(0x16007f100)
        VideoFullscreenInterfaceAVKit::didStopPictureInPicture(0x16007f100)
Comment 4 Hercules Hjalmarsson 2022-10-26 10:43:59 PDT
It appears these 3 started failing on BigSur arm64 also.