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 631961 - failure to open ipod shuffle
failure to open ipod shuffle
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - iPod
1.7.6
Other Linux
: Normal major
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-12 10:06 UTC by Sven Meier
Modified: 2010-11-06 03:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
banshee-1 --debug (9.49 KB, text/plain)
2010-10-22 17:08 UTC, Sven Meier
Details
udevadm info --export-db (111.74 KB, text/plain)
2010-10-22 17:12 UTC, Sven Meier
Details
gvfs-mount --list (622 bytes, text/plain)
2010-10-22 17:12 UTC, Sven Meier
Details
banshee-1 --debug=casts (9.47 KB, text/plain)
2010-10-22 21:13 UTC, Sven Meier
Details

Description Sven Meier 2010-10-12 10:06:22 UTC
Opening a mounted ipod shuffle with banshee does nothing.
Log output:

exec -a banshee-1 mono  /usr/lib/banshee-1/Banshee.exe    --redirect-log --device-activate=/media/ALISA IPOD

[Info  12:01:24.827] Running Banshee 1.7.6: [Ubuntu maverick (development branch) (linux-gnu, x86_64) @ 2010-09-18 21:00:29 UTC]
[Info  12:01:26.471] Updating web proxy from GConf
[Warn  12:01:26.561] Caught an exception - System.InvalidCastException: Cannot cast from source type to destination type. (in `Banshee.Gio')
  at (wrapper managed-to-native) object:__icall_wrapper_mono_object_castclass (object,intptr)
  at Banshee.Hardware.Gio.HardwareManager+<GetAllBlockDevices>c__Iterator2`1[Banshee.Hardware.ICdromDevice].MoveNext () [0x00000] in <filename unknown>:0 
  at Banshee.Hardware.HardwareManager+<CastToCustomDevice>c__Iterator5`1[Banshee.Hardware.ICdromDevice].MoveNext () [0x00000] in <filename unknown>:0 
  at Banshee.AudioCd.AudioCdService.Initialize () [0x00000] in <filename unknown>:0 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] in <filename unknown>:0 
[Warn  12:01:26.561] Extension `Banshee.AudioCd.AudioCdService' not started: Cannot cast from source type to destination type.
[Warn  12:01:26.566] Caught an exception - System.InvalidCastException: Cannot cast from source type to destination type. (in `Banshee.Gio')
  at (wrapper managed-to-native) object:__icall_wrapper_mono_object_castclass (object,intptr)
  at Banshee.Hardware.Gio.HardwareManager+<GetAllBlockDevices>c__Iterator2`1[Banshee.Hardware.ICdromDevice].MoveNext () [0x00000] in <filename unknown>:0 
  at Banshee.Hardware.HardwareManager+<CastToCustomDevice>c__Iterator5`1[Banshee.Hardware.ICdromDevice].MoveNext () [0x00000] in <filename unknown>:0 
  at Banshee.AudioCd.AudioCdService.Initialize () [0x00000] in <filename unknown>:0 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] in <filename unknown>:0 
[Warn  12:01:26.566] Extension `Banshee.AudioCd.AudioCdService' not started: Cannot cast from source type to destination type.
[Info  12:01:26.567] All services are started 1,432567
[Info  12:01:27.489] nereid Client Started
[Info  12:01:27.688] Received device command: action = Activate, device = /media/ALISA IPOD
Comment 1 David Nielsen 2010-10-16 19:21:56 UTC
Thank you for the report.

Can you please follow the instructions on the follow page so that we may have all the information needed to examine your issue?

http://live.gnome.org/Banshee/LibgpodTransition
Comment 2 Sven Meier 2010-10-22 17:08:25 UTC
Created attachment 173022 [details]
banshee-1 --debug
Comment 3 Andrés G. Aragoneses (IRC: knocte) 2010-10-22 17:11:30 UTC
Can you change the banshee script to use --debug=casts instead of just "--debug" when calling Mono? And attach the resulting log again.

Thanks!
Comment 4 Sven Meier 2010-10-22 17:12:14 UTC
Created attachment 173023 [details]
udevadm info --export-db
Comment 5 Sven Meier 2010-10-22 17:12:43 UTC
Created attachment 173024 [details]
gvfs-mount --list
Comment 6 Sven Meier 2010-10-22 21:13:21 UTC
Created attachment 173037 [details]
banshee-1 --debug=casts

I changed the startup script to check for --debug=casts but it doesn't seem to make a difference.
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2010-10-25 20:32:55 UTC
What version of mono are you running? If I recall correctly, there was a bug with debug=casts that was fixed in 2.8.
Comment 8 Sven Meier 2010-10-25 20:56:12 UTC
Ubuntu Maverick:

sven@hal:~$ mono --version
Mono JIT compiler version 2.6.7 (Debian 2.6.7-3ubuntu1)
Comment 9 Alan McGovern 2010-11-05 01:50:57 UTC
Should be fixed in git master. If possible, could you try the next daily release just to verify that everything is ok? For now you can get around the issue by disabling the audio cd support extension when you don't need it.
Comment 10 Alan McGovern 2010-11-05 01:52:22 UTC
Just marking this as NEEDINFO for now. We should close this in a weeks time (or so) if there's no further updates. Otherwise mark it as resolved if Sven comes back with good news :)
Comment 11 Sven Meier 2010-11-05 19:40:56 UTC
Disabling audio cd support didn't change anything.

However with the latest update from ppa:banshee-team/banshee-daily my iPod was successfully recognized.

This isssue is resolved - thanks.
Comment 12 David Nielsen 2010-11-05 22:55:49 UTC
In that case, closing as FIXED. Alan it sounds like this patch might also be prudent in the stable-1.8 branch but it is not applied there.
Comment 13 Alan McGovern 2010-11-06 03:42:29 UTC
If this should be backported, the commit is: 32c3baddb7b0a58a72ed8ad9243179255bba50b7 CC'ing gabriel on this. It's a trivial one to backport, I'm just not sure how to handle it.