<?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>152797</bug_id>
          
          <creation_ts>2016-01-06 12:23:29 -0800</creation_ts>
          <short_desc>REGRESSION(r191948): [GStreamer] 4 new timeouts on layout tests.</short_desc>
          <delta_ts>2016-02-03 02:31:41 -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>Platform</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=141835</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>150800</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1153139</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-01-06 12:23:29 -0800</bug_when>
    <thetext>Revision r191948 &lt;http://trac.webkit.org/changeset/191948&gt; has caused 4 new timeouts:

Regressions: Unexpected timeouts (4)
  media/video-controls-no-scripting.html [ Timeout ]
  media/video-source-error.html [ Timeout ]
  media/video-source-load.html [ Timeout ]
  media/video-source-moved.html [ Timeout ]


I have tested to build r191947 and r191948, and I can confirm that this 4 tests started to time out with r191948.


Note: media/video-controls-no-scripting.html was failing before because of bug 141835 (but it was not timing out).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1158624</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-25 17:27:07 -0800</bug_when>
    <thetext>Carlos, do you have time to look at this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1158717</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-01-25 23:11:21 -0800</bug_when>
    <thetext>No, but I&apos;ll find it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161255</commentid>
    <comment_count>3</comment_count>
      <attachid>270485</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-02 06:00:34 -0800</bug_when>
    <thetext>Created attachment 270485
Patch

This seems to be a problem in the very few cases that the gst bus sync handler is called form the main thread. We were avoiding scheduling to the main thread in that case, but for some reason the bus gets stalled or something. So always end the message to the main thread. This fixed the timeouts for me for media/video-source-load.html, media/video-source-moved.html and media/video-controls-no-scripting.html, the others timeout, but they also timeout for me reverting the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161460</commentid>
    <comment_count>4</comment_count>
      <attachid>270485</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-02 16:52:54 -0800</bug_when>
    <thetext>Comment on attachment 270485
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=270485&amp;action=review

&gt; Source/WebCore/ChangeLog:9
&gt; +        sync hanlder was called in the main thread. It seems that

typo: hanlder</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161461</commentid>
    <comment_count>5</comment_count>
      <attachid>270485</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-02 16:53:24 -0800</bug_when>
    <thetext>Comment on attachment 270485
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=270485&amp;action=review

&gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1906
&gt; +            GRefPtr&lt;GstMessage&gt; protectMessage(message);

protectedMessage is a better name for this local variable, since it’s not just used to protect the message, but to send it across threads as well</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161623</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-03 02:31:41 -0800</bug_when>
    <thetext>Committed r196060: &lt;http://trac.webkit.org/changeset/196060&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>270485</attachid>
            <date>2016-02-02 06:00:34 -0800</date>
            <delta_ts>2016-02-02 16:52:54 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>wcore-gst-timeouts.diff</filename>
            <type>text/plain</type>
            <size>2275</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA1Nzk0MGM4Li43ODViNDgyIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTgg
QEAKKzIwMTYtMDItMDIgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFJFR1JFU1NJT04ocjE5MTk0OCk6IFtHU3RyZWFtZXJdIDQgbmV3IHRpbWVv
dXRzIG9uIGxheW91dCB0ZXN0cy4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTE1Mjc5NworCisgICAgICAgIFJldmlld2VkIG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HBsYXll
ci5jcmVhdGVXZWFrUHRyKCk7CisgICAgICAgICAgICBSdW5Mb29wOjptYWluKCkuZGlzcGF0Y2go
W3dlYWtUaGlzLCBwcm90ZWN0TWVzc2FnZV0geworICAgICAgICAgICAgICAgIGlmICh3ZWFrVGhp
cykKKyAgICAgICAgICAgICAgICAgICAgd2Vha1RoaXMtPmhhbmRsZU1lc3NhZ2UocHJvdGVjdE1l
c3NhZ2UuZ2V0KCkpOworICAgICAgICAgICAgfSk7CiAgICAgICAgIH0KICAgICAgICAgZ3N0X21l
c3NhZ2VfdW5yZWYobWVzc2FnZSk7CiAgICAgICAgIHJldHVybiBHU1RfQlVTX0RST1A7Cg==
</data>
<flag name="review"
          id="295319"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>