<?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>167007</bug_id>
          
          <creation_ts>2017-01-13 09:52:12 -0800</creation_ts>
          <short_desc>REGRESSION(r210677): [GTK] Many layout test timeouts on GTK+ bots</short_desc>
          <delta_ts>2017-01-13 12:44:25 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>clopez</cc>
    
    <cc>eocanha</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1266483</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-01-13 09:52:12 -0800</bug_when>
    <thetext>Many layout test timeouts on GTK+ bots since r210677:

eocanha:  I don&apos;t know if the problem is the change to RefPtr: https://github.com/WebKit/webkit/commit/0518d272dac9ec8de8ed08789756a0826472de17#diff-7da59705d8926b4b5a36864845e675d8R888
eocanha:  or the usage if a null media player client: https://github.com/WebKit/webkit/commit/0518d272dac9ec8de8ed08789756a0826472de17#diff-08dab6b222f92a2b21cf992f5d689f53R164

eocanha:  but it&apos;s the typical kind of things related to object destruction. They don&apos;t manifest in the test which uses the video tag, but in the following one, as that kind of destructions are deferred sometimes.

Rolling out manually because webkitbot is broken. Not reopening the original bug because I don&apos;t have access.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266484</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-01-13 09:55:38 -0800</bug_when>
    <thetext>Committed r210732: &lt;http://trac.webkit.org/changeset/210732&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266543</commentid>
    <comment_count>2</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2017-01-13 11:39:44 -0800</bug_when>
    <thetext>Can you please attach some of the test results that caused you to roll this patch out?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266544</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-01-13 11:51:27 -0800</bug_when>
    <thetext>Sure, see:

https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r210678%20(20201)/results.html

The problem is too many media tests timing out.

I notice two different forms of stderr output from several of the media tests. The first is:

(WebKitWebProcess:7612): GStreamer-CRITICAL **: gst_bin_get_by_name: assertion &apos;GST_IS_BIN (bin)&apos; failed

which is not very useful, and might be a preexisting issue. Carlos Lopez, perhaps we could run our tests with G_DEBUG=fatal-criticals to we can get backtraces instead of just warnings? At least in debug mode.

The other form of output is this the following text, repeated tens of thousands of times for each of several media tests:

FAIL: TestControllerRunLoop timed out.

I suspect that is the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266547</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2017-01-13 12:32:03 -0800</bug_when>
    <thetext>The problem is we&apos;re always querying MediaPlayerClient whether we can perform accelerated rendering in MediaPlayerPrivateGStreamerBase. When the MediaPlayerClient object is changed to the null one, this results in a lockup and timeout of WKTR. I&apos;ll post a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266550</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2017-01-13 12:35:43 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; The problem is we&apos;re always querying MediaPlayerClient whether we can
&gt; perform accelerated rendering in MediaPlayerPrivateGStreamerBase. When the
&gt; MediaPlayerClient object is changed to the null one, this results in a
&gt; lockup and timeout of WKTR. I&apos;ll post a patch.

Okay, interesting.  Any time where you are now calling into NullMediaPlayerClient is a time where previously you were calling from a an object whose memory has been freed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1266555</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2017-01-13 12:44:25 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; The problem is we&apos;re always querying MediaPlayerClient whether we can
&gt; &gt; perform accelerated rendering in MediaPlayerPrivateGStreamerBase. When the
&gt; &gt; MediaPlayerClient object is changed to the null one, this results in a
&gt; &gt; lockup and timeout of WKTR. I&apos;ll post a patch.
&gt; 
&gt; Okay, interesting.  Any time where you are now calling into
&gt; NullMediaPlayerClient is a time where previously you were calling from a an
&gt; object whose memory has been freed.

Fun. The patch is at bug #167015.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>