[Wayland-bugs] [Bug 784319] Sometimes tooltip_popup_timeout() in gtk/gtktooltip.c causes crash after closing a window

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 11 07:58:08 UTC 2017


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

--- Comment #21 from Takuro Ashie <ashie at clear-code.com> ---
(In reply to Martin Stransky from comment #20)
> I see that the CSD/Wayland code path is under gtk_widget_get_has_window
> (widget) condition which looks like Gtk is aware about window owned by
> container:

Sorry, you are right.
My explanation about gtk_widget_get_has_window() is incorrect.
gtk_widget_get_has_window() returns TRUE by default:

  https://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c#n8202
  (priv->no_window == 0 by default)

In addition, when gtk_widget_get_has_window() is FALSE, a parent GdkWindow is
used for the widget's GdkWindow, it doesn't create its own GdkWindow.


On the other hand the explanation about "unrealize" is correct.
I confirmed that it's not called so that no one destroy the GdkWindow of
MozContainer. When MOZ_WAYLAND isn't defined, it's destroyed by the following
line:

  https://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c#n10589

But when I address it, sometimes another similar crash occurs.
It's more rare than before...
We should continue it at https://bugzilla.redhat.com/show_bug.cgi?id=1467104.

-- 
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/20170711/7c0dc6a8/attachment.html>


More information about the wayland-bugs mailing list