Bug 231413

Summary: REGRESSION(r283676) [WPE] Bots exiting early with lots of tests timing out
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231185

Description Lauro Moura 2021-10-07 22:41:35 PDT
Non-exhaustive list:

fast/canvas/webgl/texImage2D-video-flipY-false.html
fast/dom/focus-shift-crash.html
fast/events/constructors/track-event-constructor.html
fast/events/media-focus-in-standalone-media-document.html
fast/history/page-cache-media-source-closed-2.html
fast/history/page-cache-removed-source-buffer.html
fast/mediastream/apply-constraints-advanced.html
fast/mediastream/apply-constraints-audio.html
fast/mediastream/apply-constraints-video.html
fast/mediastream/captureStream/canvas2d-heavy-drawing.html
fast/mediastream/captureStream/canvas2d.html
fast/mediastream/get-user-media-on-loadedmetadata.html
fast/mediastream/local-audio-playing-event.html
fast/mediastream/media-stream-renders-first-frame.html
fast/mediastream/MediaStream-MediaElement-setObject-null.html
fast/mediastream/MediaStream-video-element-displays-buffer.html
fast/mediastream/MediaStream-video-element-remove-track.html
fast/mediastream/MediaStream-video-element-video-tracks-disabled.html
fast/mediastream/MediaStream-video-element.html
fast/rendering/iframe-window-animation-modifies-iframe-srcdoc-crash.html
fast/scrolling/scrolling-inside-scrolled-overflowarea.html
fullscreen/full-screen-iframe-legacy.html
fullscreen/fullscreen-restore-scroll-position.html
fullscreen/video-inside-flex-item.html
fullscreen/video-specified-size.html
http/tests/appcache/video.html
http/tests/cache/disk-cache/disk-cache-media-small.html
http/tests/contentextensions/media-filtered.html
http/tests/history/back-to-post.py	expected actual diff pretty diff 	history
http/tests/media/hls/hls-audio-tracks-has-audio.html
http/tests/media/hls/hls-audio-tracks.html
http/tests/media/hls/hls-progress.html
http/tests/media/media-document-referer.html
http/tests/media/media-document.html
http/tests/media/media-play-stream-chunked-icy.html
http/tests/media/media-seeking-no-ranges-server.html
http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control.html
http/tests/media/pdf-served-as-pdf.html
http/tests/media/reload-after-dialog.html
http/tests/media/remove-while-loading.html
http/tests/media/text-served-as-text.html
http/tests/media/track/track-webvtt-slow-loading-2.html
http/tests/media/track/track-webvtt-slow-loading.html
http/tests/misc/empty-urls.html
http/tests/navigation/page-cache-video.html

Many are timing out with errors creating the video element (methods like load, canPlayType, etc being undefined). for example, in `http/tests/misc/empty-urls.html`:


--- /home/lauro/dev/WebKit/layout-test-results/http/tests/misc/empty-urls-expected.txt
+++ /home/lauro/dev/WebKit/layout-test-results/http/tests/misc/empty-urls-actual.txt
@@ -1,7 +1,7 @@
+CONSOLE MESSAGE: TypeError: document.getElementById("video").load is not a function. (In 'document.getElementById("video").load()', 'document.getElementById("video").load' is undefined)
+FAIL: Timed out waiting for notifyDone to be called
+
 PASS: img onerror fired
 PASS: input type=image onerror fired
 PASS: script onerror fired
-PASS: video src onerror fired
-PASS: audio onerror fired
-PASS: source onerror fired

In GTK, a similar set of tests were failing until r283707 reenabled visibility=hidden (started passing again since).


PS: There's also an issue bisecting where, if I went back in history a few commits, the test just times out without any output.

Testing on buildbox2, everything seems to be working there.
Comment 1 Lauro Moura 2021-10-07 22:42:38 PDT
Fixing title (the right revision is r283676)
Comment 2 Lauro Moura 2021-10-07 22:53:09 PDT
> PS: There's also an issue bisecting where, if I went back in history a few commits, the test just times out without any output.

And minibrowser hangs loading with this trace, crashing inside getNetworkProcessConnection() after the max number of failed attempts:

1   0x7f38a447bc99 WTFCrash
2   0x7f38a05637b5 WebKit::WebProcess::ensureNetworkProcessConnection()
3   0x7f38a056468c WebKit::WebProcess::initializeWebProcess(WebKit::WebProcessCreationParameters&&)
4   0x7f38a00cc584 /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-1.1.so.0(+0x208f584) [0x7f38a00cc584]
5   0x7f38a02cf705 IPC::Connection::dispatchMessage(std::unique_ptr<IPC::Decoder, std::default_delete<IPC::Decoder> >)
6   0x7f38a02d0d51 IPC::Connection::dispatchOneIncomingMessage()
7   0x7f38a449f414 WTF::RunLoop::performWork()
8   0x7f38a4508639 /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-1.1.so.0(+0x64cb639) [0x7f38a4508639]
9   0x7f38a4508fff /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-1.1.so.0(+0x64cbfff) [0x7f38a4508fff]
10  0x7f389d789294 g_main_context_dispatch
11  0x7f389d789638 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x58638) [0x7f389d789638]
12  0x7f389d789943 g_main_loop_run
13  0x7f38a4509140 WTF::RunLoop::run()
14  0x7f38a068bcac WebKit::WebProcessMain(int, char**)
15  0x7f389cfa3b90 __libc_start_main
16  0x55a97613e83e /app/webkit/WebKitBuild/Release/bin/WPEWebProcess(+0x83e) [0x55a97613e83e]
Comment 3 Lauro Moura 2021-10-07 23:12:21 PDT
(In reply to Lauro Moura from comment #2)
> > PS: There's also an issue bisecting where, if I went back in history a few commits, the test just times out without any output.
> 
> And minibrowser hangs loading with this trace, crashing inside
> getNetworkProcessConnection() after the max number of failed attempts:
> 

Just to be clear, this is the behavior when building a revision slightly older than r283676 after building r283676 itself.

About the http/tests/misc/empty-urls.html test, both the audio and video elements arrive as HTMLUnknownElement instead of HTMLVideoElement/HTMLAudioElement.