<?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>261777</bug_id>
          
          <creation_ts>2023-09-19 15:29:47 -0700</creation_ts>
          <short_desc>REGRESSION(267963@main): [ wk2 Debug ] imported/w3c/web-platform-tests/webcodecs/audio-encoder.https.any.html is constantly crashing with ASSERTION FAILED: frame-&gt;isDetached()</short_desc>
          <delta_ts>2023-10-23 09:41:11 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261107</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=263527</see_also>
          <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="Ben Schwartz">ben_schwartz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>philn</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1978440</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-09-19 15:29:47 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/webcodecs/audio-encoder.https.any.html

This test is constantly crashing with `ASSERTION FAILED: frame-&gt;isDetached()` on WK2 debug.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fwebcodecs%2Faudio-encoder.https.any.html

CRASH LOG (preview):

ASSERTION FAILED: frame-&gt;isDetached()
/Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp(243) : ExceptionOr&lt;void&gt; WebCore::WebCodecsAudioEncoder::encode(Ref&lt;WebCore::WebCodecsAudioData&gt; &amp;&amp;)
1   0x2ab20ee29 WTFCrash
2   0x332d7d53b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x335abfd2a WebCore::WebCodecsAudioEncoder::encode(WTF::Ref&lt;WebCore::WebCodecsAudioData, WTF::RawPtrTraits&lt;WebCore::WebCodecsAudioData&gt;&gt;&amp;&amp;)
4   0x334c13457 WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encodeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsAudioEncoder*)::&apos;lambda&apos;()::operator()() const
5   0x334c131f1 JSC::JSValue WebCore::toJS&lt;WebCore::IDLUndefined, WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encodeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsAudioEncoder*)::&apos;lambda&apos;()&gt;(JSC::JSGlobalObject&amp;, JSC::ThrowScope&amp;, WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encodeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsAudioEncoder*)::&apos;lambda&apos;()&amp;&amp;)
6   0x334c1314b WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encodeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsAudioEncoder*)
7   0x334c12e5e long long WebCore::IDLOperation&lt;WebCore::JSWebCodecsAudioEncoder&gt;::call&lt;&amp;WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encodeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsAudioEncoder*), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*)
8   0x334c12364 WebCore::jsWebCodecsAudioEncoderPrototypeFunction_encode(JSC::JSGlobalObject*, JSC::CallFrame*)

FULL CRASH LOG:

https://build.webkit.org/results/Apple-Ventura-Debug-WK2-Tests/268119%40main%20(3003)/imported/w3c/web-platform-tests/webcodecs/audio-encoder.https.any-crash-log.txt

REPRODUCTION:

I was able to reproduce this issue on macOS Ventura (13.5, 22G74/arm64) ToT using the following command:

run-webkit-tests --debug --clobber-old-results --verbose imported/w3c/web-platform-tests/webcodecs/audio-encoder.https.any.html

REGRESSION:

I was able to bisect a regression point at 267963@main (issue did not reproduce at 267962@main). Changes at that point are directly related to this issue, and are likely what caused it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978441</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-19 15:30:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/115749541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978451</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-19 15:53:58 -0700</bug_when>
    <thetext>Test gardening commit 268155@main (895e3651c69a): &lt;https://commits.webkit.org/268155@main&gt;

Reviewed commits have been landed. Closing PR #17942 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978700</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2023-09-20 09:57:59 -0700</bug_when>
    <thetext>*** Bug 261807 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978702</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2023-09-20 09:58:31 -0700</bug_when>
    <thetext>Fix landed via another (now duped) bugzilla.

https://commits.webkit.org/268195@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978705</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-20 10:15:45 -0700</bug_when>
    <thetext>Test gardening commit 268206@main (244ef47bdd67): &lt;https://commits.webkit.org/268206@main&gt;

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

    </bug>

</bugzilla>