[Wayland-bugs] [Bug 793062] [Wayland] Crash under gdk_wayland_window_attach_image()

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Feb 2 16:33:18 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=793062

--- Comment #10 from Olivier Fourdan <ofourdan at redhat.com> ---
“old_state = GDK_WINDOW_STATE_FOCUSED, state = (GDK_WINDOW_STATE_WITHDRAWN |
GDK_WINDOW_STATE_FOCUSED)” seems weird, how can a window be withdrawn and
focused?

Another weird thing is:

display_server = {outputs = 0x0, wl_surface = 0x0, xdg_surface = 0x0,
xdg_toplevel = 0x0, xdg_popup = 0x0, gtk_surface = 0x0, wl_subsurface = 0x0,
egl_window = 0x0, dummy_egl_window = 0x0, xdg_exported = 0x0, server_decoration
= 0x0}, egl_surface = 0x0, dummy_egl_surface = 0x0, initial_configure_received
= 0, mapped = 0, use_custom_surface = 0, pending_buffer_attached = 0,
pending_commit = 0, awaiting_frame = 0

All values are 0, as if the surface was withdrawn.

Also hint = GDK_WINDOW_TYPE_HINT_UTILITY,

This comes from Firefox code:

3517 nsresult
3518 nsWindow::Create(nsIWidget* aParent,
3519                  nsNativeWidget aNativeParent,
3520                  const LayoutDeviceIntRect& aRect,
3521                  nsWidgetInitData* aInitData)
3522 {
...
3690                 switch (aInitData->mPopupHint) {
3691                     case ePopupTypeMenu:
3692                         // Use GDK_WINDOW_TYPE_HINT_UTILITY on Wayland
which
3693                         // guides Gtk to create the popup as subsurface
3694                         // instead of xdg_shell popup (see Bug 1423598).
3695                         gtkTypeHint = mIsX11Display ?
GDK_WINDOW_TYPE_HINT_POPUP_MENU :
3696                                                      
GDK_WINDOW_TYPE_HINT_UTILITY;

So the window causing this issue would be a “ePopupTypeMenu”.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180202/8380c990/attachment-0001.html>


More information about the wayland-bugs mailing list