GNOME Bugzilla – Bug 551543
Nautilus crashes if desktop_is_home_dir is changed while browsing homedir
Last modified: 2011-03-29 20:44:32 UTC
Using 2.23.92 in ubuntu ibex: (gdb) r Starting program: /usr/bin/nautilus [Thread debugging using libthread_db enabled] [New Thread 0xb6a0c700 (LWP 15659)] seahorse nautilus module initialized Initializing nautilus-share extension [New Thread 0xb626fb90 (LWP 15666)] ** (nautilus:15659): WARNING **: Unable to add monitor: Not supported [New Thread 0xb528bb90 (LWP 15668)] [New Thread 0xb4a8ab90 (LWP 15669)] Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ask your system administrator to enable user sharing. [Thread 0xb4a8ab90 (LWP 15669) exited] [Thread 0xb626fb90 (LWP 15666) exited] [New Thread 0xb626fb90 (LWP 15672)] (nautilus:15659): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb6a0c700 (LWP 15659)] 0xb75ff246 in IA__g_type_check_is_value_type (type=140232960) at /build/buildd/glib2.0-2.18.0/gobject/gtype.c:3834 3834 /build/buildd/glib2.0-2.18.0/gobject/gtype.c: No such file or directory. in /build/buildd/glib2.0-2.18.0/gobject/gtype.c (gdb) thread apply all bt
+ Trace 206553
Thread 1 (Thread 0xb6a0c700 (LWP 15659))
We also have a similar report with in Ubuntu with nautilus 2.26.0 here https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/352253
Created attachment 132949 [details] [review] patch to fix this bug
*** Bug 583688 has been marked as a duplicate of this bug. ***
*** Bug 646025 has been marked as a duplicate of this bug. ***
last dupe in 2.30.x
Created attachment 184628 [details] [review] pathbar: keep a ref to the GFile while updating the path When desktop-is-home-dir changes, we force a re-layout of all the buttons, which in turn unrefs the passed-in GFile, as the ref would belong to an old button. Fix this by assuming a ref while calling nautilus_path_bar_update_path().
Pushed to master after r-t approval. Attachment 184628 [details] pushed as cf21e9a - pathbar: keep a ref to the GFile while updating the path