<?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>252264</bug_id>
          
          <creation_ts>2023-02-14 13:36:24 -0800</creation_ts>
          <short_desc>[GTK] Criticals from webkitOptionMenuSetEvent when opening any combo box</short_desc>
          <delta_ts>2023-02-16 09:17:52 -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>WebKitGTK</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1933581</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-14 13:36:24 -0800</bug_when>
    <thetext>Set G_DEBUG=fatal-criticals in your environment, visit https://dor.mo.gov/forms/?formName=&amp;category=&amp;year=99 and try to select any of the combo boxes. Crash:

(gdb) bt
#0  _g_log_abort (breakpoint=1) at ../../../../Projects/glib/glib/gmessages.c:558
#1  0x00007f06c3292739 in g_logv (log_domain=0x7f06b9b77f0f &quot;GLib-GObject&quot;, log_level=G_LOG_LEVEL_CRITICAL, 
    format=0x7f06c331160f &quot;%s: assertion &apos;%s&apos; failed&quot;, args=0x7ffd83346a18)
    at ../../../../Projects/glib/glib/gmessages.c:1418
#2  0x00007f06c3292830 in g_log (log_domain=0x7f06b9b77f0f &quot;GLib-GObject&quot;, log_level=G_LOG_LEVEL_CRITICAL, 
    format=0x7f06c331160f &quot;%s: assertion &apos;%s&apos; failed&quot;) at ../../../../Projects/glib/glib/gmessages.c:1460
#3  0x00007f06c329588d in g_return_if_fail_warning (log_domain=0x7f06b9b77f0f &quot;GLib-GObject&quot;, 
    pretty_function=0x7f06b9b79800 &lt;__func__.33&gt; &quot;g_object_ref_sink&quot;, 
    expression=0x7f06b9b78386 &quot;G_IS_OBJECT (object)&quot;) at ../../../../Projects/glib/glib/gmessages.c:2930
#4  0x00007f06b9b49e73 in g_object_ref_sink (_object=0x1d3a480) at ../../../../Projects/glib/gobject/gobject.c:3498
#5  0x00007f06bfaa2d7d in WTF::refGPtr&lt;_GdkEvent&gt; (ptr=0x1d3a480) at WTF/Headers/wtf/glib/GRefPtr.h:264
#6  WTF::GRefPtr&lt;_GdkEvent&gt;::operator= (this=0x1d2c138, optr=0x1d3a480) at WTF/Headers/wtf/glib/GRefPtr.h:159
#7  webkitOptionMenuSetEvent (menu=&lt;optimized out&gt;, event=0x1d3a480)
    at /home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/API/glib/WebKitOptionMenu.cpp:102
#8  0x00007f06bfad247f in WebKit::WebKitPopupMenu::showPopupMenu (this=0x7f06a20940c0, rect=..., 
    direction=WebCore::TextDirection::LTR, 
    pageScaleFactor=&lt;error reading variable: That operation is not available on integers of more than 8 bytes.&gt;, 
    items=..., platformData=..., selectedIndex=0)
    at /home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.cpp:44
#9  0x00007f06bfa00f18 in WebKit::WebPageProxy::showPopupMenu (this=0x7f0632020c00, rect=..., textDirection=0, 
    items=..., selectedIndex=0, data=...)
    at /home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebPageProxy.cpp:7298
#10 0x00007f06bf6dc799 in _ZZN3IPC18callMemberFunctionIN6WebKit12WebPageProxyES2_FvRKN7WebCore7IntRectEmRKN3WTF6VectorINS1_12WebPopupItemELm0ENS7_15CrashOnOverflowELm16ENS7_10FastMallocEEEiRKNS1_21PlatformPopupMenuDataEESt5tupleIJS4_mSC_iSF_EEEEvPT_MT0_T1_OT2_ENKUlDpOT_E_clIJS4_mSC_iSF_EEEDaSU_ (args=..., args=..., args=..., args=..., args=..., 
    this=&lt;optimized out&gt;) at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/HandleMessage.h:136
#11 _ZSt13__invoke_implIvZN3IPC18callMemberFunctionIN6WebKit12WebPageProxyES3_FvRKN7WebCore7IntRectEmRKN3WTF6VectorINS2_12WebPopupItemELm0ENS8_15CrashOnOverflowELm16ENS8_10FastMallocEEEiRKNS2_21PlatformPopupMenuDataEESt5tupleIJS5_mSD_iSG_EEEEvPT_MT0_T1_OT2_EUlDpOT_E_JS5_mSD_iSG_EESM_St14__invoke_otherOSO_DpOT1_ (__args=..., __args=..., __args=..., 
    __args=..., __args=..., __f=...)
    at /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/invoke.h:61
#12 _ZSt8__invokeIZN3IPC18callMemberFunctionIN6WebKit12WebPageProxyES3_FvRKN7WebCore7IntRectEmRKN3WTF6VectorINS2_12WebPopupItemELm0ENS8_15CrashOnOverflowELm16ENS8_10FastMallocEEEiRKNS2_21PlatformPopupMenuDataEESt5tupleIJS5_mSD_iSG_EEEEvPT_MT0_T1_OT2_EUlDpOT_E_JS5_mSD_iSG_EENSt15__invoke_resultISM_JDpT0_EE4typeEOSM_DpOSY_ (__args=..., __args=..., 
    __args=..., __args=..., __args=..., __fn=...)
    at /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/invoke.h:96
#13 _ZSt12__apply_implIZN3IPC18callMemberFunctionIN6WebKit12WebPageProxyES3_FvRKN7WebCore7IntRectEmRKN3WTF6VectorINS2_12WebPopupItemELm0ENS8_15CrashOnOverflowELm16ENS8_10FastMallocEEEiRKNS2_21PlatformPopupMenuDataEESt5tupleIJS5_mSD_iSG_EEEEvPT_MT0_T1_OT2_EUlDpOT_E_SL_JLm0ELm1ELm2ELm3ELm4EEEDcOSM_OSO_St16integer_sequenceImJXspT1_EEE (__t=..., __f=...)
    at /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/tuple:1852
#14 _ZSt5applyIZN3IPC18callMemberFunctionIN6WebKit12WebPageProxyES3_FvRKN7WebCore7IntRectEmRKN3WTF6VectorINS2_12WebPopupItemELm0ENS8_15CrashOnOverflowELm16ENS8_10FastMallocEEEiRKNS2_21PlatformPopupMenuDataEESt5tupleIJS5_mSD_iSG_EEEEvPT_MT0_T1_OT2_EUlDpOT_E_SL_EDcOSM_OSO_ (__t=..., __f=...)
    at /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/tuple:1863
#15 IPC::callMemberFunction&lt;WebKit::WebPageProxy, WebKit::WebPageProxy, void (WebCore::IntRect const&amp;, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, int, WebKit::PlatformPopupMenuData const&amp;), std::tuple&lt;WebCore::IntRect, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;, int, WebKit::PlatformPopupMenuData&gt; &gt;(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebCore::IntRect const&amp;, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, int, WebKit::PlatformPopupMenuData const&amp;), std::tuple&lt;WebCore::IntRect, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;, int, WebKit::PlatformPopupMenuData&gt;&amp;&amp;) (
    object=0x7f0632020c00, function=&lt;optimized out&gt;, tuple=...)
--Type &lt;RET&gt; for more, q to quit, c to continue without paging--c
    at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/HandleMessage.h:134
#16 IPC::handleMessage&lt;Messages::WebPageProxy::ShowPopupMenu, WebKit::WebPageProxy, WebKit::WebPageProxy, void (WebCore::IntRect const&amp;, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, int, WebKit::PlatformPopupMenuData const&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebCore::IntRect const&amp;, unsigned long, WTF::Vector&lt;WebKit::WebPopupItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, int, WebKit::PlatformPopupMenuData const&amp;)) (connection=..., decoder=..., object=0x7f0632020c00, function=&lt;optimized out&gt;) at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/HandleMessage.h:236
#17 WebKit::WebPageProxy::didReceiveMessage (this=0x7f0632020c00, connection=..., decoder=...) at DerivedSources/WebKit/WebPageProxyMessageReceiver.cpp:576
#18 0x00007f06bf94549d in IPC::MessageReceiverMap::dispatchMessage (this=&lt;optimized out&gt;, connection=..., decoder=...) at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/MessageReceiverMap.cpp:129
#19 0x00007f06bfa3f71d in non-virtual thunk to WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;) () at /home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebProcessProxy.cpp:965
#20 0x00007f06bf93e476 in IPC::Connection::dispatchMessage (this=0x7f06a2028680, message=std::unique_ptr&lt;IPC::Decoder&gt; = {...}) at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/Connection.cpp:1245
#21 0x00007f06bf93e9f2 in IPC::Connection::dispatchIncomingMessages (this=0x7f06a2028680) at /home/mcatanzaro/Projects/WebKit/Source/WebKit/Platform/IPC/Connection.cpp:1355
#22 0x00007f06bdcb6efc in WTF::Function&lt;void ()&gt;::operator()() const (this=&lt;optimized out&gt;) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/Function.h:82
#23 WTF::RunLoop::performWork (this=0x7f06a20100e0) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/RunLoop.cpp:147
#24 0x00007f06bdd184a6 in WTF::RunLoop::RunLoop()::$_1::operator()(void*) const (userData=0x1, userData@entry=0x7f06a20100e0, this=&lt;optimized out&gt;) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#25 WTF::RunLoop::RunLoop()::$_1::__invoke(void*) (userData=0x1, userData@entry=0x7f06a20100e0) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:79
#26 0x00007f06bdd179da in WTF::RunLoop::$_0::operator() (source=0xa72f80, callback=0x7f06bdd184a0 &lt;WTF::RunLoop::RunLoop()::$_1::__invoke(void*)&gt;, userData=0x7f06a20100e0, this=&lt;optimized out&gt;) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#27 WTF::RunLoop::$_0::__invoke (source=0xa72f80, callback=0x7f06bdd184a0 &lt;WTF::RunLoop::RunLoop()::$_1::__invoke(void*)&gt;, userData=0x7f06a20100e0) at /home/mcatanzaro/Projects/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:45
#28 0x00007f06c328571b in g_main_dispatch (context=0xa1b9d0) at ../../../../Projects/glib/glib/gmain.c:3460
#29 0x00007f06c328668f in g_main_context_dispatch (context=0xa1b9d0) at ../../../../Projects/glib/glib/gmain.c:4200
#30 0x00007f06c3286882 in g_main_context_iterate (context=0xa1b9d0, block=1, dispatch=1, self=0xde3eb0) at ../../../../Projects/glib/glib/gmain.c:4276
#31 0x00007f06c3286946 in g_main_context_iteration (context=0xa1b9d0, may_block=1) at ../../../../Projects/glib/glib/gmain.c:4343
#32 0x00007f06b991edc2 in g_application_run (application=0xde24c0, argc=0, argv=0x0) at ../../../../Projects/glib/gio/gapplication.c:2573
#33 0x0000000000414316 in main (argc=1, argv=0x7ffd83347818) at /home/mcatanzaro/Projects/WebKit/Tools/MiniBrowser/gtk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933583</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-14 13:40:17 -0800</bug_when>
    <thetext>Probably caused by 256927@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933584</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-14 13:42:39 -0800</bug_when>
    <thetext>Probably just a missing #include. This file does not #include &lt;WebCore/GRefPtrGtk.h&gt; and therefore the template specialization for GdkEvent is missing so it the GRefPtr treats it as a GObject though it is not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933857</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-15 10:08:13 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10151</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1934205</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-16 09:17:49 -0800</bug_when>
    <thetext>Committed 260374@main (587cb602ebdd): &lt;https://commits.webkit.org/260374@main&gt;

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

    </bug>

</bugzilla>