GNOME Bugzilla – Bug 557868
Exception in libglib-2.0.dll when playing next song
Last modified: 2008-11-03 12:19:39 UTC
Error/crash when banshee tries to play the next song in queue/library. When manually skipping to the next song, banshee even quits without any errormessage! Banshee is not usable anymore. Similar to bug # 538354 but obviously different reason. "Exception has been thrown by the taget of an invocation": Error details: Eine nicht behandelte Exception ist ausgelöst worden: libglib-2.0.dll at (wrapper managed-to-native) Banshee.Base.SafeUri:g_filename_from_uri (intptr,intptr,intptr) at Banshee.Base.SafeUri.UriToFilename (System.String uri) [0x00000] at Banshee.Base.SafeUri.get_AbsolutePath () [0x00000] at Banshee.Sources.PrimarySource.UriToFields (Banshee.Base.SafeUri uri, Banshee.Collection.Database.TrackUriType& type, System.String& uri_field) [0x00000] at Banshee.Collection.Database.DatabaseTrackInfo.get_UriField () [0x00000] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] Exception has been thrown by the target of an invocation. at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MonoProperty.GetValue (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.PropertyInfo.GetValue (System.Object obj, System.Object[] index) [0x00000] at Hyena.Data.Sqlite.AbstractDatabaseColumn.GetValue (System.Object target) [0x00000] at Hyena.Data.Sqlite.SqliteModelProvider`1[Banshee.Collection.Database.DatabaseTrackInfo].GetUpdateParams (Banshee.Collection.Database.DatabaseTrackInfo ) [0x00000] at Hyena.Data.Sqlite.SqliteModelProvider`1[Banshee.Collection.Database.DatabaseTrackInfo].Update (Banshee.Collection.Database.DatabaseTrackInfo ) [0x00000] at Hyena.Data.Sqlite.SqliteModelProvider`1[Banshee.Collection.Database.DatabaseTrackInfo].Save (Banshee.Collection.Database.DatabaseTrackInfo ) [0x00000] .NET Version: 2.0.50727.42 OS Version: Unix 2.6.24.21 Assembly Version Information: System.Web (2.0.0.0) avahi-sharp (1.0.0.0) Mono.Zeroconf.Providers.Avahi (1.0.0.0) Mono.Zeroconf (1.0.0.0) Banshee.Dap.MassStorage (1.3.3.0) taglib-sharp (2.0.3.0) Banshee.InternetRadio (1.3.3.0) Banshee.FileSystemQueue (1.3.3.0) Mono.Media (1.3.3.0) Banshee.PlayQueue (1.3.3.0) Banshee.MultimediaKeys (1.3.3.0) Migo (1.3.3.0) Banshee.Podcasting (1.3.3.0) Lastfm (1.3.3.0) Banshee.Lastfm (1.3.3.0) Banshee.Bookmarks (1.3.3.0) Banshee.Dap (1.3.3.0) Banshee.Daap (1.3.3.0) Banshee.AudioCd (1.3.3.0) pango-sharp (2.12.0.0) Banshee.Widgets (1.3.3.0) Banshee.Hal (1.3.3.0) Banshee.Unix (1.3.3.0) Banshee.GStreamer (1.3.3.0) gconf-sharp (2.20.0.0) Banshee.Gnome (1.3.3.0) Banshee.NowPlaying (1.3.3.0) System.Transactions (2.0.0.0) NDesk.DBus.GLib (1.0.0.0) Mono.Cairo (2.0.0.0) System.Data (2.0.0.0) Mono.Data.SqliteClient (2.0.0.0) System.Xml (2.0.0.0) Mono.Addins (0.3.0.0) gdk-sharp (2.12.0.0) atk-sharp (2.12.0.0) Hyena.Gui (1.3.3.0) gtk-sharp (2.12.0.0) Banshee.ThickClient (1.3.3.0) Nereid (1.3.3.0) NDesk.DBus.Proxies (0.0.0.0) Mono.Posix (2.0.0.0) Banshee.Core (1.3.3.0) System (2.0.0.0) Hyena (1.3.3.0) NDesk.DBus (1.0.0.0) glib-sharp (2.12.0.0) Banshee.Services (1.3.3.0) Banshee (1.3.3.0) mscorlib (2.0.0.0) Platform Information: Linux 2.6.24-21-generic i686 unknown GNU/Linux Disribution Information: [/etc/lsb-release] DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04.1" [/etc/debian_version] lenny/sid
Created attachment 121346 [details] banshee log
I removed all songs from the library, and tried to reimport all my songs. Banshee quits when using "Import media" See log (2).
Created attachment 121347 [details] log (2) - import media
This seems to be a more general issue. Banshee even crashes when I try to open the settings. Could this be some translation problem? See log (3).
Created attachment 121352 [details] log (3) settings
What distro/version are you using?
Platform Information: Linux 2.6.24-21-generic i686 unknown GNU/Linux Disribution Information: [/etc/lsb-release] DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
(In reply to comment #4) > This seems to be a more general issue. Banshee even crashes when I try to open > the settings. Could this be some translation problem? See log (3). > By the way, I'm using the german localized build 1.3.3
And up to 1.3.2 everything went fine.
Do you have a "Banshee.Core.dll.config" file in your banshee installation ? It should be in /usr/lib/banshee-1/
*** Bug 557923 has been marked as a duplicate of this bug. ***
*** Bug 557875 has been marked as a duplicate of this bug. ***
I can't reproduce this, but here's what I found : The code contains several "[DllImport ("libglib-2.0.dll")]", but the Banshee.Core.dll.config file contains the following : <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0" os="linux"/> Notice the extra "-0" in the dll name. Could you try to remove it and see if it fixes the problem ?
Removing the trailing -0 mentioned in the above comment seems to have fixed the issues I have been having with 1.3.3. Thanks.
(In reply to comment #13) > I can't reproduce this, but here's what I found : > The code contains several "[DllImport ("libglib-2.0.dll")]", but the > Banshee.Core.dll.config file contains the following : > > <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0" os="linux"/> > > Notice the extra "-0" in the dll name. Could you try to remove it and see if it > fixes the problem ? > Confirming this fix as well.
I can confirm this fix, too. Thanks.
Created attachment 121457 [details] [review] Fix DllImports and dllmaps Here's a proper patch to fix this. I tried to be exhaustive and use the windows DLL filename in the DllImport statements and corresponding dllmap elements.
*** Bug 558486 has been marked as a duplicate of this bug. ***
*** Bug 558447 has been marked as a duplicate of this bug. ***
Hi I was having the same issue on my machine and I can play music after changing the config file, but I cannot import music. I get a dll not found exception and the result is that I cannot import music. I can reproduce this in another computer I have, but it doesn't happen at work.
Editing the .config was just a dirty workaround and a way to check that I was on the right track. Of course, the proper fix would be to apply the patch.
Looks good Bertrand, please commit.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
After this patch was applied to the (unstable) Ubuntu package which I'm using on a Debian system, I see this on startup: [Info 21:06:14.950] Running Banshee 1.3.3 [Warn 21:06:18.910] Service `Banshee.MediaEngine.TranscoderService' not started: libglib-2.0-0.dll [Warn 21:06:18.920] Caught an exception - libglib-2.0-0.dll (in `Banshee.Unix') at (wrapper managed-to-native) Banshee.IO.Unix.Directory:g_mkdir_with_parents (intptr,int) at Banshee.IO.Unix.Directory.Create (System.String directory) [0x00000] at Banshee.IO.Directory.Create (System.String directory) [0x00000] at Banshee.MediaEngine.TranscoderService..ctor () [0x00000] at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
Looking into banshee_1.3.3-2~intrepid1_i386.deb, it seems that the patch was not applied. I'm keeping this open until this is confirmed by our packagers.
The 3 latest changelog messages seem to suggest otherwise: banshee (1.3.3-2~hardy1) hardy; urgency=low * Backport to Hardy -- Chow Loong Jin <hyperair@gmail.com> Sun, 02 Nov 2008 03:50:56 +0800 banshee (1.3.3-2~intrepid1) intrepid; urgency=low * Upload to Intrepid -- Chow Loong Jin <hyperair@gmail.com> Sun, 02 Nov 2008 03:38:20 +0800 banshee (1.3.3-2) experimental; urgency=low * debian/patches/01_dllimports.patch: + Patch from upstream SVN to fix some dllimports that made banshee crash in some circumstances (Closes: #503918). -- Sebastian Dröge <slomo@debian.org> Sat, 01 Nov 2008 20:28:15 +0100
The unstable Ubuntu packages have been updated. Could you confirm that the problem is now fixed ?
Confirming the warning I reported in comment 24 does not show up anymore. Marking FIXED. Thanks.