Bug 230682 - [GTK] Assertion on gamepad in debug build
Summary: [GTK] Assertion on gamepad in debug build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Víctor M. Jáquez L.
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-23 03:18 PDT by Víctor M. Jáquez L.
Modified: 2021-09-24 23:25 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.33 KB, patch)
2021-09-23 03:25 PDT, Víctor M. Jáquez L.
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor M. Jáquez L. 2021-09-23 03:18:49 PDT
$ run-minibrowser --gtk --debug  https://greggman.github.io/html5-gamepad-test                                                                                         
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
ASSERTION FAILED: m_gamepads.isEmpty()
/app/webkit/Source/WebKit/WebProcess/Gamepad/WebGamepadProvider.cpp(58) : void WebKit::WebGamepadProvider::setInitialGamepads(const Vector<WebKit::GamepadData> &)
1   0x7fcb655a3f19 WTFCrash
2   0x7fcb72b88acb /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0xb096acb) [0x7fcb72b88acb]
3   0x7fcb73ed74f3 WebKit::WebGamepadProvider::setInitialGamepads(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&)
4   0x7fcb73e84121 WebKit::WebProcess::setInitialGamepads(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&)
5   0x7fcb730eaf57 void IPC::callMemberFunctionImpl<WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&), std::tuple<WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, 0ul>(WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&), std::tuple<WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >&&, std::integer_sequence<unsigned long, 0ul>)
6   0x7fcb730e80cd void IPC::callMemberFunction<WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&), std::tuple<WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, std::integer_sequence<unsigned long, 0ul> >(std::tuple<WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >&&, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&))
7   0x7fcb730d4d93 void IPC::handleMessage<Messages::WebProcess::SetInitialGamepads, WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&)>(IPC::Connection&, IPC::Decoder&, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::Vector<WebKit::GamepadData, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&))
8   0x7fcb730d1587 WebKit::WebProcess::didReceiveWebProcessMessage(IPC::Connection&, IPC::Decoder&)
9   0x7fcb73e83872 WebKit::WebProcess::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
10  0x7fcb7373b41e IPC::Connection::dispatchMessage(IPC::Decoder&)
11  0x7fcb7373b8a5 IPC::Connection::dispatchMessage(std::unique_ptr<IPC::Decoder, std::default_delete<IPC::Decoder> >)
12  0x7fcb7373bd9d IPC::Connection::dispatchOneIncomingMessage()
13  0x7fcb737406d5 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0xbc4e6d5) [0x7fcb737406d5]
14  0x7fcb73740659 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0xbc4e659) [0x7fcb73740659]
15  0x7fcb72bfd3b2 WTF::Function<void ()>::operator()() const
16  0x7fcb655df72e WTF::RunLoop::performWork()
17  0x7fcb65674109 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x44af109) [0x7fcb65674109]
18  0x7fcb656740e5 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x44af0e5) [0x7fcb656740e5]
19  0x7fcb65674099 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x44af099) [0x7fcb65674099]
20  0x7fcb65673295 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x44ae295) [0x7fcb65673295]
21  0x7fcb5eded214 g_main_context_dispatch
22  0x7fcb5eded5b8 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x585b8) [0x7fcb5eded5b8]
23  0x7fcb5eded8c3 g_main_loop_run
24  0x7fcb65673818 WTF::RunLoop::run()
25  0x7fcb742a8ce4 WebKit::AuxiliaryProcessMainBase<WebKit::WebProcess, true>::run(int, char**)
26  0x7fcb742a86f0 int WebKit::AuxiliaryProcessMain<WebKit::WebProcessMainGtk>(int, char**)
27  0x7fcb742a8467 WebKit::WebProcessMain(int, char**)
28  0x4008b2 /app/webkit/WebKitBuild/Debug/bin/WebKitWebProcess() [0x4008b2]
29  0x7fcb5e744b90 __libc_start_main
30  0x4007ce /app/webkit/WebKitBuild/Debug/bin/WebKitWebProcess() [0x4007ce]

** (MiniBrowser:21): WARNING **: 03:17:57.828: WebProcess CRASHED
Comment 1 Víctor M. Jáquez L. 2021-09-23 03:25:34 PDT
Created attachment 439030 [details]
Patch
Comment 2 EWS 2021-09-24 23:24:57 PDT
Committed r283074 (242132@main): <https://commits.webkit.org/242132@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 439030 [details].
Comment 3 Radar WebKit Bug Importer 2021-09-24 23:25:20 PDT
<rdar://problem/83526841>