GNOME Bugzilla – Bug 519791
0.23: applet crashes when usb dongle is removed after having browsed a device
Last modified: 2008-03-12 22:38:24 UTC
Browse a device, remove your usb bt adapter (after no nautilus is open in the location), see a crash, this is printed in the terminal, couldn't get a trace: (bluetooth-applet:12560): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `BluetoothDeviceSelection' (bluetooth-applet:12560): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)' If you can't reproduce I'll try to get the trace. ii bluetooth 3.26-0ubuntu3 ii bluez-audio 3.26-0ubuntu3 ii bluez-gnome 0.23-0ubuntu1 ii bluez-utils 3.26-0ubuntu3 ii libbluetooth-dev 3.26-0ubuntu1 ii libbluetooth2 3.26-0ubuntu1
Works here. Could you please get a backtrace of the warning (run with --g-fatal-warnings)?
(bluetooth-applet:12556): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `BluetoothDeviceSelection' (bluetooth-applet:12556): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7315720 (LWP 12556)] 0x08054502 in default_adapter_changed (gobject=0x8139140, arg1=0x810e6b8, data=0x81288a8) at bluetooth-device-selection.c:328 328 gtk_widget_set_sensitive (GTK_WIDGET (priv->treeview), FALSE); (gdb) thread apply all bt
+ Trace 191837
Thread 1 (Thread 0xb7315720 (LWP 12556))
I see what the problem is, we don't clean up the signal handlers when finalizing the object.
Created attachment 107025 [details] [review] bluez-gnome-device-removal-crash.patch Does this work for you?
Nope, client is not defined.
Bleh, that patch is completely wrong.
Created attachment 107026 [details] [review] bluez-gnome-device-removal-crash.patch Patch that actually compiles.
Uhm, makes no difference.
Created attachment 107066 [details] [review] bluez-gnome-device-removal-crash-2.patch That actually fixes it for me.
It does here too.
Posted the patch to the list.
Committed by Marcel.