Bug 218580

Summary: [GStreamer] fast/mediastream/captureStream/canvas2d.html is flaky timing out since GStreamer 1.18 update
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: MediaAssignee: Philippe Normand <pnormand>
Severity: Normal CC: bugs-noreply, calvaris, cgarcia, dpino, eric.carlson, ews-watchlist, fjimenez, glenn, gustavo, jer.noble, menard, philipj, pnormand, sergio, vjaquez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=222451
Description Flags
Tentative example
Patch none

Description Lauro Moura 2020-11-04 11:53:57 PST

Marked as flaky Pass/Fail in root expectations, it's timing out in GLib platforms, especially in Release/Wayland platforms (WPE-Release and GTK-Wayland-Release bots).

When current spell of flaky timeouts started:

WPE-Release: r267140
GTK-Wayland: r267141
GTK-Debug: r267156
GTK-Release: r267241
WPE-Debug: r268715

Revisions r267138 through r267140 were related to the GStreamer 1.18 update in the new SDK version.

At least in WPE-Release, it seems to be getting stuck in the `canvas2.getContext("2d").drawImage(video, 0 ,0);` call.

Link to results history: https://results.webkit.org/?suite=layout-tests&test=fast%2Fmediastream%2FcaptureStream%2Fcanvas2d.html
Comment 1 Lauro Moura 2020-11-04 11:55:39 PST
Created attachment 413192 [details]
Tentative example

This is a sample html test case likely related to the root issue, with the canvas1 -> video -> canvas2 pipeline drawing the canvas.

Works on firefox, but does not draw canvas2 in GTK/WPE ToT (although it does not get stuck like in the test).
Comment 2 Philippe Normand 2021-02-22 00:49:41 PST
Looks like we emit the play event before the first video frame reached the sink, that's why the canvas sourcing from the video element is empty in that test-case.
Comment 3 Philippe Normand 2021-02-22 08:26:54 PST
Created attachment 421194 [details]
Comment 4 Philippe Normand 2021-02-22 08:28:09 PST
*** Bug 217829 has been marked as a duplicate of this bug. ***
Comment 5 EWS 2021-02-23 08:58:21 PST
Committed r273309: <https://commits.webkit.org/r273309>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421194 [details].
Comment 6 Radar WebKit Bug Importer 2021-02-23 08:59:14 PST