GNOME Bugzilla – Bug 346982
An unhandled exception was thrown: libdbus-glib-1
Last modified: 2006-09-27 15:39:27 UTC
Steps to reproduce: 1. Use Ubuntu Dapper 6.06 2. Get current CVS snapshot 3. Start Banshee Stack trace: An unhandled exception was thrown: libdbus-glib-1 in (wrapper managed-to-native) Banshee.BansheeEntry:dbus_g_thread_init () in <0x0003d> Banshee.BansheeEntry:Startup (System.String[] args) in <0x0001b> Banshee.BansheeEntry:Main (System.String[] args) .NET Version: 2.0.50727.42 Assembly Version Information: Mono.Posix (2.0.0.0) Banshee.Widgets (0.0.0.0) glade-sharp (2.8.0.0) gnome-sharp (2.8.0.0) gconf-sharp (2.8.0.0) Banshee.Base (0.0.0.0) gdk-sharp (2.8.0.0) System (2.0.0.0) atk-sharp (2.8.0.0) glib-sharp (2.8.0.0) gtk-sharp (2.8.0.0) banshee (0.11.0.26429) mscorlib (2.0.0.0) Platform Information: Linux 2.6.15-25-k7 i686 unknown GNU/Linux Disribution Information: [/etc/debian_version] testing/unstable [/etc/lsb-release] DISTRIB_ID=Ubuntu DISTRIB_RELEASE=6.06 DISTRIB_CODENAME=dapper DISTRIB_DESCRIPTION="Ubuntu 6.06 LTS" Other information: *This can be fixed by symlinking sudo /usr/lib/libdbus-glib-1.so.2.0.0 to /usr/liblibdbus-glib-1.so. *libdbus-glib-1-2 package version is 0.60-6ubuntu8 *dpkg -L libdbus-glib-1-2 /. /usr /usr/share /usr/share/doc /usr/share/doc/libdbus-glib-1-2 /usr/share/doc/libdbus-glib-1-2/README /usr/share/doc/libdbus-glib-1-2/AUTHORS /usr/share/doc/libdbus-glib-1-2/copyright /usr/share/doc/libdbus-glib-1-2/changelog.gz /usr/share/doc/libdbus-glib-1-2/NEWS.gz /usr/share/doc/libdbus-glib-1-2/changelog.Debian.gz /usr/lib /usr/lib/libdbus-glib-1.so.2.0.0 /usr/lib/libdbus-glib-1.so.2
I'm not seeing this with dapper, have you installed banshee correctly? Especially check if hal-sharp.dll.config is installed.
(In reply to comment #1) > I'm not seeing this with dapper, have you installed banshee correctly? > > Especially check if hal-sharp.dll.config is installed. > Hmm, this is probably packaging issue on my behalf. hal-sharp.dll is installed on /usr/lib/banshee like it probably should. I'm using existing Debian source package as template. This is what appears on terminal System.DllNotFoundException: libdbus-glib-1 in (wrapper managed-to-native) Banshee.BansheeEntry:dbus_g_thread_init () in <0x0003d> Banshee.BansheeEntry:Startup (System.String[] args) in <0x0001b> Banshee.BansheeEntry:Main (System.String[] args)
(In reply to comment #2) > I'm using existing Debian source package as template. Are you building .debs? What happens if you do a normal build? And: When building for Ubuntu, the best thing to do is start from Ubuntu packages.
Hi, I was able to start banshee without this error in a clean chroot jail using normal build, but this time I had libdbus-glib-1-dev package installed which provided /usr/lib/libdbus-glib-1.so $ dpkg -S /usr/lib/libdbus-glib-1.* libdbus-glib-1-dev: /usr/lib/libdbus-glib-1.a libdbus-glib-1-dev: /usr/lib/libdbus-glib-1.so libdbus-glib-1-2: /usr/lib/libdbus-glib-1.so.2 libdbus-glib-1-2: /usr/lib/libdbus-glib-1.so.2.0.0 These are files are from official Ubuntu packages.
I *think* ubuntu has a patch in the source pkgs to provide that mapping, but I'm not sure. Either way, I don't think this is a banshee bug, rather a packaging bug.
Yes, you need to patch banshee.exe.config.in to map to the right version.
Yes, adding <dllmap dll="libdbus-glib-1" target="libdbus-glib-1.so.2" /> to src/banshee.exe.config.in fixes this issue. Thanks for your answers.
Created attachment 68647 [details] [review] Add mapping libdbus-glib-1 --> libdbus-glib-1.so.2 In case anyone else needs this
Reopen. We should either commit the above patch or determine the soversion programmatically (at configure time?) See also https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202990
Banshee in HEAD uses 100% managed DBus and HAL, there is no more binding or native interop necessary.