<?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>186596</bug_id>
          
          <creation_ts>2018-06-13 10:11:22 -0700</creation_ts>
          <short_desc>[GTK] MediaStream related crashes and issues on tests on platform GTK since r232589</short_desc>
          <delta_ts>2021-03-25 01:56:41 -0700</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>NEW</bug_status>
          <resolution></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>
          
          <blocked>185787</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>calvaris</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1432691</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-06-13 10:11:22 -0700</bug_when>
    <thetext>The following mediastream tests crash on platform GTK since r232589 &lt;https://trac.webkit.org/changeset/232589&gt;

  fast/mediastream/MediaStream-video-element-displays-buffer.html [ Crash ]
  fast/mediastream/MediaStream-video-element-track-stop.html [ Crash ]
  fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html [ Crash ]
  fast/mediastream/MediaStream-video-element.html [ Crash ]
  fast/mediastream/apply-constraints-audio.html [ Crash ]
  fast/mediastream/change-tracks-media-stream-being-played.html [ Crash ]
  fast/mediastream/media-stream-track-source-failure.html [ Crash ]


Crash logs https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r232791%20(6991)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432694</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-06-13 10:17:35 -0700</bug_when>
    <thetext>but fast/mediastream/media-stream-track-source-failure.html is flaky

sometimes crashes and sometimes fails with this diff: 

--- a/gtk-linux-64-release-tests/build/layout-test-results/fast/mediastream/media-stream-track-source-failure-expected.txt
+++ b/gtk-linux-64-release-tests/build/layout-test-results/fast/mediastream/media-stream-track-source-failure-actual.txt
@@ -1,6 +1,10 @@
+CONSOLE MESSAGE: line 2451: Unhandled Promise Rejection: Error: assert_equals: Video track should have no size expected 0 but got 1120
+CONSOLE MESSAGE: line 2451: Unhandled Promise Rejection: Error: assert_equals: Video track should have no size expected 0 but got 1120
 
 
+Harness Error (FAIL), message = assert_equals: Video track should have no size expected 0 but got 1120
+
 PASS Create stream 
-PASS End video track only 
-PASS End audio track only 
+FAIL End video track only promise_test: Unhandled rejection with value: &quot;Device state did not change in 5 second&quot;
+FAIL End audio track only promise_test: Unhandled rejection with value: &quot;Device state did not change in 5 second&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432696</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-06-13 10:24:43 -0700</bug_when>
    <thetext>And another one:

 - The test imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-default-feature-policy.https.html is timing out</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432780</commentid>
    <comment_count>3</comment_count>
    <who name="Thibault Saunier">tsaunier</who>
    <bug_when>2018-06-13 13:21:53 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #2)
&gt; And another one:
&gt; 
&gt;  - The test
&gt; imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-default-
&gt; feature-policy.https.html is timing out

I think this one is unrelated to the commit (it was not activated in there).

(In reply to Carlos Alberto Lopez Perez from comment #0)
&gt; The following mediastream tests crash on platform GTK since r232589


Remaining after r232796

+ fast/mediastream/change-tracks-media-stream-being-played.htm
+ fast/mediastream/MediaStream-video-element.html

Those seem racy to me (can&apos;t reproduce locally yet), they do not happen with Debug builds also it seems. I am investigating it anyway!

(In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; but fast/mediastream/media-stream-track-source-failure.html is flaky
&gt; 
&gt; sometimes crashes and sometimes fails with this diff: 
&gt; 
&gt; ---
&gt; a/gtk-linux-64-release-tests/build/layout-test-results/fast/mediastream/
&gt; media-stream-track-source-failure-expected.txt
&gt; +++
&gt; b/gtk-linux-64-release-tests/build/layout-test-results/fast/mediastream/
&gt; media-stream-track-source-failure-actual.txt
&gt; @@ -1,6 +1,10 @@
&gt; +CONSOLE MESSAGE: line 2451: Unhandled Promise Rejection: Error:
&gt; assert_equals: Video track should have no size expected 0 but got 1120
&gt; +CONSOLE MESSAGE: line 2451: Unhandled Promise Rejection: Error:
&gt; assert_equals: Video track should have no size expected 0 but got 1120
&gt;  
&gt;  
&gt; +Harness Error (FAIL), message = assert_equals: Video track should have no
&gt; size expected 0 but got 1120
&gt; +
&gt;  PASS Create stream 
&gt; -PASS End video track only 
&gt; -PASS End audio track only 
&gt; +FAIL End video track only promise_test: Unhandled rejection with value:
&gt; &quot;Device state did not change in 5 second&quot;
&gt; +FAIL End audio track only promise_test: Unhandled rejection with value:
&gt; &quot;Device state did not change in 5 second&quot;

Will investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433062</commentid>
    <comment_count>4</comment_count>
    <who name="Thibault Saunier">tsaunier</who>
    <bug_when>2018-06-14 11:50:17 -0700</bug_when>
    <thetext>All looks green with latest build:


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

I have not been able to reproduce issues that happened in r232796 (namely  fast/mediastream/change-tracks-media-stream-being-played.html) and will follow test results see if it flakes again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743693</commentid>
    <comment_count>5</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2021-03-25 01:56:09 -0700</bug_when>
    <thetext>fast/mediastream/apply-constraints-audio.html seems to be passing.
fast/mediastream/change-tracks-media-stream-being-played.html times out flakily.
fast/mediastream/media-stream-track-source-failure.html times out flakily.

The rest seem to pass to me.

Applies to bots and locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743695</commentid>
    <comment_count>6</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2021-03-25 01:56:41 -0700</bug_when>
    <thetext>What I mean is that I see no crash.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>