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 346982 - An unhandled exception was thrown: libdbus-glib-1
An unhandled exception was thrown: libdbus-glib-1
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other All
: Normal major
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-08 15:10 UTC by Matti Lindell
Modified: 2006-09-27 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add mapping libdbus-glib-1 --> libdbus-glib-1.so.2 (428 bytes, patch)
2006-07-09 01:26 UTC, Matti Lindell
none Details | Review

Description Matti Lindell 2006-07-08 15:10:32 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
Comment 1 Ruben Vermeersch 2006-07-08 15:30:19 UTC
I'm not seeing this with dapper, have you installed banshee correctly?

Especially check if hal-sharp.dll.config is installed.
Comment 2 Matti Lindell 2006-07-08 15:49:27 UTC
(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)
Comment 3 Ruben Vermeersch 2006-07-08 16:01:50 UTC
(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.
Comment 4 Matti Lindell 2006-07-08 17:21:44 UTC
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.
Comment 5 Ruben Vermeersch 2006-07-08 17:37:25 UTC
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.
Comment 6 Aaron Bockover 2006-07-08 17:46:54 UTC
Yes, you need to patch banshee.exe.config.in to map to the right version.
Comment 7 Matti Lindell 2006-07-08 18:26:30 UTC
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.
Comment 8 Matti Lindell 2006-07-09 01:26:24 UTC
Created attachment 68647 [details] [review]
Add mapping libdbus-glib-1 --> libdbus-glib-1.so.2

In case anyone else needs this
Comment 9 Christopher Aillon 2006-09-01 19:10:46 UTC
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
Comment 10 Aaron Bockover 2006-09-27 15:39:27 UTC
Banshee in HEAD uses 100% managed DBus and HAL, there is no more binding or native interop necessary.