GNOME Bugzilla – Bug 477498
Failing to wrap type of 'GnomeVFSVolumeMonitorClient'
Last modified: 2011-01-16 23:36:20 UTC
Steps to reproduce: #include <gtkmm.h> Glib::thread_init(); Glib::RefPtr<VolumeMonitor> vm = VolumeMonitor::create(); /* Derefencing the pointer results in a SEGFAULT. */ vm->get_connected_drives(); Stack trace: [Thread debugging using libthread_db enabled] [New Thread -1249573168 (LWP 7446)] warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4 (oui-organiser:7446): glibmm-WARNING **: failed to wrap type of 'GnomeVFSVolumeMonitorClient' Program received signal SIGSEGV, Segmentation fault.
+ Trace 163335
Thread NaN (LWP 7446)
Other information: Get this bug on a current Ubuntu Feisty Fawn distribution.
This kind of problem ("failed to wrap type...") is generally caused by not initializing the library properly. I believe if you add the following line after Glib::thread_init(), it should work properly: Gnome::Vfs::Init(); If this doesn't fix the problem, feel free to reopen the bug.
Thanks for clearing this up. The solution is to replace the Glib::thread:init(); with Gnome::Vfs::init; With both init functions i got an error because of that.