<?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>264934</bug_id>
          
          <creation_ts>2023-11-16 03:07:02 -0800</creation_ts>
          <short_desc>[GStreamer] imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioworklet-interface/audioworklet-registerprocessor-called-on-globalthis.https is flaky crash</short_desc>
          <delta_ts>2024-01-20 04:46:09 -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>bugs-noreply</cc>
    
    <cc>cdumez</cc>
    
    <cc>vitaly</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1993057</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-16 03:07:02 -0800</bug_when>
    <thetext>Thread 1 (Thread 0x7f9fd0ff9640 (LWP 692503)):
#0  std::__uniq_ptr_impl&lt;WebCore::AudioChannel, std::default_delete&lt;WebCore::AudioChannel&gt; &gt;::_M_ptr() const (this=0x0) at /usr/include/c++/12.2.0/bits/unique_ptr.h:191
#1  0x00007fb5cab1fe22 in std::unique_ptr&lt;WebCore::AudioChannel, std::default_delete&lt;WebCore::AudioChannel&gt; &gt;::get() const (this=0x0) at /usr/include/c++/12.2.0/bits/unique_ptr.h:462
#2  0x00007fb5ccac812a in std::unique_ptr&lt;WebCore::AudioChannel, std::default_delete&lt;WebCore::AudioChannel&gt; &gt;::operator-&gt;() const (this=0x0) at /usr/include/c++/12.2.0/bits/unique_ptr.h:455
#3  0x00007fb5ccac2698 in WebCore::AudioBus::zero() (this=0x7f9fc20e1140) at /app/webkit/Source/WebCore/platform/audio/AudioBus.cpp:86
#4  0x00007fb5ccad1b86 in WebCore::AudioDestination::callRenderCallback(WebCore::AudioBus*, WebCore::AudioBus*, unsigned long, WebCore::AudioIOPosition const&amp;) (this=0x7fb5a9e01d80, sourceBus=0x0, destinationBus=0x7f9fc20e1140, framesToProcess=128, outputPosition=...) at /app/webkit/Source/WebCore/platform/audio/AudioDestination.h:110
#5  0x00007fb5ccb21e6a 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:353
#6  0x00007fb5ccb221b6 in operator()() (__closure=0x7f9fc20cd488) at /app/webkit/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:401
#7  0x00007fb5ccb230da in WTF::Detail::CallableWrapper&lt;webKitWebAudioSrcRenderIteration(WebKitWebAudioSrc*)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f9fc20cd480) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#8  0x00007fb5c5223c41 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f9fc21a05d8) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#9  0x00007fb5cab9ef94 in operator()(WebCore::ScriptExecutionContext&amp;) (__closure=0x7f9fc21a05d8) at /app/webkit/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp:151
#10 0x00007fb5caba5404 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=0x7f9fc21a05d0, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#11 0x00007fb5ca530f2d in WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const (this=0x7f9fc20cd4a0, in#0=...) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#12 0x00007fb5cacb325b in WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;) (this=0x7f9fc20cd4a0, context=...) at /app/webkit/Source/WebCore/dom/ScriptExecutionContext.h:223
#13 0x00007fb5cdbb274f in WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7f9fc20cd4a0, context=0x7fb4c912a210) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:286
#14 0x00007fb5cdbb214b in WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&amp;) (this=0x7fb5a9c3d4a0, context=0x7fb4c912a210, predicate=...) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:221
#15 0x00007fb5cdbb1ad2 in WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*) (this=0x7fb5a9c3d4a0, context=0x7fb4c912a210) at /app/webkit/Source/WebCore/workers/WorkerRunLoop.cpp:155
#16 0x00007fb5cdbb06d3 in WebCore::WorkerOrWorkletThread::runEventLoop() (this=0x7fb5a9b2a080) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:113
#17 0x00007fb5cdbb0ba4 in WebCore::WorkerOrWorkletThread::workerOrWorkletThread() (this=0x7fb5a9b2a080) at /app/webkit/Source/WebCore/workers/WorkerOrWorkletThread.cpp:187
#18 0x00007fb5cab5e5ff in operator()() const (__closure=0x7fb5a9db7d58) at /app/webkit/Source/WebCore/Modules/webaudio/AudioWorkletThread.cpp:68
#19 0x00007fb5cab6ba88 in WTF::Detail::CallableWrapper&lt;WebCore::AudioWorkletThread::createThread()::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7fb5a9db7d50) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#20 0x00007fb5c5223c41 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f9fd0ff8b50) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#21 0x00007fb5c868352d in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) (newThreadContext=0x7fb5a98436a0) at /app/webkit/Source/WTF/wtf/Threading.cpp:258
#22 0x00007fb5c873bd87 in WTF::wtfThreadEntryPoint(void*) (context=0x7fb5a98436a0) at /app/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:243
#23 0x00007fb5b96a625a in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:442
#24 0x00007fb5b972efc4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993470</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-17 08:54:39 -0800</bug_when>
    <thetext>Adding Chris in CC.

This is a bit odd, we have an AudioBus storing at least one null channel in its m_channels. I haven&apos;t understood how this is possible yet. Maybe Chris would have an idea?

Of course, I cannot reproduce this flaky crash...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994208</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-21 10:30:34 -0800</bug_when>
    <thetext>http/wpt/webaudio/the-audio-api/the-audioworklet-interface/exposed-properties.https.html also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003151</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-01-05 04:32:20 -0800</bug_when>
    <thetext>*** Bug 267126 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003358</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2024-01-06 05:25:07 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/22464</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003596</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-08 07:43:00 -0800</bug_when>
    <thetext>Committed 272761@main (1fdb9251bb08): &lt;https://commits.webkit.org/272761@main&gt;

Reviewed commits have been landed. Closing PR #22464 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003597</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-08 07:44:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/120649517&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006345</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-01-20 04:46:09 -0800</bug_when>
    <thetext>*** Bug 264729 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>