GNOME Bugzilla – Bug 55735
gimp locks up when selecting tools (Mandrake GTK+ theme)
Last modified: 2009-08-15 18:40:50 UTC
After using the fill tool, if you select the gradient tool, gimp locks up. This is a consistent problem, it is the same problem under GNOME, KDE, Enlightenment, etc. It does the same thing on all of my machines, including laptops. If I do a ctl-alt-backspace to exit X, ps ax shows gimp still running, script-fu running as tho there is no problem.
I cannot reproduce this problem. I can use the fill tool to fill an image, then select the blend/gradient tool and everything works fine. I tried this on several platforms (Solaris and Linux, compiled from sources or taken from Ximian RPMs) and I do not have any problems. It would be helpful if you could add a comment to this bug report, specifying (step by step) what you are doing in order to get this problem. Are you using a version of the Gimp that you compiled from the sources, or a pre-compiled package? Maybe this is a problem that exists only in the Mandrake package for the Gimp, because it looks a bit similar to bug #55398. Maybe you should have a look at that bug report too. Anyway, please provide more information so that we can track down this bug.
Detail: gimp binary package provided in Mandrake 8.0 Start gimp, new image, fill image with color or pattern, select the gradient tool - gimp locks up. This is the EXACT sequence.
I cannot reproduce this, but I am confirming the bug anyway. I would appreciate any comments from people using Mandrake 8.0 (even if you are not affected by the bug). I would like to know if this bug is in the Mandrake package or if we should look at some other causes.
Same here! I'm using Mandrake 8.0 w/ gnome. Gimp binary from Mandrake 8.0 - locks up Updated binary - locks up Got rid of binaries and compiled from sources - locks up No exact pattern though. Just hangs after couple minutes of work (it's killing me!) Personally i think it's mandrake problem.
It would be helpful to know exactly where the Gimp process locks up. If you experience this problem under Mandrake 8.0, please try to attach gdb to the running process and see where it is stuck. If you are not familiar with gdb, start it and then try "help attach" and "help where". If you get a stack trace, attach it to this bug report so that we can analyze it. By the way, it is interesting to know that the same error occurs when compiling from sources. Henri, did you compile from the source RPM distributed by Mandrake, or from the original Gimp sources? Maybe they are slightly different?
After 15 minutes of inspection i managed to run gimp through gdb - and eventually reproduced at least one of the bugs. This is when i tried to open a file after editing another. Here it goes: Gtk-WARNING **: invalid unclassed pointer in cast to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 3311 (gtk_widget_set_sensitive): assertion `GTK_IS_WIDGET (widget)' failed. Gtk-WARNING **: invalid unclassed pointer in cast to `GtkObject' Gtk-WARNING **: invalid unclassed pointer in cast to `GtkFileSelection' Gtk-CRITICAL **: file gtkfilesel.c: line 620 (gtk_file_selection_set_filename): assertion `GTK_IS_FILE_SELECTION (filesel)' failed. Gtk-WARNING **: invalid unclassed pointer in cast to `GtkWindow' Gtk-CRITICAL **: file gtkwindow.c: line 402 (gtk_window_set_title): assertion `GTK_IS_WINDOW (window)' failed. Gtk-WARNING **: invalid unclassed pointer in cast to `GtkFrame' Gtk-CRITICAL **: file gtkframe.c: line 221 (gtk_frame_set_label): assertion `GTK_IS_FRAME (frame)'failed. Gtk-WARNING **: invalid cast from `(unknown)' to `GtkLabel' Gtk-CRITICAL **: file gtklabel.c: line 260 (gtk_label_set_text): assertion `GTK_IS_LABEL (label)' failed. Gtk-WARNING **: invalid cast from `(unknown)' to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 1428 (gtk_widget_show): assertion `GTK_IS_WIDGET (widget)'failed. Gtk-WARNING **: invalid cast from `(unknown)' to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 1511 (gtk_widget_hide): assertion `GTK_IS_WIDGET (widget)'failed. Gtk-WARNING **: invalid unclassed pointer in cast to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 3311 (gtk_widget_set_sensitive): assertion `GTK_IS_WIDGET (widget)' failed. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 7946)] 0x4013476f in gtk_widget_show () from /usr/lib/libgtk-1.2.so.0 This was from my 4th package (gimp-1.2.1-5mdk.i586.rpm from rpmfind.net). The sources from ftp.gimp.org had the same problem (locking up) and jpgs didn't work at all (some configuration stuff), so i got rid of those too.
As reported in bug #55398, this strange error is probably due to a severe bug in the GTK+ theme installed by default in Mandrake 8.0. If this is really the source of the problem, then recompiling or installing new Gimp packages will not help, since the error comes from the GTK+ theme and not from the Gimp itself. Please have a look at the security advisory MDKA-2001:010, here: http://www.linux-mandrake.com/en/security/2001/MDKA-2001-010.php3 If the upgrade available via MandrakeUpdate fixes the problems, then we can close this bug and related ones. Please report if it works.
Well, at least it changed a bit :). The Gimp keeps crashing, but no longer takes 100% cpu-time (after crash) and ps aux won't show any locked processes. There's one interesting point; after the first crash Gimp locks up more easily, even there is no any dead processes left behind. Here's what gdb reported: Gdk-WARNING **: GdkWindow 0x26010af unexpectedly destroyed Gdk-WARNING **: GdkWindow 0x26010ae unexpectedly destroyed Gtk-WARNING **: invalid cast from `GtkSubmenuPlacement' to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 3311 (gtk_widget_set_sensitive): assertion `GTK_IS_WIDGET (widget)' failed. Gtk-WARNING **: invalid cast from `GtkSubmenuPlacement' to `GtkObject' Gtk-WARNING **: invalid cast from `GtkSubmenuPlacement' to `GtkFileSelection' Gtk-CRITICAL **: file gtkfilesel.c: line 620 (gtk_file_selection_set_filename): assertion `GTK_IS_FILE_SELECTION (filesel)' failed. Gtk-WARNING **: invalid cast from `GtkSubmenuPlacement' to `GtkWindow' Gtk-CRITICAL **: file gtkwindow.c: line 402 (gtk_window_set_title): assertion `GTK_IS_WINDOW (window)' failed. Gtk-WARNING **: invalid unclassed pointer in cast to `GtkFrame' Gtk-CRITICAL **: file gtkframe.c: line 221 (gtk_frame_set_label): assertion `GTK_IS_FRAME (frame)' failed. Gtk-WARNING **: invalid cast from `(unknown)' to `GtkLabel' Gtk-CRITICAL **: file gtklabel.c: line 260 (gtk_label_set_text): assertion `GTK_IS_LABEL (label)' failed. Gtk-WARNING **: invalid cast from `(unknown)' to `GtkWidget' Gtk-CRITICAL **: file gtkwidget.c: line 1428 (gtk_widget_show): assertion `GTK_IS_WIDGET (widget)' failed. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 2485)] 0x40129ea0 in gtk_type_check_object_cast () from /usr/lib/libgtk-1.2.so.0
I'm really getting sick of Mandrake problems. Can someone with the "best distribution of the year" please slap them appropriatly?
*** Bug 52467 has been marked as a duplicate of this bug. ***
*** Bug 53749 has been marked as a duplicate of this bug. ***
*** Bug 55398 has been marked as a duplicate of this bug. ***
*** Bug 57701 has been marked as a duplicate of this bug. ***
*** Bug 69825 has been marked as a duplicate of this bug. ***