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 540632 - Banshee auto-launch crashes Gnome
Banshee auto-launch crashes Gnome
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - USB Mass Storage
1.0.0
Other Linux
: Normal major
: 1.x
Assigned To: Gabriel Burt
Gabriel Burt
Depends on:
Blocks:
 
 
Reported: 2008-06-28 15:50 UTC by jon cosby
Modified: 2008-09-14 22:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jon cosby 2008-06-28 15:50:03 UTC
Plugging in my Sansa E280 in Gnome 2.22 launches Banshee 1.0, which in turn freezes Gnome. The mouse and keyboard respond but I can't close or open any applications or a terminal. Banshee plays music from my library but doesn't respond if I try to stop it. The Sansa is in mass storage mode.
Comment 1 Bertrand Lorentz 2008-07-01 17:48:40 UTC
I have a fairly identical setup (GNOME 2.22, Sansa e280) but I wasn't able to reproduce your problem.

In order to isolate things a bit, please try the following :
1. Deactivate the auto-launch of banshee (it's in Nautilus, Edit > Preferences > Media)
2. Plug your e280 in and see what happens
3. Unplug your e280
4. Start banshee
5. Plug your e280 in and see what happens

Comment 2 jon cosby 2008-07-01 23:49:07 UTC
> 1. Deactivate the auto-launch of banshee (it's in Nautilus,
>    Edit > Preferences > Media)
> 2. Plug your e280 in and see what happens

e280 is detected as a DAP and automatically mounted.

> 3. Unplug your e280
> 4. Start banshee
> 5. Plug your e280 in and see what happens

e280 is not auto-mounted. It does not appear in Banshee. e280 display shows "Disconnected".

Oddly, my e250 is auto-mounted as a storage device and loads in Banshee without a problem. So the problem must be in the e280. I normally use a file manager and a tag editor to organize the songs. I got the e250 for testing Banshee and other software and the songs on that were organized and syncronized in Banshee. Maybe there's something in the file structure that Banshee doesn't like?
Comment 3 Bertrand Lorentz 2008-07-02 21:06:53 UTC
One possible difference : I have a ".is_audio_player" file a the root of my e280, with the following content :

audio_folders=music/

Which is indeed where the e280 stores the audio files. I think that without this banshee will scan the whole device, and that might cause problems.
Comment 4 jon cosby 2008-07-04 16:41:23 UTC
Still not detected in Banshee. If plugged in with Banshee open, it is not mounted at all.
Comment 5 Andrew Conkling 2008-08-06 01:56:38 UTC
Any update in 1.2?
Comment 6 jon cosby 2008-08-08 14:35:28 UTC
No progress. If I "Open in Banshee", Banshee launches but window turns gray and is disabled after a few seconds. Can't navigate, play or quit Banshee cleanly. Sansa indicates "Disconnected" through this.
Comment 7 Markus 2008-08-12 11:31:38 UTC
This Bugs i have with Banshee 1.2 and my Sansa e280 (hardwareversion v1):

The e280 is set to the MSC-USB mode.

1] If I start Banshee 1.2 under Ubuntu Gutsy Gibbon 7.10 the Sansa e280 Player disconnects.

2] If I start Banshee 1.2 and then connect the player it gets recognized but Banshee 1.2 crashes.

With Banshee 0.13.2(provided through the packet manager of ubuntu) I get an MTP Device Error if the player is connected at startup of Banshee 0.13.2 like Banshee 1.2
If Banshee is started up and then the sansa is connected everything works flawless in Banshee 0.13.2.

Thank you for your work. 
Comment 8 Markus 2008-08-12 12:07:08 UTC
(Gnome 2.20.1 Ubuntu Gutsy Gibbon 7.10)
Player is in MSC-Mode.

A] Banshee 0.13.2
1] Player is plugged in bevor start of Banshee 0.13.2:

Player gets recognized by system and Nautilus 2.20.0 opens with /media/Sansa e280
After start of Banshee 0.13.2 Player disconnects and Banshee crashes:

~$ banshee
Debug: [12.08.2008 13:42:18] (Loading audio profiles) - /usr/share/banshee/audio-profiles
Debug: [12.08.2008 13:42:22] (Standard Wiedergabe-Engine) - GStreamer 0.10
Debug: [12.08.2008 13:42:22] (Audio-CD Kern initialisiert) - 
Debug: [12.08.2008 13:42:23] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:42:23] (DAP has been added) - Banshee.Dap.MassStorage.MassStorageDap: /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:42:23] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_842CA5C62CA5B398
Debug: [12.08.2008 13:42:23] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_842CA5C62CA5B398
Debug: [12.08.2008 13:42:23] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_52D07453D0743F73
Debug: [12.08.2008 13:42:24] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_52D07453D0743F73
Debug: [12.08.2008 13:42:24] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_9877_489A
Debug: [12.08.2008 13:42:24] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_9877_489A
Debug: [12.08.2008 13:42:24] (Testing device for DAP support) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_0
Debug: [12.08.2008 13:42:24] (DAP has not been added) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_0
Debug: [12.08.2008 13:42:24] (Testing device for DAP support) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_1
Debug: [12.08.2008 13:42:24] (DAP has not been added) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_1
Debug: [12.08.2008 13:42:24] (Testing device for DAP support) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
PTP: Opening session
PTP_ERROR_IO: Trying again after resetting USB
usb_clear_halt() on INTERRUPT endpoint: No such file or directory
PTP: Opening session
LIBMTP PANIC: Could not open session! (Return code 767)
  Try to reset the device.
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1806
Error: [12.08.2008 13:42:44] (MTP Device Error) - Mtp.LibMtpException: LIBMTP_ERROR_CONNECTING
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.LibMtp.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpDap.Initialize (Hal.Device halDevice) [0x00000] 
Debug: [12.08.2008 13:42:44] (DAP has not been added) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
Debug: [12.08.2008 13:42:44] (Enabled multimedia keys support) - Using org.gnome.SettingsDaemon
Setting IO Backend to Banshee.IO.Unix.IOConfig (unix)
Importing timer stopped: 00:00:00.0003280
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Exception: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_0
  at IDeviceProxy.PropertyExists (System.String ) [0x00000] 
  at Hal.Device.PropertyExists (System.String key) [0x00000] 
  at Hal.Device.get_Item (System.String property) [0x00000] 
  at Banshee.Dap.MassStorage.MassStorageDap.get_IconId () [0x00000] 
  at Banshee.Dap.MassStorage.MassStorageDap.GetIcon (Int32 size) [0x00000] 
  at Banshee.Sources.DapSource.get_Icon () [0x00000] 
  at Banshee.Gui.SourceRowRenderer.Render (Gdk.Drawable drawable, Gtk.Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags) [0x00000] 
  at Gtk.CellRenderer.Render_cb (IntPtr item, IntPtr window, IntPtr widget, Gdk.Rectangle& background_area, Gdk.Rectangle& cell_area, Gdk.Rectangle& expose_area, CellRendererState flags) [0x00000] 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.CellRenderer.Render_cb(IntPtr item, IntPtr window, IntPtr widget, Rectangle ByRef background_area, Rectangle ByRef cell_area, Rectangle ByRef expose_area, CellRendererState flags)
   at Gtk.CellRenderer.Render_cb(IntPtr , IntPtr , IntPtr , Rectangle ByRef , Rectangle ByRef , Rectangle ByRef , CellRendererState )
   at Gtk.Application.gtk_main()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Gnome.Program.Run()
   at Banshee.BansheeEntry.Startup(System.String[] args)
   at Banshee.Gui.CleanRoomStartup.Startup(Banshee.Gui.StartupInvocationHandler startup, System.String[] args)
   at Banshee.BansheeEntry.Main(System.String[] args)

2] Player is plugged in after start of Banshee 0.13.2:

Debug: [12.08.2008 13:45:17] (Loading audio profiles) - /usr/share/banshee/audio-profiles
Debug: [12.08.2008 13:45:17] (Standard Wiedergabe-Engine) - GStreamer 0.10
Debug: [12.08.2008 13:45:17] (Audio-CD Kern initialisiert) - 
Debug: [12.08.2008 13:45:17] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_842CA5C62CA5B398
Debug: [12.08.2008 13:45:18] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_842CA5C62CA5B398
Debug: [12.08.2008 13:45:18] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_52D07453D0743F73
Debug: [12.08.2008 13:45:18] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_52D07453D0743F73
Debug: [12.08.2008 13:45:18] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_9877_489A
Debug: [12.08.2008 13:45:18] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_9877_489A
Debug: [12.08.2008 13:45:18] (Enabled multimedia keys support) - Using org.gnome.SettingsDaemon
----------------------------------------------------------------
I'm pluging in the Player
----------------------------------------------------------------
Debug: [12.08.2008 13:46:51] (Testing device for DAP support) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
PTP: Opening session
PTP_ERROR_IO: Trying again after resetting USB
usb_clear_halt() on INTERRUPT endpoint: No such file or directory
PTP: Opening session
LIBMTP PANIC: Could not open session! (Return code 767)
  Try to reset the device.
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1806
Error: [12.08.2008 13:47:12] (MTP Device Error) - Mtp.LibMtpException: LIBMTP_ERROR_CONNECTING
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.LibMtp.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpDap.Initialize (Hal.Device halDevice) [0x00000] 
Debug: [12.08.2008 13:47:12] (DAP has not been added) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
-----------------------------------------------------------------
Ok, this time it did not work (-_-);
Second try...Player plugin
-----------------------------------------------------------------
Debug: [12.08.2008 13:48:53] (Testing device for DAP support) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
Error: [12.08.2008 13:48:53] (MTP Device Error) - Mtp.LibMtpException: LIBMTP_ERROR_NO_DEVICE_ATTACHED
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.LibMtp.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpDap.Initialize (Hal.Device halDevice) [0x00000] 
Debug: [12.08.2008 13:48:53] (DAP has not been added) - /org/freedesktop/Hal/devices/usb_device_781_7421_00000000_00000000_0145b4a4_f41ee919_00000000_if0
Debug: [12.08.2008 13:48:58] (Testing device for DAP support) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_1
Debug: [12.08.2008 13:48:58] (DAP has not been added) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_1
Debug: [12.08.2008 13:48:59] (Testing device for DAP support) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_0
Debug: [12.08.2008 13:48:59] (DAP has not been added) - /org/freedesktop/Hal/devices/storage_serial_SanDisk_Sansa_e280_00000000_00000000_0145b4a4_f41ee919_00000000_0_0
Debug: [12.08.2008 13:48:59] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:48:59] (Waiting for possible DAP to mount) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:48:59] (DAP has not been added) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:48:59] (Possible DAP has mounted) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:48:59] (Testing device for DAP support) - /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Debug: [12.08.2008 13:48:59] (DAP has been added) - Banshee.Dap.MassStorage.MassStorageDap: /org/freedesktop/Hal/devices/volume_uuid_C4CD_5CF5
Setting IO Backend to Banshee.IO.Unix.IOConfig (unix)
Importing timer stopped: 00:00:29.2086420
------------------------------------------------------------------
now it worked. Banshee  0.13.2. recognizes the e280 and imported all songs.
------------------------------------------------------------------

B] Banshee 1.2.0
1] Player is plugged in bevor start of Banshee 1.2.0:

Player gets recognized by system and Nautilus 2.20.0 opens with /media/Sansa e280

After start of Banshee player disconnects and Banshee hangs up.

~$ banshee-1
[Info  13:56:26.378] Running Banshee 1.2.0
[Error 13:56:30.996] Unknown sort key passed in! Published not recognized
[Info  13:56:31.418] All services are started 4,621001s
[Info  13:56:33.057] nereid Client Started
PTP: Opening session
----------------------------------------------------------------------
Player disconnects
----------------------------------------------------------------------
PTP_ERROR_IO: Trying again after resetting USB
usb_clear_halt() on INTERRUPT endpoint: No such file or directory
PTP: Opening session
LIBMTP PANIC: Could not open session! (Return code 767)
  Try to reset the device.
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1806
[Warn  13:56:54.994] Caught an exception - Connecting (in `Mtp')
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.MtpDevice.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] 
----------------------------------------------------------------------
Banshee hangs up. (Empty Banshee-Window)
----------------------------------------------------------------------

2] Player is plugged in after start of Banshee 1.2.0:

~$ banshee-1
[Info  14:01:24.478] Running Banshee 1.2.0
[Error 14:01:26.802] Unknown sort key passed in! Published not recognized
[Info  14:01:26.961] All services are started 2,2646s
[Info  14:01:27.981] nereid Client Started
----------------------------------------------------------------------
I'm plugging in the player....
----------------------------------------------------------------------
[Warn  14:02:53.347] Caught an exception - NoDeviceAttached (in `Mtp')
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.MtpDevice.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] 
----------------------------------------------------------------------
Player appears in Banshee 1.2.0.
If I click in Banshee on Sansa e280 -> Musik 
I see the message: "Sansa e280 wird geladen" but nothing happens.
No musikfiles are getting loaded.
That's it.
-----------------------------------------------------------------------


Comment 9 Markus 2008-08-12 20:12:01 UTC
(Gnome 2.20.1 Ubuntu Gutsy Gibbon 7.10)
Player is in MTP-Mode.

A] Banshee 1.2.0 - Player is plugged in bevor start of Banshee

Player does not get recognized

~$ banshee-1 
[Info  22:07:18.953] Running Banshee 1.2.0
[Error 22:07:21.583] Unknown sort key passed in! Published not recognized
[Info  22:07:21.741] All services are started 2,570134s
[Info  22:07:22.797] nereid Client Started
Potential MTP Device with VendorID:0781 and ProductID:7420 responded to control message 2 with a response that was too short. Problems may arrise but continuing
PTP: Opening session
PTP_ERROR_IO: Trying again after resetting USB
Clearing stall on IN endpoint
Clearing stall on OUT endpoint
usb_claim_interface(): Bad file descriptor
LIBMTP PANIC: Could not open session on device 1
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1806
[Warn  22:07:29.065] Caught an exception - Connecting (in `Mtp')
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.MtpDevice.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] 
[Warn  22:07:29.241] Caught an exception - org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/usb_device_781_7420_00000000_00000000_0145b4a4_f41ee919_00000000_if0 (in `NDesk.DBus.Proxies')
  at IDeviceProxy.PropertyExists (System.String ) [0x00000] 
  at Hal.Device.PropertyExists (System.String key) [0x00000] 
  at Hal.Device.get_Item (System.String property) [0x00000] 
  at Banshee.HalBackend.Device.get_Uuid () [0x00000] 
  at Banshee.Dap.DapService+<>c__CompilerGenerated1.<MapDevice>c__6 () [0x00000] 
[Warn  22:07:29.263] Caught an exception - org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/usb_device_781_7420_00000000_00000000_0145b4a4_f41ee919_00000000_if0 (in `NDesk.DBus.Proxies')
  at IDeviceProxy.PropertyExists (System.String ) [0x00000] 
  at Hal.Device.PropertyExists (System.String key) [0x00000] 
  at Hal.Device.get_Item (System.String property) [0x00000] 
  at Banshee.HalBackend.Device.get_Uuid () [0x00000] 
  at Banshee.Dap.DapService+<>c__CompilerGenerated1.<MapDevice>c__6 () [0x00000] 
[Warn  22:07:29.543] Caught an exception - NoDeviceAttached (in `Mtp')
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.MtpDevice.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] 

B] Banshee 1.2.0 - Player is plugged in after start of Banshee

Player does not get recognized

~$ banshee-1 
[Info  22:11:15.969] Running Banshee 1.2.0
[Error 22:11:18.723] Unknown sort key passed in! Published not recognized
[Info  22:11:18.881] All services are started 2,691126s
[Info  22:11:19.961] nereid Client Started
---------------------------------------------------------
Player plug-in
---------------------------------------------------------
[Warn  22:11:56.033] Caught an exception - NoDeviceAttached (in `Mtp')
  at Mtp.Error.CheckError (ErrorCode errorCode) [0x00000] 
  at Mtp.MtpDevice.GetConnectedDevices (System.IntPtr& list) [0x00000] 
  at Mtp.MtpDevice.Detect () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00000] 

-----------------------
Thats it
-----------------------

Comment 10 Andrew Conkling 2008-09-14 22:29:26 UTC
1.3 should have a fix for this. Please reopen this if you find that it does not fix the issue for you.