GNOME Bugzilla – Bug 772786
GTK Inspector Statistics tab non-functional on Ubuntu
Last modified: 2016-10-14 10:00:29 UTC
Downstream asked me to report this here, since "there is no patch in the package that is likely to lead to such problem, but could be due to the configure options used or the toolchain". From https://bugs.launchpad.net/bugs/1623763: Running a GTK+ 3 app with GOBJECT_DEBUG=instance-count enables the Statistics tab in GTK Inspector, but after clicking the Record button it never starts collecting statistics. This makes it difficult to develop and debug memory leaks in GTK programs on Ubuntu. To reproduce: 1. Start an app with the Inspector and GOBJECT_DEBUG=instance-count set, e.g.: > GOBJECT_DEBUG=instance-count GTK_DEBUG=interactive gnome-calculator 2. Click the Statistics tab 3. Click the Record button 4. Click around the app a bit Expected: Object counts go up, pretty graphs showing things Actual: Object counts stay at 0, pretty graphs showing flat lines This seems like it is Ubuntu-specific, since when running GTK+ programs installed via Flatpak (and hence using the Flatpak runtime), the above works fine on the same system.
I tried this on Debian 'testing' which has GTK+ 3.22 and got this warning: "GLib must be configured with --enable-debug" https://git.gnome.org/browse/gtk+/commit/?id=8a2061f Debian and Ubuntu's glib2.0 is compiled with --enable-debug=minimum Please report this issue against Debian's glib2.0 source package.
I don't think there's anything for us to do here.