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 656590 - Banshee hangs when Disconnecting Device
Banshee hangs when Disconnecting Device
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Device - USB Mass Storage
2.2.0
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2011-08-15 15:55 UTC by Questioner
Modified: 2020-03-17 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of Banshee interface while hung during disconnecting. (143.81 KB, image/png)
2011-08-30 03:20 UTC, Questioner
Details

Description Questioner 2011-08-15 15:55:57 UTC
Whenever I click on the "Disconnect" button, Banshee hangs indefinitely.

This is the output from debug mode from the moment I pressed disconnect (This is just a portion. It repeats this kind of thing seemingly forever):

[738 Debug 00:55:24.320][736 Debug 00:55:24.320] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
 Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[734 Debug 00:55:24.320] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[737 Debug 00:55:24.323] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[737 Debug 00:55:24.323] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.325] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.418] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[736 Debug 00:55:24.418] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[736 Debug 00:55:24.418] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.418] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[736 Debug 00:55:24.463] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.463] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[8 Debug 00:55:24.464] Starting - Saving Metadata to File
[739 Debug 00:55:24.474] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.474] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.474] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[739 Debug 00:55:24.474] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[740 Debug 00:55:24.474] Finished - Saving Metadata to File
[739 Debug 00:55:24.518] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.518] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.518] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.520] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.521] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.523] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[735 Debug 00:55:24.582] Watcher: Created /home/mythbuntu/.config/banshee-1/banshee.db-journal
[738 Debug 00:55:24.582] Watcher: Deleted /home/mythbuntu/.config/banshee-1/banshee.db-journal
[8 Debug 00:55:24.612] Watcher: sleeping 13ms
Comment 1 Bertrand Lorentz 2011-08-19 10:45:11 UTC
Those logs make me think you have configured your Music or Video folder to be /home/mythbuntu/.config/, which is not a good idea.

Could you change that, reproduce the problem and post the complete log output ?
Comment 2 Questioner 2011-08-19 11:21:02 UTC
My music is in /home/mythbuntu/Music. My videos (which I am not transferring to my Android at all) are in /home/mythbuntu/Vidoes

I have not ever stored anything in /home/mythbuntu/.config, at least not deliberately, and looking at it now, this is what is in that directory:

mythbuntu@mythbuntu:~/.config/banshee-1$ ls
addin-db-001  banshee.db  gtk_accel_map  log  ossifer-browser-cookies.sqlite

Within Banshee preferneces, under "Source Specific", since the day I installed it, the "Music Folder" is set to /home/mythbuntu/Music, and similarly, the videos directory is /home/mythbuntu/Videos.
Comment 3 William Witt 2011-08-19 21:54:02 UTC
A few quick questions to see if I can reproduce the problem:

1) Are you running a default mythbuntu install with XFCE as the desktop manager?

2) When you say hang do you mean that the UI is completely unresponsive (can't play songs, etc), or do you mean that the device does not disappear from the devices section and the "working" indicator continually spins (but banshee is still usable).  If it is the latter I can reproduce the issue on KDE and XFCE.

3) What happens if you tell banshee to disconnect the device a second time?
Comment 4 William Witt 2011-08-20 01:02:41 UTC
I need to revise my statement: can reproduce similar behavior on KDE, but not XFCE (in a mythbuntu virtual box or installed alongside GNOME3 in openSUSE).
Comment 5 Questioner 2011-08-20 02:01:40 UTC
William,

1) Yes, default Mythbuntu 11.04 with XFCE as the desktop manager.

2) I mean that the device does not disappear from the device section, and there is a working indicator that says "Disconnecting Media Player..," that does not go away. Interface does respond, but while in this working/disconnecting state, it is prone to crashing.

3) I can press the disconnect button as many times as I like and it seems to make no difference.

Note: I upgraded to a daily build, and now my device is recognized as "Samsung Galaxy". This hasn't impacted the problem of disconnecting, but I thought I should mention any changes.
Comment 6 William Witt 2011-08-20 23:26:53 UTC
Please ensure package libgio-cil is installed on your system, I can only reproduce your your bug on my mythbuntu VirtualBox install if I remove that package.
Comment 7 William Witt 2011-08-20 23:54:49 UTC
Further testing shows that I cannot reliably reproduce the issue even with libgio-cil removed...
Comment 8 Questioner 2011-08-21 04:19:04 UTC
I have libgio-cil version 2.22.3-1 installed.
Comment 9 Questioner 2011-08-27 07:10:47 UTC
Note: Upgraded to 2.1.3. Still no change.

New information:
I am sorry I did not report this before, because I didn't think of it. However, I may not be connecting to my Android device in the usual way.

My Samsung Android device has two storage areas, an SD card and something called "USB Storage", which I assume is some kind of on-board flash memory. When I first attempted to connect Banshee, neither would show up as a removable device in any way. And, in any case, I wanted to ensure that only the SD card would be used for storing music and podcasts.

Following advice on Ubuntu forums, I added the following line to my /etc/fstab file:

/dev/sdc        /home/mythbuntu/Galaxy1  auto    rw,user,noauto,exec,utf8 0

Then, I can mount the Galaxy SD card by issuing the following command:

$ mount Galaxy1

Note: If I do not do this, the Galaxy will not show up in Banshee.

When I press "Disconnect" in the banshee interface, and then go to the command line and issue a "umount Galaxy1" command, sometimes I get this response:

umount: /home/mythbuntu/Galaxy1: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

... and sometimes I get this response:
umount: /home/mythbuntu/Galaxy1 is not mounted (according to mtab)

Either way the "Disconnecting Media Player..." message remains, and the Galaxy shows as being still connected in the "Devices" section of the interface.

Sometimes Banshee crashes if given enough time. If I close Banshee and reopen it, the Galaxy will still appear as if connected. I usually have to reboot to make Banshee not show the unmounted Galaxy anymore.

Again, apologies I did not make this set up clear from the start. It had been a while since I set it up this way, and got so used to it, it slipped my mind that I was probably doing something unusual.
Comment 10 William Witt 2011-08-27 16:15:33 UTC
Whithout the fstab entry, doe it show up in Thunar?  If so, see what happens once you mount it manually in Thunar. 

On my KDE vm, devices do not show up until monually mounted via the KDE interface. This is also true for thumb drives that I connect to my mythbuntu VM.
Comment 11 Questioner 2011-08-28 03:10:06 UTC
As far as I can tell, it is impossible to mount the device without the entry in /etc/fstab.

Only after I issue the mount command does it appear in Thunar and/or Banshee.

I am unclear whether the "Disconnect" feature in Banshee is for disconnecting the drive from Banshee alone, or is it attempting to unmount the drive entirely from the system. If it is the latter, is it possibly a permissions issue?
Comment 12 William Witt 2011-08-28 17:07:09 UTC
The disconnect feature syncs playlists then unmounts/ejects the device.  I think the root of your problem might be the fact that it shows up as /dev/sdc as opposed to /dev/sdc1.  The user land mounting tools might have trouble locating it.  I'm not sure there is much that can be done from banshee, but I'll see if I cant format a thumb drive in a way that reproduces that part of it too.
Comment 13 William Witt 2011-08-28 20:07:51 UTC
Attempted to reproduce by creating a FAT filesystem directly on a thumb drive.  Both GNOME(Fedora) and XFCE(mythbuntu) we able to pick it up with out a hitch.  In both cases disconnecting the device in banshee dismounted the device as intended.  

Do you have some other application accessing the device as well?  Perhaps shotwell or f-spot is importing photos?  Are you in the mount point in a terminal (that can cause the umount process to hang)?
Comment 14 Questioner 2011-08-29 06:50:10 UTC
So far as I know, I don't have any terminals open in the mount point.

I don't believe there are any other applications accessing the drive, but then, if there are any automatic processes not started by me, then I am not sure how to test to see what they would be doing. Is there a way I can see what processes, if any are accessing the remote drive in question?

After Disconnecting in Banshee, if I try to unmount the drive from the command line, I consistently get this message recently:

$ umount Galaxy1
umount: /home/mythbuntu/Galaxy1 is not mounted (according to mtab)

It seems that Banshee is successfully unmounting the drive, but that it is still trying to accomplish something else as well.
Comment 15 William Witt 2011-08-30 00:25:16 UTC
Ok, I can duplicate on mythbuntu if I remove the gvfs and gfs-backends packages.  Please ensure these are installed.
Comment 16 William Witt 2011-08-30 00:27:41 UTC
*correction*: gvfs-backends
Comment 17 Questioner 2011-08-30 03:20:40 UTC
Created attachment 195150 [details]
Screenshot of Banshee interface while hung during disconnecting.
Comment 18 Questioner 2011-08-30 03:22:13 UTC
Thank you for your continued help.

I already have the following installed:
gvfs 1.8.0-ubuntu3
gvfs-bin 1.8.0-ubuntu3
gvfs-backends 1.8.0-ubuntu3
libgvfscommon0 1.8.0-ubuntu3

I did not have gvfs-fuse 1.8.0-ubuntu3 installed, so I installed that.

However, it did not change the problem.

I've also uploaded a screenshot. I'm not sure it adds new information, but I thought I should show what it looks like when it hangs.
Comment 19 Questioner 2011-09-10 03:15:41 UTC
Upgraded to Banshee 2.1.4.

No change to this problem.
Comment 20 Questioner 2011-09-29 10:33:11 UTC
Upgraded to Banshee 2.2

No change to this problem.
Comment 21 Questioner 2011-10-16 02:56:38 UTC
Upgraded to Ubuntu 11.10.

This problem persists.

Is there any activity on this at all? I believe I have provided all information so far. Is there something else that needs to happen to go forward on this?
Comment 22 André Klapper 2020-03-17 09:23:41 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.