After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 477498 - Failing to wrap type of 'GnomeVFSVolumeMonitorClient'
Failing to wrap type of 'GnomeVFSVolumeMonitorClient'
Status: RESOLVED NOTABUG
Product: gnome-vfsmm
Classification: Deprecated
Component: general
git master
Other All
: Normal critical
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-09-16 14:51 UTC by Martin Reissner
Modified: 2011-01-16 23:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Martin Reissner 2007-09-16 14:51:15 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.

Thread NaN (LWP 7446)

  • #0 Gnome::Vfs::VolumeMonitor::get_connected_drives
    from /usr/lib/libgnomevfsmm-2.6.so.1
  • #1 oui::Toolbar::Toolbar
    from /home/root66/programming/cpp/organise-ui/trunk/bin/oui/liboui.so.0.1
  • #2 oui::Window::Window
    from /home/root66/programming/cpp/organise-ui/trunk/bin/oui/liboui.so.0.1
  • #3 main

Other information:
Get this bug on a current Ubuntu Feisty Fawn distribution.
Comment 1 Jonathon Jongsma 2007-09-16 16:12:33 UTC
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.
Comment 2 Martin Reissner 2007-09-25 17:38:27 UTC
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.