<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>244727</bug_id>
          
          <creation_ts>2022-09-02 14:07:01 -0700</creation_ts>
          <short_desc>[GStreamer] DMABuf sink mis-renders frames in XvFB</short_desc>
          <delta_ts>2024-01-20 04:33:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alicia Boya García">aboya</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1895862</commentid>
    <comment_count>0</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2022-09-02 14:07:01 -0700</bug_when>
    <thetext>While debugging https://github.com/WebKit/WebKit/pull/3802#issuecomment-1232898953 I found out that video elements don&apos;t render any image inside LayoutTests.

This is particularly problematic for any tests relying on visual output, such as reftests.

This is easily reproduced with compositing/video/video-border-radius-clipping.html, which should output a single big green frame -- and does so in the minibrowser -- but appears white when ran in the test runner, for instance, in this EWS results: https://ews-build.s3-us-west-2.amazonaws.com/GTK-WK2-Tests-EWS/dbb1766c-24083/results.html

Passing --wrapper=&apos;env GST_DEBUG=webkit*:DEBUG&apos; to run-webkit-tests shows the likely culprit of this, a failure to get a GL context:

0:00:03.530073170    56       0x7f6ac0 WARN       webkitmediaplayer PlatformDisplayGStreamer.cpp:115:tryEnsureGstGLContext: Failed to fill in GStreamer context: could not retrieve fbconfig from its ID 0x42. Wrong Display or Screen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901027</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-09-25 09:35:08 -0700</bug_when>
    <thetext>compositing/video/video-border-radius-clipping.html is passing though? At least here in the default XvFB setup and also when I pass --display-server=wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1943336</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-03-23 04:55:32 -0700</bug_when>
    <thetext>The GL sink is now replaced by another sink, re-titling the bug. I can now reproduce this issue here, the actual rendered frame is white instead of green. Zan mentioned this could be a TextureMapper bug. To be confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950399</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-04-21 09:13:00 -0700</bug_when>
    <thetext>Seems like this was fixed... compositing/video/video-border-radius-clipping.html is passing in XvFB and host wayland compositor.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>