<?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>308265</bug_id>
          
          <creation_ts>2026-02-19 17:39:30 -0800</creation_ts>
          <short_desc>[GStreamer] Test media/media-source/media-source-reopen.html is a flaky failure</short_desc>
          <delta_ts>2026-03-24 07:02:19 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>309438</dup_id>
          
          <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="Carlos Alberto Lopez Perez">clopez</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>2183236</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-02-19 17:39:30 -0800</bug_when>
    <thetext>The test media/media-source/media-source-reopen.html fails randomly on WPE and GTK

The bot gtk-release completed 1055 runs on the interval [303869@main-307860@main]
Frequency of results for test: media/media-source/media-source-reopen.html
  1042 times [98.8%]     -&gt;  NOERROR
  13 times [1.2%]        -&gt;  TEXT PASS

Of those 1055 runs it didn&apos;t match the expectation 13 times [1.2%]
Details of the type and frequency of unmatched expectations:
  13 times [1.2%]        -&gt;  TEXT PASS (Expected: PASS)

Flakiness factor: 2.5%
    - This test was flaky on 2.5% of the 1055 runs analyzed, either giving different
      results within a single run, or a different result than in the previous run.

The bot wpe-release completed 1256 runs on the interval [303869@main-307860@main]
Frequency of results for test: media/media-source/media-source-reopen.html
  1241 times [98.8%]     -&gt;  NOERROR
  15 times [1.2%]        -&gt;  TEXT PASS

Of those 1256 runs it didn&apos;t match the expectation 15 times [1.2%]
Details of the type and frequency of unmatched expectations:
  15 times [1.2%]        -&gt;  TEXT PASS (Expected: PASS)

Flakiness factor: 2.3%
    - This test was flaky on 2.3% of the 1256 runs analyzed, either giving different
      results within a single run, or a different result than in the previous run.


This is the diff when it fails: 

--- /sdk/webkit/layout-test-results/media/media-source/media-source-reopen-expected.txt
+++ /sdk/webkit/layout-test-results/media/media-source/media-source-reopen-actual.txt
@@ -15,6 +15,7 @@
 EXPECTED (video.buffered.end(video.buffered.length-1) == Math.min(audiosb.buffered.end(audiosb.buffered.length-1), videosb.buffered.end(videosb.buffered.length-1)) == &apos;true&apos;) OK
 EVENT(update)
 RUN(source.endOfStream())
-EVENT(ended)
+EVENT(error)
+[object Event] FAIL
 END OF TEST
 


And it generates this stderr output:

0:00:06.395341962 1251419 0x7ff80c000e20 ERROR              videometa gstvideometa.c:424:default_map: plane 1, no memory at offset 309760
0:00:06.395355768 1251419 0x7ff80c000e20 ERROR                default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 1
0:00:06.395436089 1251419 0x55a0dc0155e0 ERROR           webkitcommon GStreamerCommon.cpp:1073:operator():&lt;mse-media-player-8&gt; Got message: error message: 0x7ff5b42ff370, time 99:99:99.999999999, seq-num 9917, element &apos;avdec_h264-5&apos;, GstMessageError, gerror=(GError)NULL, debug=(string)&quot;../../../../../jhbuild/checkout/gstreamer/subprojects/gst-libav/ext/libav/gstavviddec.c\(1888\):\ get_output_buffer\ \(\):\ /GstPlayBin3:mse-media-player-8/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-8/avdec_h264:avdec_h264-5:\012The\ video\ memory\ allocated\ from\ downstream\ pool\ could\ not\ mapped\ for\ read\ and\ write.&quot;, details=(structure)&quot;message-details\,\ stream-id\=\(string\)1\,\ uri\=\(string\)mediasourceblob:file:///61ebad0b-2eda-426a-8ac8-194dbb2f9071\;&quot;;
0:00:06.395450015 1251419 0x55a0dc0155e0 ERROR      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:2122:handleMessage:&lt;mse-media-player-8&gt; Cannot access memory for read and write operation. (url=mediasourceblob:file:///61ebad0b-2eda-426a-8ac8-194dbb2f9071) (code=7)


See run details: https://build.webkit.org/results/WPE-Linux-64-bit-Release-Tests/307804@main%20(25398)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193134</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-03-24 07:02:19 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 309438 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>