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 770184 - Apparently spurious allocation warnings cause GtkRange to misbehave
Apparently spurious allocation warnings cause GtkRange to misbehave
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkRange
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-08-21 03:12 UTC by Kai Willadsen
Modified: 2018-05-02 17:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kai Willadsen 2016-08-21 03:12:23 UTC
It appears that any change in child widget allocations to a GtkGrid subclass (except for those caused by top-level window resizes, etc.) put the widget into a state where some child widgets are considered to need resize calculations, but this state doesn't get cleared out.

In Meld, bug #770182 (triggered by having a read-only file that causes a toolbar button within the grid to be shown) reproduces this easily.

This results in warnings like:
    (meld:23742): Gtk-WARNING **: Allocating size to GtkVBox 0x55df7eaefa50 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

I've bisected the regression to commit 9a81e714.

I have no idea whether this commit is the actual cause, or whether it's hiding something deeper. It's also entirely possible that this is a bug in Meld's GtkGrid subclass, but given the commit message for the bisected commit, and the GtkCssGadget changes in 3.20, I thought it was reasonable to file this as a bug.

Also, quoting myself from bug #770182:

> However, there *is* a more serious side-effect, which is that it (somehow, I have no idea how) causes some GtkRange manipulations in a container with a shared GtkGrid parent to do the wrong thing. I do appreciate how bizarre this sounds. My test case is to trigger this warning in Meld and then see GtkTextView.scroll_to_mark() calls silently fail to actually scroll the mark on-screen.
Comment 1 Matthias Clasen 2016-08-23 20:30:16 UTC
thanks for bisecting
Comment 2 GNOME Infrastructure Team 2018-05-02 17:25:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/660.