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 557868 - Exception in libglib-2.0.dll when playing next song
Exception in libglib-2.0.dll when playing next song
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Playback
1.3.3
Other Linux
: Normal critical
: 1.4
Assigned To: Aaron Bockover
Banshee Maintainers
: 557875 557923 558447 558486 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-10-25 14:36 UTC by trashbox382-bugzilla@yahoo.de
Modified: 2008-11-03 12:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
banshee log (16.47 KB, text/plain)
2008-10-25 14:45 UTC, trashbox382-bugzilla@yahoo.de
  Details
log (2) - import media (8.95 KB, text/plain)
2008-10-25 14:52 UTC, trashbox382-bugzilla@yahoo.de
  Details
log (3) settings (31.14 KB, text/plain)
2008-10-25 16:39 UTC, trashbox382-bugzilla@yahoo.de
  Details
Fix DllImports and dllmaps (5.20 KB, patch)
2008-10-27 20:17 UTC, Bertrand Lorentz
committed Details | Review

Description trashbox382-bugzilla@yahoo.de 2008-10-25 14:36:28 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
Comment 1 trashbox382-bugzilla@yahoo.de 2008-10-25 14:45:20 UTC
Created attachment 121346 [details]
banshee log
Comment 2 trashbox382-bugzilla@yahoo.de 2008-10-25 14:51:28 UTC
I removed all songs from the library, and tried to reimport all my songs.
Banshee quits when using "Import media"
See log (2).
Comment 3 trashbox382-bugzilla@yahoo.de 2008-10-25 14:52:18 UTC
Created attachment 121347 [details]
log (2) - import media
Comment 4 trashbox382-bugzilla@yahoo.de 2008-10-25 16:39:06 UTC
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).
Comment 5 trashbox382-bugzilla@yahoo.de 2008-10-25 16:39:41 UTC
Created attachment 121352 [details]
log (3) settings
Comment 6 Gabriel Burt 2008-10-25 18:31:46 UTC
What distro/version are you using? 
Comment 7 trashbox382-bugzilla@yahoo.de 2008-10-26 13:00:37 UTC
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"
Comment 8 trashbox382-bugzilla@yahoo.de 2008-10-26 13:08:08 UTC
(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
Comment 9 trashbox382-bugzilla@yahoo.de 2008-10-26 13:13:59 UTC
And up to 1.3.2 everything went fine.
Comment 10 Bertrand Lorentz 2008-10-26 17:55:52 UTC
Do you have a "Banshee.Core.dll.config" file in your banshee installation ?
It should be in /usr/lib/banshee-1/
Comment 11 Bertrand Lorentz 2008-10-26 18:07:44 UTC
*** Bug 557923 has been marked as a duplicate of this bug. ***
Comment 12 Bertrand Lorentz 2008-10-26 19:00:37 UTC
*** Bug 557875 has been marked as a duplicate of this bug. ***
Comment 13 Bertrand Lorentz 2008-10-26 19:27:16 UTC
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 ?
Comment 14 bart rose 2008-10-26 22:55:00 UTC
Removing the trailing -0 mentioned in the above comment seems to have fixed the issues I have been having with 1.3.3. Thanks.
Comment 15 Thomas Pifer 2008-10-27 04:43:05 UTC
(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.
Comment 16 trashbox382-bugzilla@yahoo.de 2008-10-27 13:25:12 UTC
I can confirm this fix, too. Thanks.
Comment 17 Bertrand Lorentz 2008-10-27 20:17:09 UTC
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.
Comment 18 Gabriel Burt 2008-10-30 03:11:28 UTC
*** Bug 558486 has been marked as a duplicate of this bug. ***
Comment 19 Bertrand Lorentz 2008-10-30 06:41:03 UTC
*** Bug 558447 has been marked as a duplicate of this bug. ***
Comment 20 javiermon 2008-10-31 10:20:12 UTC
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.
Comment 21 Bertrand Lorentz 2008-10-31 14:17:18 UTC
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.

Comment 22 Gabriel Burt 2008-10-31 16:27:12 UTC
Looks good Bertrand, please commit.
Comment 23 Bertrand Lorentz 2008-10-31 17:18:59 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 24 Wouter Bolsterlee (uws) 2008-11-02 20:10:26 UTC
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] 
Comment 25 Bertrand Lorentz 2008-11-02 20:45:37 UTC
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.
Comment 26 Wouter Bolsterlee (uws) 2008-11-02 20:55:22 UTC
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
Comment 27 Bertrand Lorentz 2008-11-03 11:34:47 UTC
The unstable Ubuntu packages have been updated.
Could you confirm that the problem is now fixed ?
Comment 28 Wouter Bolsterlee (uws) 2008-11-03 12:19:39 UTC
Confirming the warning I reported in comment 24 does not show up anymore. Marking FIXED. Thanks.