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 620559 - Crash in g_file_get_path, _gth_icon_cache_get_icon_key at gth-icon-cache.c line 105
Crash in g_file_get_path, _gth_icon_cache_get_icon_key at gth-icon-cache.c li...
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.13.x
Other All
: Normal critical
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
: 620722 620723 620770 628248 633183 633763 636847 639310 640311 641156 645945 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-04 12:17 UTC by matteo-bugdebian
Modified: 2015-12-18 16:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30



Description matteo-bugdebian 2010-06-04 12:17:53 UTC
Version: 2.11.3

What were you doing when the application crashed?
nothing, I can't stat gthumb!!


Distribution: Debian squeeze/sid
Gnome Release: 2.30.0 2010-04-26 (Debian)
BugBuddy Version: 2.30.0

System: Linux 2.6.32.5 #4 SMP PREEMPT Mon Jan 25 20:06:23 CET 2010 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10707000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome
GTK+ Modules: gnomebreakpad, canberra-gtk-module

Memory status: size: 414195712 vsize: 414195712 resident: 19992576 share: 15499264 rss: 19992576 rss_rlim: 18446744073709551615
CPU usage: start_time: 1275653807 rtime: 11 utime: 10 stime: 1 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/gthumb'

[Thread debugging using libthread_db enabled]
[New Thread 0x7fee3a732710 (LWP 26677)]
[New Thread 0x7fee3a7b3710 (LWP 26676)]
[New Thread 0x7fee3a834710 (LWP 26675)]
[New Thread 0x7fee52d0c710 (LWP 26674)]
[New Thread 0x7fee52d8d710 (LWP 26673)]
0x00007fee4ecc7b4d in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 0x7fee52dea7c0 (LWP 26672))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    from /lib/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /lib/libglib-2.0.so.0
  • #3 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 g_file_get_path
    from /usr/lib/libgio-2.0.so.0
  • #6 _gth_icon_cache_get_icon_key
    at gth-icon-cache.c line 105
  • #7 gth_icon_cache_get_pixbuf
    at gth-icon-cache.c line 126
  • #8 _gth_browser_add_file_menu_item_full
    at gth-browser.c line 331
  • #9 _gth_browser_update_entry_point_list
    at gth-browser.c line 796
  • #10 _gth_browser_construct
    at gth-browser.c line 3770
  • #11 gth_browser_new
    at gth-browser.c line 3845
  • #12 open_browser_window
    at main.c line 254
  • #13 prepare_application
    at main.c line 337
  • #14 main
    at main.c line 430

	Inferior 1 [process 26672] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


---- Critical and fatal warnings logged during execution ----

** GLib-GIO **: g_file_get_path: assertion `G_IS_FILE (file)' failed 
** GLib-GObject **: g_object_unref: assertion `G_IS_OBJECT (object)' failed 
** GLib-GIO **: g_file_get_path: assertion `G_IS_FILE (file)' failed 
** GLib-GObject **: g_object_unref: assertion `G_IS_OBJECT (object)' failed 
** GLib-GIO **: g_file_get_path: assertion `G_IS_FILE (file)' failed 
** GLib-GObject **: g_object_unref: assertion `G_IS_OBJECT (object)' failed 
** GLib-GIO **: g_file_get_path: assertion `G_IS_FILE (file)' failed 
** GLib-GObject **: g_object_unref: assertion `G_IS_OBJECT (object)' failed 
** GLib-GIO **: g_file_get_path: assertion `G_IS_FILE (file)' failed 
** GLib-GObject **: g_object_unref: assertion `G_IS_OBJECT (object)' failed 


----------- .xsession-errors ---------------------
** (alarm-clock-applet:26433): DEBUG: AlarmAction: toggle list window
/usr/share/smart-notifier/smart_notifier/gui.py:51: DeprecationWarning: Passing the named_service parameter to add_signal_receiver by name is deprecated: please use positional parameters
  path=smart_notifier.UD_SERVICE)
(gnome-panel:26384): Gdk-WARNING **: /tmp/buildd/gtk+2.0-2.20.1/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
[gphoto2] init_gphoto2: error: serial:/dev/ttyd1 is not a valid gphoto2 port.  Use "gphoto2 --list-ports" for list.
[gphoto2] init_gphoto2: error: serial:/dev/ttyd1 is not a valid gphoto2 port.  Use "gphoto2 --list-ports" for list.
[gphoto2] init_gphoto2: error: serial:/dev/ttyd1 is not a valid gphoto2 port.  Use "gphoto2 --list-ports" for list.
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/blueman/plugins/AppletPlugin.py", line 105, in _load
    self.on_load(applet)
  File "/usr/lib/python2.5/site-packages/blueman/plugins/applet/KillSwitch.py", line 52, in on_load
    raise Exception("Failed to initialize killswitch manager")
Exception: Failed to initialize killswitch manager
** (alarm-clock-applet:26433): DEBUG: AlarmAction: toggle list window
--------------------------------------------------
Comment 1 Akhil Laddha 2010-06-06 13:54:11 UTC
*** Bug 620722 has been marked as a duplicate of this bug. ***
Comment 2 Akhil Laddha 2010-06-06 13:54:19 UTC
*** Bug 620723 has been marked as a duplicate of this bug. ***
Comment 3 Michael Chudobiak 2010-06-08 12:52:39 UTC
*** Bug 620770 has been marked as a duplicate of this bug. ***
Comment 4 Paolo Bacchilega 2010-07-16 19:19:50 UTC
Thanks for taking the time to report this bug.
However, I cannot reproduce this bug and the code that caused it has changed since this report was created.  You were using a development version that is prone to crashes, I suggest you to use the latest version available, which is still a development version but more stable.

This report will be closed as obsolete, but you can reopen it if the crash still occurs to you with the latest version.
Comment 5 Felipe Besoaín Pino 2010-08-29 16:02:22 UTC
*** Bug 628248 has been marked as a duplicate of this bug. ***
Comment 6 Akhil Laddha 2010-10-27 04:05:21 UTC
*** Bug 633183 has been marked as a duplicate of this bug. ***
Comment 7 Fabio Durán Verdugo 2010-11-02 02:34:38 UTC
*** Bug 633763 has been marked as a duplicate of this bug. ***
Comment 8 Akhil Laddha 2010-12-09 13:52:09 UTC
*** Bug 636847 has been marked as a duplicate of this bug. ***
Comment 9 jim.warkior 2010-12-09 16:35:12 UTC
Hello,

I've been having similar problems to this bug and would not say it's resolved.  See my comments here (https://bugzilla.gnome.org/show_bug.cgi?id=636847) for info on my situation.  The general error I'm seeing is this...

$ gthumb

(gthumb:28748): GLib-GIO-CRITICAL **: g_file_get_path: assertion `G_IS_FILE
(file)' failed

(gthumb:28748): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
Segmentation fault
$ 


Are there any specific questions you have about my install, or things that I could test which would help diagnose the problem?  I'd be happy to help get it resolved.  I'm not a C coder, but know how to run commandline stuff.  Tell me what to try and I'll be happy to assist and post results.
Comment 10 Michael Chudobiak 2010-12-09 17:28:10 UTC
Re-opening since bug 636847 is from git master.

- Mike
Comment 11 Michael Chudobiak 2011-01-12 14:12:07 UTC
*** Bug 639310 has been marked as a duplicate of this bug. ***
Comment 12 Michael Chudobiak 2011-01-23 13:00:05 UTC
*** Bug 640311 has been marked as a duplicate of this bug. ***
Comment 13 Michael Chudobiak 2011-02-01 15:27:47 UTC
*** Bug 641156 has been marked as a duplicate of this bug. ***
Comment 14 Michael Chudobiak 2011-03-28 14:10:57 UTC
*** Bug 645945 has been marked as a duplicate of this bug. ***
Comment 15 Michael Chudobiak 2011-03-28 14:12:29 UTC
If anyone is compiling from source, you can try this patch:


diff --git a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
index f4c25f1..1f9eea0 100644
--- a/gthumb/gth-icon-cache.c
+++ b/gthumb/gth-icon-cache.c
@@ -106,7 +106,6 @@ _gth_icon_cache_get_icon_key (GIcon *icon)
                        key = get_static_string (uri);

                        g_free (uri);
-                       g_object_unref (file);
                }
        } 

- Mike
Comment 16 Paolo Bacchilega 2011-03-28 17:33:58 UTC
Mike,

patch applied to master and gthumb-2-12 branches, thank you.