<?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>276343</bug_id>
          
          <creation_ts>2024-07-08 17:37:22 -0700</creation_ts>
          <short_desc>[WebGPU] fast/webgpu/texture-supports-blending.html is a flaky failure</short_desc>
          <delta_ts>2024-07-09 10:13:42 -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>WebGPU</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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="Mike Wyrzykowski">mwyrzykowski</reporter>
          <assigned_to name="Mike Wyrzykowski">mwyrzykowski</assigned_to>
          <cc>cdumez</cc>
    
    <cc>mwyrzykowski</cc>
    
    <cc>rniwa</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2045207</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-08 17:37:22 -0700</bug_when>
    <thetext>[WebGPU] fast/webgpu/texture-supports-blending.html is a flaky failure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045208</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-08 17:38:08 -0700</bug_when>
    <thetext>seems to only occur on x86:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   WebCore                       	       0x32e03f7b4 WTFCrashWithInfo(int, char const*, char const*, int) + 100
1   WebCore                       	       0x32e5b0b04 WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&amp;) const + 676
2   WebCore                       	       0x32e66e810 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;) + 168
3   WebCore                       	       0x32f1e0410 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&amp;, WTF::Vector&lt;WTF::RefPtr&lt;WebCore::RegisteredEventListener, WTF::RawPtrTraits&lt;WebCore::RegisteredEventListener&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RegisteredEventListener&gt;&gt;, 1ul, WTF::CrashOnOverflow, 2ul, WTF::FastMalloc&gt;, WebCore::EventTarget::EventInvokePhase) + 1072
4   WebCore                       	       0x32f1dfde0 WebCore::EventTarget::fireEventListeners(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase) + 484
5   WebCore                       	       0x32f1dfbdc WebCore::EventTarget::dispatchEvent(WebCore::Event&amp;) + 436
6   WebCore                       	       0x32efb2214 WebCore::ActiveDOMObject::queueTaskToDispatchEventInternal(WebCore::EventTarget&amp;, WebCore::TaskSource, WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_5::operator()() const + 64
7   WebCore                       	       0x32efb2138 WTF::Detail::CallableWrapper&lt;WebCore::ActiveDOMObject::queueTaskToDispatchEventInternal(WebCore::EventTarget&amp;, WebCore::TaskSource, WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_5, void&gt;::call() + 28
8   WebCore                       	       0x32e6048a0 WTF::Function&lt;void ()&gt;::operator()() const + 152
9   WebCore                       	       0x32efb283c WebCore::ActiveDOMObjectEventDispatchTask::execute() + 52
10  WebCore                       	       0x32f1cc24c WebCore::EventLoop::run(std::__1::optional&lt;WTF::ApproximateTime&gt;) + 472
11  WebCore                       	       0x32f39ecf0 WebCore::WindowEventLoop::didReachTimeToRun() + 96
12  WebCore                       	       0x32f3a22b0 decltype(*std::declval&lt;WebCore::WindowEventLoop*&amp;&gt;().*std::declval&lt;void (WebCore::WindowEventLoop::*&amp;)()&gt;()()) std::__1::__invoke[abi:sn170006]&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;, void&gt;(void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;) + 116
13  WebCore                       	       0x32f3a2230 std::__1::__bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__apply_functor[abi:sn170006]&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, 0ul, std::__1::tuple&lt;&gt;&gt;(void (WebCore::WindowEventLoop::*&amp;)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;) + 60
14  WebCore                       	       0x32f3a21e8 std::__1::__bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&gt;::operator()[abi:sn170006]&lt;&gt;() + 36
15  WebCore                       	       0x32f3a218c WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&gt;, void&gt;::call() + 28
16  WebCore                       	       0x32e6048a0 WTF::Function&lt;void ()&gt;::operator()() const + 152
17  WebCore                       	       0x32af96b24 WebCore::Timer::fired() + 28</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045211</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-08 17:41:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/131345434&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045212</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-08 17:42:07 -0700</bug_when>
    <thetext>Nevermind, reproduces on arm as well</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045214</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-08 17:43:45 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30587</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045215</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-07-08 17:46:56 -0700</bug_when>
    <thetext>Committed 280758@main (7773036f4563): &lt;https://commits.webkit.org/280758@main&gt;

Reviewed commits have been landed. Closing PR #30587 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045216</commentid>
    <comment_count>6</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-08 17:47:57 -0700</bug_when>
    <thetext>change was skips the test in Debug, we should figure out why JSEventListener::ensureJSFunction is crashing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045329</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-07-09 10:09:53 -0700</bug_when>
    <thetext>This assertion means that a JS wrapper has been collected when it was still needed, i.e. something is wrong with GC marking. In release builds, the symptom will be failing to invoke an event listener.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045331</commentid>
    <comment_count>8</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2024-07-09 10:13:42 -0700</bug_when>
    <thetext>Looking at our usage of queueTaskToDispatchEvent, my guess would be this code in GPUDevice.cpp:593 is related:

    if (eventType == WebCore::eventNames().uncapturederrorEvent) {
        m_backing-&gt;resolveUncapturedErrorEvent([eventType, weakThis = WeakPtr { *this }](bool hasUncapturedError, std::optional&lt;WebGPU::Error&gt;&amp;&amp; error) {
            if (!weakThis || !hasUncapturedError)
                return;

            queueTaskToDispatchEvent(*weakThis.get(), TaskSource::WebGPU, GPUUncapturedErrorEvent::create(WebCore::eventNames().uncapturederrorEvent, GPUUncapturedErrorEventInit { .error = createGPUErrorFromWebGPUError(error) }));
        });
    }</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>