<?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>278659</bug_id>
          
          <creation_ts>2024-08-26 10:03:46 -0700</creation_ts>
          <short_desc>[ Sonoma Debug arm64]: ASSERTION FAILED: m_clients.contains(client) in imported/w3c/web-platform-tests/media-source/URL-createObjectURL-null.html</short_desc>
          <delta_ts>2024-10-29 00:22:27 -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="Marta Darbinyan">darbinyan</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>destra</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2055364</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2024-08-26 10:03:46 -0700</bug_when>
    <thetext>Observing the flaky crashes with assert failure on the following test on Sonoma Debug arm64.
imported/w3c/web-platform-tests/media-source/URL-createObjectURL-null.html 

The test is also flaky failure on EWS on multiple PRs. 

History:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fmedia-source%2FURL-createObjectURL-null.html&amp;version_name=Sonoma&amp;flavor=wk2&amp;style=debug&amp;architecture=arm64


stderr:
ASSERTION FAILED: m_clients.contains(client)
/Volumes/Data/worker/macOS-Sonoma-Debug-WK2-Tests-EWS/build/Source/WebCore/html/track/VideoTrack.cpp(122) : void WebCore::VideoTrack::clearClient(VideoTrackClient &amp;)
1   0x3336dedb8 WebCore::VideoTrack::clearClient(WebCore::VideoTrackClient&amp;)
2   0x333376a2c WebCore::HTMLMediaElement::removeVideoTrack(WTF::Ref&lt;WebCore::VideoTrack, WTF::RawPtrTraits&lt;WebCore::VideoTrack&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::VideoTrack&gt;&gt;&amp;&amp;)
3   0x331874c48 auto WebCore::MediaSource::removeSourceBuffer(WebCore::SourceBuffer&amp;)::$_21::operator()&lt;WebCore::HTMLMediaElement&gt;(WebCore::HTMLMediaElement&amp;)
4   0x331874ba0 WTF::Detail::CallableWrapper&lt;WebCore::MediaSource::removeSourceBuffer(WebCore::SourceBuffer&amp;)::$_21, void, WebCore::HTMLMediaElement&amp;&gt;::call(WebCore::HTMLMediaElement&amp;)
5   0x33187bfb4 WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;::operator()(WebCore::HTMLMediaElement&amp;) const
6   0x33187bea4 WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const::$_31::operator()()
7   0x33187bdac WTF::Detail::CallableWrapper&lt;WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const::$_31, void&gt;::call()
8   0x11b0724d4 WTF::Function&lt;void ()&gt;::operator()() const
9   0x11b0e2618 WTF::ensureOnMainThread(WTF::Function&lt;void ()&gt;&amp;&amp;)
10  0x33183ef28 WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const
11  0x3318445b8 WebCore::MediaSource::removeSourceBuffer(WebCore::SourceBuffer&amp;)
12  0x33183f090 WebCore::MediaSource::detachFromElement()
13  0x331847e74 WebCore::MediaSourceInterfaceMainThread::detachFromElement()
14  0x33336604c WebCore::HTMLMediaElement::detachMediaSource()
15  0x333365500 WebCore::HTMLMediaElement::~HTMLMediaElement()
16  0x333448414 WebCore::HTMLVideoElement::~HTMLVideoElement()
17  0x3334484d0 WebCore::HTMLVideoElement::~HTMLVideoElement()
18  0x333448704 WebCore::HTMLVideoElement::operator delete(WebCore::HTMLVideoElement*, std::destroying_delete_t, unsigned long)
19  0x333448668 WebCore::HTMLVideoElement::~HTMLVideoElement()
20  0x332f43384 WebCore::Node::removedLastRef()
21  0x32ea45a2c WebCore::Node::derefAllowingPartiallyDestroyed() const
22  0x32ea4580c WebCore::Node::deref() const
23  0x32f0335b4 WebCore::EventTarget::deref()
24  0x32f03353c WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;::derefIfNotNull(WebCore::EventTarget*)
25  0x32f0334d0 WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
26  0x32f033200 WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
27  0x32f8ae260 WebCore::JSDOMWrapper&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;&gt;::~JSDOMWrapper()
28  0x32f8ae230 WebCore::JSEventTarget::~JSEventTarget()
29  0x32f803164 WebCore::JSEventTarget::~JSEventTarget()
30  0x32f791580 WebCore::JSEventTarget::destroy(JSC::JSCell*)
31  0x11cea37cc JSC::JSDestructibleObjectDestroyFunc::operator()(JSC::VM&amp;, JSC::JSCell*) const
com.apple.WebKit.WebContent.Development terminated (pid 45261) for reason: crash
LEAK: 1 WebPageProxy


Link:
https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/a0068150-12679-clean-tree/imported/w3c/web-platform-tests/media-source/URL-createObjectURL-null-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055365</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-26 10:04:10 -0700</bug_when>
    <thetext>&lt;rdar://problem/134709579&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055380</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-26 10:30:55 -0700</bug_when>
    <thetext>Test gardening commit 282748@main (aa3b1ced9417): &lt;https://commits.webkit.org/282748@main&gt;

Reviewed commits have been landed. Closing PR #32715 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063826</commentid>
    <comment_count>3</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-09-27 11:42:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34370</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063838</commentid>
    <comment_count>4</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-09-27 11:56:16 -0700</bug_when>
    <thetext>*** Bug 280425 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064402</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-30 17:18:20 -0700</bug_when>
    <thetext>Test gardening commit 284476@main (c5c3c68877f4): &lt;https://commits.webkit.org/284476@main&gt;

Reviewed commits have been landed. Closing PR #34478 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067653</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-13 20:58:26 -0700</bug_when>
    <thetext>Committed 285110@main (9a18e435893e): &lt;https://commits.webkit.org/285110@main&gt;

Reviewed commits have been landed. Closing PR #34370 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071187</commentid>
    <comment_count>7</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-10-29 00:22:27 -0700</bug_when>
    <thetext>*** Bug 273385 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>