<?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>280425</bug_id>
          
          <creation_ts>2024-09-26 12:31:47 -0700</creation_ts>
          <short_desc>[macOS EWS] ASSERTION FAILED in void WebCore::VideoTrack::clearClient(VideoTrackClient in imported/w3c/web-platform-tests/media-source/mediasource-activesourcebuffers.html</short_desc>
          <delta_ts>2024-09-27 11:56:16 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>278659</dup_id>
          
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>jean-yves.avenard</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>2063454</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2024-09-26 12:31:47 -0700</bug_when>
    <thetext>Observing multiple PRs are having flaky failure in imported/w3c/web-platform-tests/media-source/mediasource-activesourcebuffers.html test. 

ASSERTION FAILED: m_clients.contains(client)
/Volumes/Data/worker/macOS-Sonoma-Debug-Build-EWS/build/Source/WebCore/html/track/VideoTrack.cpp(122) : void WebCore::VideoTrack::clearClient(VideoTrackClient &amp;)
1   0x33232aec4 WebCore::VideoTrack::clearClient(WebCore::VideoTrackClient&amp;)
2   0x331fc2a68 WebCore::HTMLMediaElement::removeVideoTrack(WTF::Ref&lt;WebCore::VideoTrack, WTF::RawPtrTraits&lt;WebCore::VideoTrack&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::VideoTrack&gt;&gt;&amp;&amp;)
3   0x330493a44 auto WebCore::MediaSource::removeSourceBufferWithOptionalDestruction(WebCore::SourceBuffer&amp;, bool)::$_21::operator()&lt;WebCore::HTMLMediaElement&gt;(WebCore::HTMLMediaElement&amp;)
4   0x33049399c WTF::Detail::CallableWrapper&lt;WebCore::MediaSource::removeSourceBufferWithOptionalDestruction(WebCore::SourceBuffer&amp;, bool)::$_21, void, WebCore::HTMLMediaElement&amp;&gt;::call(WebCore::HTMLMediaElement&amp;)
5   0x33049acd4 WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;::operator()(WebCore::HTMLMediaElement&amp;) const
6   0x33049ac1c WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const::$_31::operator()()
7   0x33049ab24 WTF::Detail::CallableWrapper&lt;WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const::$_31, void&gt;::call()
8   0x11891fb84 WTF::Function&lt;void ()&gt;::operator()() const
9   0x11898cdd0 WTF::ensureOnMainThread(WTF::Function&lt;void ()&gt;&amp;&amp;)
10  0x33045ca14 WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext(WTF::Function&lt;void (WebCore::HTMLMediaElement&amp;)&gt;&amp;&amp;) const
11  0x3304628a0 WebCore::MediaSource::removeSourceBufferWithOptionalDestruction(WebCore::SourceBuffer&amp;, bool)
12  0x330462448 WebCore::MediaSource::removeSourceBuffer(WebCore::SourceBuffer&amp;)
13  0x33045cc38 WebCore::MediaSource::detachFromElement()
14  0x3304661c8 WebCore::MediaSourceInterfaceMainThread::detachFromElement()
15  0x331fb171c WebCore::HTMLMediaElement::detachMediaSource()
16  0x331fb0bb0 WebCore::HTMLMediaElement::~HTMLMediaElement()
17  0x3320956d8 WebCore::HTMLVideoElement::~HTMLVideoElement()
18  0x332095794 WebCore::HTMLVideoElement::~HTMLVideoElement()
19  0x3320959c8 WebCore::HTMLVideoElement::operator delete(WebCore::HTMLVideoElement*, std::destroying_delete_t, unsigned long)
20  0x33209592c WebCore::HTMLVideoElement::~HTMLVideoElement()
21  0x331b9d5f8 WebCore::Node::removedLastRef()
22  0x32d62fc7c WebCore::Node::deref() const
23  0x32dc1976c WebCore::EventTarget::deref()
24  0x32dc196f4 WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;::derefIfNotNull(WebCore::EventTarget*)
25  0x32dc19688 WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
26  0x32dc193a4 WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
27  0x32e498290 WebCore::JSDOMWrapper&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;&gt;::~JSDOMWrapper()
28  0x32e498260 WebCore::JSEventTarget::~JSEventTarget()
29  0x32e3ecd48 WebCore::JSEventTarget::~JSEventTarget()
30  0x32e37b164 WebCore::JSEventTarget::destroy(JSC::JSCell*)
31  0x11a76459c JSC::JSDestructibleObjectDestroyFunc::operator()(JSC::VM&amp;, JSC::JSCell*) const
com.apple.WebKit.WebContent.Development terminated (pid 16272) for reason: crash
LEAK: 1 WebPageProxy

Link:
https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/16046a76-16591/results.html

History: 
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fmedia-source%2Fmediasource-activesourcebuffers.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063457</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-26 12:32:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/136773028&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063524</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-26 16:44:11 -0700</bug_when>
    <thetext>Test gardening commit 284323@main (74fdcda0c49a): &lt;https://commits.webkit.org/284323@main&gt;

Reviewed commits have been landed. Closing PR #34331 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063837</commentid>
    <comment_count>3</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-09-27 11:56:16 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 278659 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>