GNOME Bugzilla – Bug 396474
crash after import dialog shows thumbnails
Last modified: 2007-01-14 21:28:56 UTC
gthumb svn rev 1265 crashed during the import photos dialog, after most of the thumbnails had been rendered. This might be a bug introduced by moving from GnomeIconTheme -> GtkIconTheme (bug 171593). See attachment for long backtrace. - Mike
Created attachment 80239 [details] backtrace
Console errors: (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed ** (gthumb:13595): CRITICAL **: gth_image_list_append_with_data: assertion `pixbuf != NULL' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed ** (gthumb:13595): CRITICAL **: gth_image_list_append_with_data: assertion `pixbuf != NULL' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed ** (gthumb:13595): CRITICAL **: gth_image_list_append_with_data: assertion `pixbuf != NULL' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GnomeUI-CRITICAL **: gnome_icon_lookup: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_lookup_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed (gthumb:13595): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed ** (gthumb:13595): CRITICAL **: gth_image_list_append_with_data: assertion `pixbuf != NULL' failed (gthumb:13595): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (gthumb:13595): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208916272 (LWP 13595)] 0x4c5e31cf in IA__gtk_icon_set_render_icon (icon_set=0x8907b20, style=0x8bccb00, direction=GTK_TEXT_DIR_LTR, state=GTK_STATE_NORMAL, size=GTK_ICON_SIZE_BUTTON, widget=0x8c3e948, detail=0x0) at gtkiconfactory.c:1470 1470 g_warning ("Error loading theme icon for stock: %s", error->message); (gdb)
I think the problem is that the GtkIconTheme returned by gtk_icon_theme_get_default is a global object and must not be ref-ed/unref-ed, so you have to remove all the occurrences of g_object_ref(icon_theme) and g_object_unref(icon_theme) from the code.
Thank you, that does seem to fix things! - Mike