After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772786 - GTK Inspector Statistics tab non-functional on Ubuntu
GTK Inspector Statistics tab non-functional on Ubuntu
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Debugging
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-10-12 01:22 UTC by Michael Gratton
Modified: 2016-10-14 10:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Gratton 2016-10-12 01:22: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.
Comment 1 Jeremy Bicha 2016-10-12 02:01:17 UTC
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.
Comment 2 Matthias Clasen 2016-10-14 10:00:29 UTC
I don't think there's anything for us to do here.