#3348: wxGTK3: Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0'
failed in GtkSpinButton
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.2
Component: wxGUI | Version: svn-trunk
Keywords: wxGUI | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
The terminal gets flooded with such warnings (I am using wxGTK3-3.0.3 on
Fedora).
To reproduce:
{{{
d.vect --ui
## switch to "Line" tab
(forms.py:5716): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion
'size >= 0' failed in GtkSpinButton
(forms.py:5716): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion
'size >= 0' failed in GtkSpinButton
...
}}}
Related comment:
On Wed, May 17, 2017 at 3:18 AM, <bugzilla@redhat.com> wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1411165
>
> --- Comment #15 from Scott Talbert ---
>> (wxgui.py:4072): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion
'size >= 0' failed in !GtkCheckButton
>
> The latter one is likely that there isn't enough space allocated for a
check
> button widget - most likely has to be fixed in GRASS.
I'm also getting a lot of these messages, but the amount depends on the
size I allow for the GUI window of d.vect or d.rast. Using a tabbed window
manager, I get many of such messages when I add the GUI windows next to
many existing windows. However, when I provide a +/- full screen for the
GUI window, I get only very few such messages.
I can confirm that the width widgets in the Line tab cause a lot of these
messages. The same goes for the label_size widget in the Labels tab.
When launching the d.rast GUI window in tabbed window mode, I get a lot of
these messages:
{{{
gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook
}}}
I get quite a lot of these messages also when I launch d.vect --ui, but
with tabs on top, not on the left.
In short: it seems that this really depends on window layout, which it
shouldn't. Whatever the window layout, we shouldn't see our terminals
flooded with such messages. Is there any way of making this more robust ?
Replying to [comment:1 annakrat]:
> Any idea which checkbox is causing that?
Picking up on this and on the redhat bugzilla link in the OP: after some
tests, it seems to me that it is the "Render" checkbox in the bottom right
hand corner of the g.gui Map Display or of the d.mon window that causes
this message. In the default size, both in English and even more so in
French the label of the checkbox is too long and cannot be displayed
entirely. If I enlargen the window to the point where the entire label is
displayed I do not get any of these error messages.
Would it be an idea to move this checkbox to more of a central position,
to the left of the drop down menu (which BTW is also too narrow to
accommodate the entire label text) ?
Replying to [comment:7 mlennert]:
> Replying to [comment:1 annakrat]:
> > Any idea which checkbox is causing that?
>
> Picking up on this and on the redhat bugzilla link in the OP: after some
tests, it seems to me that it is the "Render" checkbox in the bottom right
hand corner of the g.gui Map Display or of the d.mon window that causes
this message. In the default size, both in English and even more so in
French the label of the checkbox is too long and cannot be displayed
entirely. If I enlargen the window to the point where the entire label is
displayed I do not get any of these error messages.
Just to confirm, not displaying the Render checkbox by commenting the part
as shown below makes the "gtk_box_gadget_distribute: assertion 'size >= 0'
failed in GtkCheckButton" errors go away.
Replying to [comment:9 ychemin]:
> Similar yet different problem here: I tried Moritz sbRender trick, and
it did not have any effect.
One difficulty here is that whether you see any of these error messages
can also depend on your locale. The Render checkbox in the Map Display
does not cause any messages when I set the language in the GUI preferences
to 'en', but I get tons of messages when I use my system locale, French.
In French, the text of the render checkbox goes beyond the edge of the Map
Display.
This means sizes have to be defined flexibly in order to accommodate
translations. No idea how hard that is.