GNOME Bugzilla – Bug 339931
Rhythmbox loses automounted entries in playlist
Last modified: 2018-05-24 11:33:30 UTC
Please describe the problem: My music is on a nfs network drive, automounted by autofs. This has never caused any problems on playback. However, if a playlist is loaded containing files from the automounted drive - and the drive is not accessed for a period (e.g: playing musics from a local drive) such that the automounter unmounts the network drive - then those entries on the playlist from that drive disappear. Steps to reproduce: 1. Creat playlist containing files on automounted drive 2. Leave for automount to umount. 3. Playlist entries disappear. Actual results: Expected results: Since rhythmbox is capable of playing these files if clicked on directly (before the drive is automounted) - then it should also be able to check the existance of playlist entries on automounted drives - i.e. These files exist. They are accessible (once the automounter mounts the drive) - they should not disappear from the playlist as if they no longer exist. Does this happen every time? Happens every time. Other information:
This should be fixed in newer versions, unless the files haven't been seen in a long time (I think the default is 45 days).
I think the point of this bug was not that the files are removed from the library, but that they are hidden when they shouldn't be. When autofs unmounts a volume, files on that volume aren't really missing. Attempting to access a file on the volume will cause autofs to mount it again, so it makes sense that the songs would stay visible. To fix this, we'd just ignore volume unmount events underneath autofs mounts. This would probably bring up a few error cases, such as when the automount fails. I'm not really sure how we'd handle this.
I see something similar with my USB disk which holds the music library. If the drive is mot mounted when rb starts, the tracks are not in the library or playlists - ok. When the drive is available, rb finds the files again, but the playlists remain empty. This only happens for manual playlists.
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/59966 "im on fully updated edgy to reproduce... make a playlist containing songs on a removable harddrive. unmount the external medium and the playlist empties since the songs are not available. now - mount the device again...the library will fill up but the playlist wont... basically - playlists dont "keep" songs..."
Created attachment 74394 [details] [review] untested patch This adds support for tracking hidden entries in query models with no query (which is how static playlists work). I haven't actually tested that this helps in any way, I just wrote it to make an unrelated test case work.
I have noticed this too, even with tracks on a local partition, they can disappear from manual playlists. Don't know how to reproduce in the local partition case.
The patch actually had nothing to do with this bug, but I've committed it anyway.
If I open rhythm box without my external hard drive plugged in (where all my music is) then it looses all the songs that were there and then takes ages re-importing them again once I plug the external hard drive in again. It also completely and utterly loses all my playlists. Luckily I mostly just use shuffle, because otherwise loosely the playlists would be really REALLY f*!king annoying, not just mildly f*!king annoying!
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/182.