<?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>268917</bug_id>
          
          <creation_ts>2024-02-07 07:34:53 -0800</creation_ts>
          <short_desc>[GStreamer][Debug] More audio worklet flaky crashes</short_desc>
          <delta_ts>2026-01-21 08:28:32 -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>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>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2011394</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-02-07 07:34:53 -0800</bug_when>
    <thetext>That make no sense.

imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletglobalscope-sample-rate.https.html

Thread 1 (Thread 0x7f3d23fff6c0 (LWP 639517)):
#0  std::__atomic_base&lt;unsigned char&gt;::load(std::memory_order) const (__m=std::memory_order::relaxed, this=0x8) at /usr/include/c++/13.2.0/bits/atomic_base.h:505
#1  WTF::Atomic&lt;unsigned char&gt;::load(std::memory_order) const (this=0x8, order=std::memory_order::relaxed) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Atomics.h:63
#2  0x00007f3e41c74560 in WTF::LockAlgorithm&lt;unsigned char, (unsigned char)1, (unsigned char)2, WTF::EmptyLockHooks&lt;unsigned char&gt; &gt;::tryLock(WTF::Atomic&lt;unsigned char&gt;&amp;) (lock=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/LockAlgorithm.h:78
#3  0x00007f3e41c73f8a in WTF::Lock::tryLock() (this=0x8) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Lock.h:71
#4  0x00007f3e491f0f02 in WebCore::AudioDestination::callRenderCallback(WebCore::AudioBus*, WebCore::AudioBus*, unsigned long, WebCore::AudioIOPosition const&amp;) (this=0x0, sourceBus=0x0, destinationBus=0x7f3e244e9480, framesToProcess=128, outputPosition=...) at /app/webkit/Source/WebCore/platform/audio/AudioDestination.h:103
#5  0x00007f3e4927427c in webKitWebAudioSrcRenderAndPushFrames(WTF::GRefPtr&lt;_GstElement&gt; const&amp;, WTF::GRefPtr&lt;_GstBuffer&gt;&amp;&amp;) (element=..., buffer=...) at /app/webkit/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:337
#6  0x00007f3e492745d8 in operator()() (__closure=0x7f3cfa518828) at /app/webkit/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:385
#7  0x00007f3e49275666 in WTF::Detail::CallableWrapper&lt;webKitWebAudioSrcRenderIteration(WebKitWebAudioSrc*)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f3cfa518820) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#8  0x00007f3e416b9377 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f3e243a4ef8) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#9  0x00007f3e47210a90 in operator()(WebCore::ScriptExecutionContext&amp;) (__closure=0x7f3e243a4ef8) at /app/webkit/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp:151
#10 0x00007f3e47218cc8 in WTF::Detail::CallableWrapper&lt;WebCore::DefaultAudioDestinationNode::dispatchToRenderThreadFunction()::&lt;lambda(WTF::Function&lt;void()&gt;&amp;&amp;)&gt;::&lt;lambda(WebCore::ScriptExecutionContext&amp;)&gt;, void, WebCore::ScriptExecutionContext&amp;&gt;::call(WebCore::ScriptExecutionContext &amp;) (this=0x7f3e243a4ef0, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#11 0x00007f3e46b326d7 in WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const (this=0x7f3cfa518840, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#12 0x00007f3e4733e233 in WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;) (this=0x7f3cfa518840, context=...) at /app/webkit/Source/WebCore/dom/ScriptExecutionContext.h:233
#13 0x00007f3e4a36fc33 in WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7f3cfa518840, context=0x7f3dc50b3530) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:289
#14 0x00007f3e4a36f623 in WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&amp;) (this=0x7f3e242df960, context=0x7f3dc50b3530, predicate=...) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:224
#15 0x00007f3e4a36ef9e in WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7f3e242df960, context=0x7f3dc50b3530) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:156
#16 0x00007f3e4a36db9f in WebCore::WorkerOrWorkletThread::runEventLoop() (this=0x7f3e2492ac50) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:113
#17 0x00007f3e4a36e070 in WebCore::WorkerOrWorkletThread::workerOrWorkletThread() (this=0x7f3e2492ac50) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:187
#18 0x00007f3e471e22ab in operator()() const (__closure=0x7f3e243a7d98) at /app/webkit/Source/WebCore/Modules/webaudio/AudioWorkletThread.cpp:73
#19 0x00007f3e471f5118 in WTF::Detail::CallableWrapper&lt;WebCore::AudioWorkletThread::createThread()::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f3e243a7d90) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#20 0x00007f3e416b9377 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f3d23ffeb80) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#21 0x00007f3e44bf02f1 in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) (newThreadContext=0x7f3e24af97b0) at /app/webkit/Source/WTF/wtf/Threading.cpp:258
#22 0x00007f3e44cb605f in WTF::wtfThreadEntryPoint(void*) (context=0x7f3e24af97b0) at /app/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:247
#23 0x00007f3e351b2e39 in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:444
#24 0x00007f3e3523a8c4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100


imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletprocessor-promises.https.html

Thread 1 (Thread 0x7ef7567fc6c0 (LWP 655198)):
#0  0x00007f10c7c7deab in WebCore::AudioDestinationGStreamer::notifyIsPlaying(bool) (this=0x0, isPlaying=true) at /app/webkit/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp:293
#1  0x00007f10c7cad2d2 in webKitWebAudioSrcRenderAndPushFrames(WTF::GRefPtr&lt;_GstElement&gt; const&amp;, WTF::GRefPtr&lt;_GstBuffer&gt;&amp;&amp;) (element=..., buffer=...) at /app/webkit/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:340
#2  0x00007f10c7cad5d8 in operator()() (__closure=0x7ef5c211cd08) at /app/webkit/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:385
#3  0x00007f10c7cae666 in WTF::Detail::CallableWrapper&lt;webKitWebAudioSrcRenderIteration(WebKitWebAudioSrc*)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7ef5c211cd00) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#4  0x00007f10c00f2377 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7ef5c203c3a8) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#5  0x00007f10c5c49a90 in operator()(WebCore::ScriptExecutionContext&amp;) (__closure=0x7ef5c203c3a8) at /app/webkit/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp:151
#6  0x00007f10c5c51cc8 in WTF::Detail::CallableWrapper&lt;WebCore::DefaultAudioDestinationNode::dispatchToRenderThreadFunction()::&lt;lambda(WTF::Function&lt;void()&gt;&amp;&amp;)&gt;::&lt;lambda(WebCore::ScriptExecutionContext&amp;)&gt;, void, WebCore::ScriptExecutionContext&amp;&gt;::call(WebCore::ScriptExecutionContext &amp;) (this=0x7ef5c203c3a0, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#7  0x00007f10c556b6d7 in WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const (this=0x7ef5c211cd20, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#8  0x00007f10c5d77233 in WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;) (this=0x7ef5c211cd20, context=...) at /app/webkit/Source/WebCore/dom/ScriptExecutionContext.h:233
#9  0x00007f10c8da8c33 in WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7ef5c211cd20, context=0x7ef5c21140c0) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:289
#10 0x00007f10c8da8623 in WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&amp;) (this=0x7ef5c20d06c0, context=0x7ef5c21140c0, predicate=...) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:224
#11 0x00007f10c8da7f9e in WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7ef5c20d06c0, context=0x7ef5c21140c0) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:156
#12 0x00007f10c8da6b9f in WebCore::WorkerOrWorkletThread::runEventLoop() (this=0x7ef5c2087c10) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:113
#13 0x00007f10c8da7070 in WebCore::WorkerOrWorkletThread::workerOrWorkletThread() (this=0x7ef5c2087c10) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:187
#14 0x00007f10c5c1b2ab in operator()() const (__closure=0x7ef5c2057028) at /app/webkit/Source/WebCore/Modules/webaudio/AudioWorkletThread.cpp:73
#15 0x00007f10c5c2e118 in WTF::Detail::CallableWrapper&lt;WebCore::AudioWorkletThread::createThread()::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7ef5c2057020) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#16 0x00007f10c00f2377 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7ef7567fbb80) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#17 0x00007f10c36292f1 in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) (newThreadContext=0x7ef5c2033830) at /app/webkit/Source/WTF/wtf/Threading.cpp:258
#18 0x00007f10c36ef05f in WTF::wtfThreadEntryPoint(void*) (context=0x7ef5c2033830) at /app/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:247
#19 0x00007f10b3bebe39 in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:444
#20 0x00007f10b3c738c4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011396</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2024-02-07 07:38:11 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24005</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011397</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-07 07:42:10 -0800</bug_when>
    <thetext>Committed 274215@main (684a2658a02f): &lt;https://commits.webkit.org/274215@main&gt;

Reviewed commits have been landed. Closing PR #24005 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011398</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-07 07:43:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/122470228&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011399</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-02-07 07:43:46 -0800</bug_when>
    <thetext>Needs patch...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173666</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-01-21 08:23:49 -0800</bug_when>
    <thetext>They&apos;re consistently passing now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173667</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-01-21 08:26:20 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173668</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-21 08:28:30 -0800</bug_when>
    <thetext>Committed 305942@main (d036f86fd1a9): &lt;https://commits.webkit.org/305942@main&gt;

Reviewed commits have been landed. Closing PR #56961 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>