[Wayland-bugs] [Bug 775470] New: GdkWindow does not always unref all GdkFrameClockIdle it creates
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu Dec 1 14:15:04 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=775470
Bug ID: 775470
Summary: GdkWindow does not always unref all GdkFrameClockIdle
it creates
Classification: Platform
Product: gtk+
Version: 3.22.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: sixtysix at inwind.it
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
GNOME version: ---
After setting GOBJECT_DEBUG=objects comparing the outputs
of the following program run with ITERATIONS set to 2 and 1:
#include <gtk/gtk.h>
#ifndef ITERATIONS
#define ITERATIONS 1
#endif
int
main (int argc,
char *argv[])
{
if (gtk_init_check (&argc, &argv))
{
int i;
for (i = 0; i < ITERATIONS; ++i)
{
GtkWidget *dialog;
dialog = gtk_file_chooser_dialog_new ("Open File",
NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
"Cancel", GTK_RESPONSE_CANCEL,
NULL);
gtk_widget_show_all (dialog);
gtk_widget_destroy (dialog);
}
}
return 0;
}
on Wayland the number of objects alive at exit increases for the
presence of few GdkFrameClockIdle objects.
The problem is that on Wayland popover GdkWindow have window_type
GDK_WINDOW_SUBSURFACE
https://git.gnome.org/browse/gtk+/tree/gtk/gtkwindow.c?h=gtk-3-22#n6647
and gdk_window_destroy (_gdk_window_destroy_hierarchy) does nearly nothing
for this kind of GdkWindow:
https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c?h=gtk-3-22#n2019
in particular it does not unref GdkFrameClockIdle objects it
creates.
--
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/20161201/e5fd8350/attachment.html>
More information about the wayland-bugs
mailing list