<?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>245051</bug_id>
          
          <creation_ts>2022-09-11 12:55:42 -0700</creation_ts>
          <short_desc>[WK2] Flaky ASSERTION FAILED: m_gamepads.isEmpty() on gamepad/gamepad-polling-access.html</short_desc>
          <delta_ts>2022-12-09 09:26:54 -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>WebCore Misc.</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>
          <dependson>249023</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Marcos Caceres">marcosc</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>marcosc</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1897714</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-09-11 12:55:42 -0700</bug_when>
    <thetext>gamepad/gamepad-polling-access.html occasionally fails the following assertions:

hread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x00000001410dad24 WTFCrash + 20
1   com.apple.WebKit              	0x00000001026bf4d0 WTFCrashWithInfo(int, char const*, char const*, int) + 32
2   com.apple.WebKit              	0x0000000104930a68 WebKit::WebGamepadProvider::setInitialGamepads(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) + 112
3   com.apple.WebKit              	0x00000001045ce558 WebKit::WebProcess::setInitialGamepads(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) + 32
4   com.apple.WebKit              	0x000000010545a50c void IPC::callMemberFunctionImpl&lt;WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;), std::__1::tuple&lt;WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt;, 0ul&gt;(WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;), std::__1::tuple&lt;WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;) + 148
5   com.apple.WebKit              	0x0000000105458030 void IPC::callMemberFunction&lt;WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;), std::__1::tuple&lt;WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt; &gt;(std::__1::tuple&lt;WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt;&amp;&amp;, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)) + 124
6   com.apple.WebKit              	0x0000000105431c04 void IPC::handleMessage&lt;Messages::WebProcess::SetInitialGamepads, WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector&lt;WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)) + 224
7   com.apple.WebKit              	0x000000010542e2a8 WebKit::WebProcess::didReceiveWebProcessMessage(IPC::Connection&amp;, IPC::Decoder&amp;) + 4352
8   com.apple.WebKit              	0x00000001045cd2c4 WebKit::WebProcess::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;) + 116
9   com.apple.WebKit              	0x00000001056cd9f8 IPC::Connection::dispatchMessage(IPC::Decoder&amp;) + 612
10  com.apple.WebKit              	0x00000001056cdf4c IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;) + 632
11  com.apple.WebKit              	0x00000001056ce5a4 IPC::Connection::dispatchOneIncomingMessage() + 216
12  com.apple.WebKit              	0x00000001056ee09c IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_16::operator()() + 72
13  com.apple.WebKit              	0x00000001056edf94 WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_16, void&gt;::call() + 28
14  com.apple.JavaScriptCore      	0x0000000141106358 WTF::Function&lt;void ()&gt;::operator()() const + 124</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897738</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-11 14:30:07 -0700</bug_when>
    <thetext>History: https://results.webkit.org/?suite=layout-tests&amp;test=gamepad%2Fgamepad-polling-access.html

This is a regression, the first crash was on 2022-07-11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897739</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-11 14:30:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/99802167&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897741</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-11 14:32:47 -0700</bug_when>
    <thetext>The test was added on 2022-07-10, 252331@main, so it&apos;s flakily crashing since introduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915475</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-11-29 17:03:05 -0800</bug_when>
    <thetext>This is slowing down commit-queue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916178</commentid>
    <comment_count>5</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2022-12-02 00:45:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/7066</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916547</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-12-03 19:42:30 -0800</bug_when>
    <thetext>Committed 257345@main (a53135c21ca4): &lt;https://commits.webkit.org/257345@main&gt;

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

    </bug>

</bugzilla>