<?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>265206</bug_id>
          
          <creation_ts>2023-11-21 10:37:07 -0800</creation_ts>
          <short_desc>[GStreamer][MSE][Debug] media/encrypted-media/encrypted-media-append-encrypted-unencrypted.html is flaky crash</short_desc>
          <delta_ts>2026-04-06 10:35:13 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>fujii</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1994211</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-21 10:37:07 -0800</bug_when>
    <thetext>Thread 1 (Thread 0x7f8b6dffb640 (LWP 737604)):
#0  g_logv (log_domain=0x7f8bf7f869ae &quot;GStreamer&quot;, log_level=G_LOG_LEVEL_CRITICAL, format=&lt;optimized out&gt;, args=&lt;optimized out&gt;) at ../glib/gmessages.c:1422
#1  0x00007f8bf8e35c53 in g_log (log_domain=log_domain@entry=0x7f8bf7f869ae &quot;GStreamer&quot;, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f8bf8e99ff7 &quot;%s: assertion &apos;%s&apos; failed&quot;) at ../glib/gmessages.c:1460
#2  0x00007f8bf8e36e6d in g_return_if_fail_warning (log_domain=log_domain@entry=0x7f8bf7f869ae &quot;GStreamer&quot;, pretty_function=pretty_function@entry=0x7f8bf7fab790 &lt;__func__.8.lto_priv.36&gt; &quot;gst_segment_to_stream_time&quot;, expression=expression@entry=0x7f8bf7fa965b &quot;segment-&gt;format == format&quot;) at ../glib/gmessages.c:2930
#3  0x00007f8bf7f48893 in gst_segment_to_stream_time (segment=segment@entry=0x556fcf4f0e60, format=format@entry=GST_FORMAT_TIME, position=&lt;optimized out&gt;) at ../gst/gstsegment.c:527
#4  0x00007f8b98521a09 in volume_before_transform (base=0x556fcf4f0d40, buffer=&lt;optimized out&gt;) at ../gst/volume/gstvolume.c:696
#5  0x00007f8bf802a7b3 in gst_base_transform_chain (pad=&lt;optimized out&gt;, parent=0x556fcf4f0d40, buffer=0x7f89180661c0 [None]) at ../libs/gst/base/gstbasetransform.c:2339
#6  0x00007f8bf7f267a5 in gst_pad_chain_data_unchecked (pad=pad@entry=0x556fcf4a0db0, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4463
#7  0x00007f8bf7f2a194 in gst_pad_push_data (pad=pad@entry=0x556fcf4fba30, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4739
#8  0x00007f8bf7f2a55e in gst_pad_push (pad=0x556fcf4fba30, buffer=0x7f89180661c0 [None]) at ../gst/gstpad.c:4858
#9  0x00007f8bf802a8cb in gst_base_transform_chain (pad=&lt;optimized out&gt;, parent=0x556fcf4f66e0, buffer=&lt;optimized out&gt;) at ../libs/gst/base/gstbasetransform.c:2391
#10 0x00007f8bf7f267a5 in gst_pad_chain_data_unchecked (pad=pad@entry=0x556fcf4eea40, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4463
#11 0x00007f8bf7f2a194 in gst_pad_push_data (pad=pad@entry=0x556fcf233600, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4739
#12 0x00007f8bf7f2a55e in gst_pad_push (pad=0x556fcf233600, buffer=0x7f89180661c0 [None]) at ../gst/gstpad.c:4858
#13 0x00007f8bf802a8cb in gst_base_transform_chain (pad=&lt;optimized out&gt;, parent=0x556fcf4eb350, buffer=&lt;optimized out&gt;) at ../libs/gst/base/gstbasetransform.c:2391
#14 0x00007f8bf7f267a5 in gst_pad_chain_data_unchecked (pad=pad@entry=0x556fcf1f5c80, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4463
#15 0x00007f8bf7f2a194 in gst_pad_push_data (pad=pad@entry=0x556fcf161070, type=type@entry=4112, data=data@entry=0x7f89180661c0) at ../gst/gstpad.c:4739
#16 0x00007f8bf7f2a55e in gst_pad_push (pad=0x556fcf161070, buffer=buffer@entry=0x7f89180661c0 [None]) at ../gst/gstpad.c:4858
#17 0x00007f8b9857a5bc in gst_queue_push_one (queue=0x556fcf4a6850) at ../plugins/elements/gstqueue.c:1388
#18 gst_queue_loop (pad=&lt;optimized out&gt;) at ../plugins/elements/gstqueue.c:1541
#19 0x00007f8bf7f5e911 in gst_task_func (task=0x7f89280fec80) at ../gst/gsttask.c:384
#20 0x00007f8bf8e63fb2 in g_thread_pool_thread_proxy (data=&lt;optimized out&gt;) at ../glib/gthreadpool.c:350
#21 0x00007f8bf8e5ec02 in g_thread_proxy (data=0x7f8b880017f0) at ../glib/gthread.c:831
#22 0x00007f8bf882a25a in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:442
#23 0x00007f8bf88b2fc4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;fdkaacdec0:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audio_0:proxypad217&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;decodebin3-0:audio_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audio_0:proxypad218&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;uridecodebin3:audio_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;playsink:audio_sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;audio_sink:proxypad213&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audiotee:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;audiotee:src_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;streamsynchronizer10:sink_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;streamsynchronizer10:src_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;abin:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;sink:proxypad222&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;filter-convert:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;filter-convert:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;scaletempo10:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;scaletempo10:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;aqueue:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;aqueue:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;aconv:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;sink:proxypad220&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;conv:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;conv:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;resample:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;resample:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;src:proxypad221&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;aconv:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audio-sink:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;sink:proxypad208&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audioTee:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;audioTee:src_0&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;queue11:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;queue11:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audioconvert22:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;audioconvert22:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;audioresample22:sink&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4705:gst_pad_push_data:&lt;audioresample22:src&gt; Got data flow before segment event
STDERR: ../gst/gstpad.c:4432:gst_pad_chain_data_unchecked:&lt;volume:sink&gt; Got data flow before segment event
STDERR: gst_segment_to_stream_time: assertion &apos;segment-&gt;format == format&apos; failed
STDERR: WebKitWebProcess terminated (pid 731209) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082323</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-12-17 07:05:57 -0800</bug_when>
    <thetext>Same as bug #227882

*** This bug has been marked as a duplicate of bug 227882 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168578</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-12-30 03:21:53 -0800</bug_when>
    <thetext>The test case is still randomly crashing, but with another assertion failure.
This bug ticket is closed as a duplicate of bug#265206.
But, the test case is still marked with this bug ticket. Reopened.

https://build.webkit.org/results/WPE-Linux-64-bit-Debug-Tests/304987@main%20(13574)/media/encrypted-media/encrypted-media-append-encrypted-unencrypted-stderr.txt

ASSERTION FAILED: GST_PAD_IS_LINKED(track.entryPad.get())
../../../Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp(1178) : void WebCore::AppendPipeline::linkPadWithTrack(GstPad*, Track&amp;)
1   0x7faea1042bd4 WebCore::AppendPipeline::linkPadWithTrack(_GstPad*, WebCore::AppendPipeline::Track&amp;)
2   0x7faea10426ab WebCore::AppendPipeline::recycleTrackForPad(_GstPad*)
3   0x7faea103f043 WebCore::AppendPipeline::didReceiveInitializationSegment()
4   0x7faea103a7d9 operator()
5   0x7faea10566fa call
6   0x7faea0fcef0f WTF::Function&lt;WebCore::AbortableTaskQueue::Void ()&gt;::operator()() const
7   0x7faea0fc56ed WebCore::AbortableTaskQueue::enqueueTaskAndWait&lt;WebCore::AbortableTaskQueue::Void&gt;(WTF::Function&lt;WebCore::AbortableTaskQueue::Void ()&gt;&amp;&amp;)::{lambda()#1}::operator()() const
8   0x7faea0feba7c WTF::Detail::CallableWrapper&lt;WebCore::AbortableTaskQueue::enqueueTaskAndWait&lt;WebCore::AbortableTaskQueue::Void&gt;(WTF::Function&lt;WebCore::AbortableTaskQueue::Void ()&gt;&amp;&amp;)::{lambda()#1}, void&gt;::call()
9   0x7fae94d619eb WTF::Function&lt;void ()&gt;::operator()() const
10  0x7faea0f94aa9 WebCore::AbortableTaskQueue::Task::dispatch()
11  0x7faea0f94b5e WebCore::AbortableTaskQueue::postTask(WTF::Function&lt;void ()&gt;&amp;&amp;)::{lambda()#1}::operator()() const
12  0x7faea0febf58 WTF::Detail::CallableWrapper&lt;WebCore::AbortableTaskQueue::postTask(WTF::Function&lt;void ()&gt;&amp;&amp;)::{lambda()#1}, void&gt;::call()
13  0x7fae94d619eb WTF::Function&lt;void ()&gt;::operator()() const
14  0x7fae9a5d7e70 WTF::RunLoop::performWork()
15  0x7fae9a7c0622 operator()
16  0x7fae9a7c064a _FUN
17  0x7fae9a7c03f4 operator()
18  0x7fae9a7c0461 _FUN
19  0x7fae842be49e ???
20  0x7fae842be710 g_main_context_dispatch
21  0x7fae9a7c0de5 WTF::RunLoop::runGLibMainLoopIteration(WTF::RunLoop::MayBlock)
22  0x7fae9a7c0e54 WTF::RunLoop::runGLibMainLoop()
23  0x7fae9a7c0f1c WTF::RunLoop::run()
24  0x7fae97a70086 WebKit::AuxiliaryProcessMainBase&lt;WebKit::WebProcess, true&gt;::run(int, char**)
25  0x7fae97a69db7 int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcessMainWPE&gt;(int, char**)
26  0x7fae97a659c0 WebKit::WebProcessMain(int, char**)
27  0x55977b1cd7ed main
28  0x7fae852181ca __libc_start_call_main
29  0x7fae8521828b __libc_start_main
30  0x55977b1cd705 _start
WPEWebProcess terminated (pid 484066) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194861</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-03-29 05:37:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61616</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197272</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-06 10:34:55 -0700</bug_when>
    <thetext>Committed 310649@main (adfa66a8cce6): &lt;https://commits.webkit.org/310649@main&gt;

Reviewed commits have been landed. Closing PR #61616 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197273</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-06 10:35:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/174172033&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>