! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfdesktop crashes when updating the desktop
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description David B. Cortarello 2006-09-06 01:29:23 CEST
Xfdesktop crashes when Ctrl+R. This happens when a file is removed in the desktop moving it to the trash, removing with delete key or removing  ~/Desktop/file and Ctrl+R (to update the changes) is pressed.
It crashes too when ctrl+R is pressed without changes in the desktop.

I'm not using gamin, fam, and the problem appears with dbus and without it running.
This is the error that I get when I press ctrl+R:

bash-3.00$ xfdesktop 

(xfdesktop:2986): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GObject'

(xfdesktop:2986): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(xfdesktop:2986): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(xfdesktop:2986): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GObject'

(xfdesktop:2986): GLib-GObject-CRITICAL **: g_object_set_data: assertion `G_IS_OBJECT (object)' failed

(xfdesktop:2986): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GObject'
Segmentation fault
bash-3.00$
Comment 1 David B. Cortarello 2006-09-06 16:13:15 CEST
(In reply to comment #0)
I think is the same bug that this one here:
http://bugzilla.xfce.org/show_bug.cgi?id=2271
Comment 2 Brian J. Tarricone (not reading bugmail) 2006-09-16 15:05:30 CEST

*** This bug has been marked as a duplicate of bug 2271 ***
Comment 3 Jani Monoses 2006-10-08 12:41:59 CEST
Created attachment 820 
fixes the warnings

This clears the icons before they are removed from the hash, otherwise for each 'regular' icon on the desktop these 5 lines of warnings are written
I think this is not really a duplicate of the dbus/trash patch

(xfdesktop:16232): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GObject'

(xfdesktop:16232): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer

(xfdesktop:16232): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(xfdesktop:16232): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GObject'

(xfdesktop:16232): GLib-GObject-CRITICAL **: g_object_set_data: assertion `G_IS_OBJECT (object)' failed
Comment 4 Olivier Fourdan editbugs 2006-10-12 11:06:01 CEST
This patch seems to fix the warnings I had previously.
Comment 5 Brian J. Tarricone (not reading bugmail) 2006-10-12 19:50:16 CEST
Yeah, this is a bit different.  I can repro this on my setup now (well, I see the warnings, but I don't get a crash).  I'll apply this later today...
Comment 6 Brian J. Tarricone (not reading bugmail) 2006-10-12 19:51:05 CEST
*** Bug 2422 has been marked as a duplicate of this bug. ***
Comment 7 Brian J. Tarricone (not reading bugmail) 2006-10-13 06:13:52 CEST
Slightly different fix, but either way this should be OK now.
Comment 8 Brian J. Tarricone (not reading bugmail) 2006-10-13 06:14:05 CEST
gah, mark resolved.

Bug #2272

Reported by:
David B. Cortarello
Reported on: 2006-09-06
Last modified on: 2009-07-14
Duplicates (1):

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Attachments

fixes the warnings (850 bytes, patch)
2006-10-08 12:41 CEST , Jani Monoses
no flags

Additional information