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 664474 - Glade crash on treeview edit
Glade crash on treeview edit
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
3.10.x
Other Linux
: Normal critical
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 665160 665280 665530 666467 671080 671589 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-11-21 14:06 UTC by yrogen
Modified: 2012-04-02 07:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description yrogen 2011-11-21 14:06:07 UTC
Glade crashes every time I try to edit a GtkTreeview.

Steps to reproduce:
1) Open Glade
2) Add a window
3) Add a GtkTreeview and a GtkListStore
4) Select the Treeview and click the "Edit" button in the toolbar
-> Glade crashes

I can reproduce this on 64bit arch

The error message is:
Gtk-ERROR **: GtkBox child GladeEditorTable minimum height: -4 < 0
Comment 1 Manuel Pol 2011-11-21 14:41:24 UTC
Same on Ubuntu 11.10 64bits
Comment 2 Erik van Pienbroek 2011-11-21 21:15:05 UTC
This issue also occurs on Fedora 16.
Here's a small patch which fixes the fatal error for me:

--- gladeui/glade-editor-table.c	2011-11-21 22:11:09.053484174 +0100
+++ gladeui/glade-editor-table.c.orig	2011-11-21 22:11:00.077885388 +0100
@@ -103,7 +103,7 @@
 
   gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
                                   GTK_ORIENTATION_VERTICAL);
-  gtk_grid_set_row_spacing (GTK_GRID (self), 4);
+  //gtk_grid_set_row_spacing (GTK_GRID (self), 4);
 }
 
 static void

With this patch applied, editing a treeview works fine again
Comment 3 Tristan Van Berkom 2011-11-22 06:25:11 UTC
Yes, I have been closing these duplicates for 2 weeks now.

You will get the problem with GTK+ 3.1 until the problem was fixed in 
a very recent version of GTK+ 3.2.

It's a GTK+ bug with the GtkGrid widget which only appears when
the grid has no children and some row spacing specified (the problem
started to appear in Glade when the meaning of 'row spacing' was
swapped with the meaning of 'column spacing'.

I suppose I will have to close 3 or 4 more duplicates of this
until an update of GTK+ 3.2 hits the distros...
Comment 4 Sebastien Bacher 2011-11-23 11:35:25 UTC
it's not clear that an update of gtk 3.2 will hits all stable distro, the new gtk created some other issues and will take some time before getting an update, could you point to the commit for distros who want to backport the fix rather?
Comment 5 Tristan Van Berkom 2011-11-23 12:05:02 UTC
For the second time on the forth bug reported for this:

commit bb1d9aba86af715e5a5c53d5ad3b7dfcb720634e
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Fri Oct 21 16:23:03 2011 -0400

    Fix natural/min widht calculations for empty grids
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660139


Because Matthias did not spell it with 'GtkGrid' but
only with 'grid', this costed me a good 20min. of time I really
don't need to waste here.

Next reporter gets to scratch through GTK+ commit logs himself...
Comment 6 Tristan Van Berkom 2011-11-30 05:21:18 UTC
*** Bug 665160 has been marked as a duplicate of this bug. ***
Comment 7 Tristan Van Berkom 2011-12-01 12:40:58 UTC
*** Bug 665280 has been marked as a duplicate of this bug. ***
Comment 8 Tristan Van Berkom 2011-12-04 08:03:04 UTC
*** Bug 665530 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2011-12-19 13:57:56 UTC
*** Bug 666467 has been marked as a duplicate of this bug. ***
Comment 10 palkopatel 2011-12-24 21:43:31 UTC
(In reply to comment #3)
> Yes, I have been closing these duplicates for 2 weeks now.
> 
> You will get the problem with GTK+ 3.1 until the problem was fixed in 
> a very recent version of GTK+ 3.2.
> 
> It's a GTK+ bug with the GtkGrid widget which only appears when
> the grid has no children and some row spacing specified (the problem
> started to appear in Glade when the meaning of 'row spacing' was
> swapped with the meaning of 'column spacing'.
> 
> I suppose I will have to close 3 or 4 more duplicates of this
> until an update of GTK+ 3.2 hits the distros...

I use gtk3 3.2.3, glade 3.10.2 and have this bug on Archlinux 64 bit.
In what release fixed this bug?
Comment 11 Ionut Biru 2011-12-28 13:52:25 UTC
the above fix is not in the stable branch. I don't know why Tristan said it is fixed in newer 3.2 but wasn't cherry picked.
Comment 12 Tristan Van Berkom 2011-12-29 13:56:00 UTC
I'm not aware of what stable release the fix is in, if any.

Sorry for any confusion caused, as you can note I was already
annoyed at receiving 2 weeks of noise when I wrote that in
a hurry.

Spelled in another way: Please take this GTK+ bug up through
proper GTK+ pipelines, this is not a Glade problem.
Comment 13 Juan Pablo Ugarte 2012-03-06 19:23:26 UTC
*** Bug 671080 has been marked as a duplicate of this bug. ***
Comment 14 Juan Pablo Ugarte 2012-04-01 21:09:48 UTC
*** Bug 671589 has been marked as a duplicate of this bug. ***
Comment 15 Yajo 2012-04-02 07:51:07 UTC
(In reply to comment #10)
> I use gtk3 3.2.3, glade 3.10.2 and have this bug on Archlinux 64 bit.
> In what release fixed this bug?

Looking through the bugzilla and git, seems like it was fixed at GTK+ 3.3.2.

https://bugzilla.gnome.org/show_bug.cgi?id=662255
http://git.gnome.org/browse/gtk+/commit/?id=bb1d9aba86af715e5a5c53d5ad3b7dfcb720634e
http://git.gnome.org/browse/gtk+/log/?ofs=2200