GNOME Bugzilla – Bug 660295
Remote volume monitor proxy disposed but not finalized
Last modified: 2011-09-28 13:55:49 UTC
Due to reference count juggling, we can easily end up in a situation where an instance of a subclass of GProxyVolumeMonitor is disposed but not yet finalized. For example, this happens in situations where you run 'gvfs-mount -d /dev/sdb1'. I discovered this problem while developing an udisks2-based volume monitor (to replace the gdu volume monitor). While it's possible to fix this [1], a much better solution is just to keep the remote volume monitor proxy around forever. [1] : for example, by moving g_hash_table_remove (the_volume_monitors, (gpointer) type); into the dispose handler... but this fix alone is not sufficient.
Created attachment 197609 [details] [review] Patch Once constructed, keep proxies for remote volume monitor processes around forever.
Committed on master (branched for 3.2 before that): http://git.gnome.org/browse/gvfs/commit/?id=7f976371da249ef587925145c0eedf9f86f4696d