Songs that have a space in their path are not imported automatically from watched music folders

Bug #147883 reported by Sebastian Urban
80
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rhythmbox
Fix Released
Medium
rhythmbox (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Hardy
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: rhythmbox

Instead they are shown in the import error section with a file not found error. The spaces in the paths are replaced by %20.

Manual importing works without problems.

ProblemType: Bug
Architecture: i386
Date: Tue Oct 2 00:45:52 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/rhythmbox
Package: rhythmbox 0.11.2-0ubuntu4
PackageArchitecture: i386
ProcCmdline: rhythmbox
ProcCwd: /home/surban
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: rhythmbox
Uname: Linux reddot 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

Related branches

Revision history for this message
Sebastian Urban (surban) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, That works fine in my desktop with a file named: "17 - artist - title - album", not confirming for now.

Changed in rhythmbox:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Could you run "rhythmbox -d &>log" and attach the log to the bug?

Changed in rhythmbox:
status: New → Incomplete
Revision history for this message
Sebastian Urban (surban) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in rhythmbox:
status: Incomplete → Triaged
Changed in rhythmbox:
status: Unknown → Confirmed
Revision history for this message
Tim Hull (thully) wrote :

Apparently, there is an upstream fix. Could this be done as a SRU?

Changed in rhythmbox:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Fixed upstream, thanks.

Tim, the bug doesn't qualify for being a SRU, please look to https://wiki.ubuntu.com/StableReleaseUpdates for finding more info about it. thanks.

Changed in rhythmbox:
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload should fix the issue

 rhythmbox (0.11.4-0ubuntu1) hardy; urgency=low
 .
   * New upstream version:
     - Support automatic GStreamer plugin installation (LP: #37671)
     - Improved cross-fading backend
     - Improved Podcast feed support, including Atom and APML (LP: #114846)
     - Add optional mozilla plugin to handle itms:// links
     - Fade volume when pausing and unpausing
     - Improve performance and stability of MTP device support (LP: #163609)
     - Stop putting deleted tracks on iPods in the Garbage Bin
     - Support PSPs with newer firmware
     - Improvements to the Coherence-based UPnP support
     - Minor improvements to Python bindings for plugins
   * debian/control.in:
     - Build-Depends on firefox-dev for the itunes browser plugin
     - updated totem-plparser and gstreamer requirements
   * debian/patches/06_oggradios.patch:
     - move the patch to the debian directory so it's not applied,
       upstream commited the change to SVN but that's likely an error

Changed in rhythmbox:
status: Fix Committed → Fix Released
Revision history for this message
lexual (lexhider) wrote :

I can't get rhythmbox to import any of my music files thanks to this bug. Am I right to conclude that this won't be fixed in gutsy?

from https://wiki.ubuntu.com/StableReleaseUpdates:
"Bugs which represent severe regressions from the previous release of Ubuntu"

Doesn't the fact that the program can no longer import any of my music files count as a "severe regressions".
What use is rhythmbox if it can't import any music?

Revision history for this message
Ryan Steele (rgsteele) wrote :

Lexual, if it is in fact this bug that is causing your import errors, manually importing the folders should work properly. The issue is just with automatic importing.

I've also discovered that by re-selecting the Music Library location in the Music tab in the Options window, the problem stops occurring. You don't even have to choose a new location; just click Browse, select your music folder, and close the preferences window. I suspect the problem stems from a bug in interpreting a configuration file created by a previous version of the program.

Revision history for this message
Stéphane Maniaci (stephh) wrote :

I think it's just stupid not releasing a fix, not the new version but just a patch to solve the problem. Furthermore, adding music is the kind of "classic" action default users do, and if it isn't fixed until next version, then we can't say Gutsy Gibbon works "out of the box" (for someone who likes multimedia, indeed).

Revision history for this message
Ryan Steele (rgsteele) wrote :

Just to clarify, I do think this bug should be fixed, the workaround notwithstanding. Pedro, would this bug not fall under the criteria for an SRU? I've seen no problems reported with the upstream patch, and it's not a critical application.

Revision history for this message
Stéphane Maniaci (stephh) wrote :

Bug is still present for me in latest Hardy Alpha. Rhythmbox 11.4 . Imported all of my audio files in my fresh and empty Music folder, asked Rhythmbox to check for new audio files, and there are my 456 import errors. :(

Revision history for this message
Stéphane Maniaci (stephh) wrote :

I still have the bug on the latest Hardy Alpha (13/04), I cannot import any files I copied from my storage hard disk to the Music directory.

Changed in rhythmbox:
status: Fix Released → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Steph, Are you sure it's the same bug you're facing? How your files looks like? Can you tell us an example? thanks.

Changed in rhythmbox:
status: Confirmed → Incomplete
Revision history for this message
Stéphane Maniaci (stephh) wrote :

Well, this is quite strange. See, on the first time I copied my audio files (OGG and MP3 files, from a FAT hard disk (won't help but never mind)) when I launched Rhythmbox, I had those import errors. If I restart Rhythmbox, still present. So I tried to play with that "watch for new files" option, I moved my files to the Public directory, set this directory as my music folder, nothing. But when I put my files back in the Music Folder, had an import error, then everything started being added to the library.

Now it's working, but on the first launch it doesn't.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

You didn't answer to the questions and i don't think it's the same bug as this one, please open a new report describing your issue, thanks.

Changed in rhythmbox:
status: Incomplete → Fix Released
Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

I'm having this bug with hardy beta. errors like the following for all files with a space in the title, or folder structure:

(18:50:35) [0x17af880] [make_access_failed_error] rhythmdb.c:574: got error on file:///home/s/Music/The%2520Zutons/Who%2520Killed......%2520The%2520Zutons/12%2520Moons%2520and%2520Horror%2520Shows.mp3: Couldn't access file:///home/s/Music/The%20Zutons/Who%20Killed......%20The%20Zutons/12%20Moons%20and%20Horror%20Shows.mp3: File not found
(18:50:35) [0x17af880] [action_thread_main] rhythmdb.c:2492: executing RHYTHMDB_ACTION_LOAD for "file:///home/s/Music/The%2520Zutons/Who%2520Killed......%2520The%2520Zutons/13%2520Don't%2520Ever%2520Think%2520(Too%2520Much).mp3"
(18:50:35) [0x6aa500] [rhythmdb_process_one_event] rhythmdb.c:2147: processing RHYTHMDB_EVENT_METADATA_LOAD
(18:50:35) [0x6aa500] [rhythmdb_add_import_error_entry] rhythmdb.c:1809: adding import error for file:///home/s/Music/The%2520Zutons/Who%2520Killed......%2520The%2520Zutons/12%2520Moons%2520and%2520Horror%2520Shows.mp3: Couldn't access file:///home/s/Music/The%20Zutons/Who%20Killed......%20The%20Zutons/12%20Moons%20and%20Horror%20Shows.mp3: File not found
(18:50:35) [0x6aa500] [rhythmdb_entry_new] rhythmdb.c:1322: emitting entry added

exactly as the original reporter says, the problem is files with spaces in the title, doing automatic importing from music folder. manually importing works fine. perhaps i should mention that these files are stored on an ntfs partition, symlinked to the normal music directory, i dont know if that is relevant.

Description: Ubuntu hardy (development branch)
Release: 8.04
updated today

rhythmbox:
  Installed: 0.11.5-0ubuntu1
  Candidate: 0.11.5-0ubuntu1
  Version table:
 *** 0.11.5-0ubuntu1 0
        500 http://gb.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

i also confirm that simply reselecting the same folder, ie ~/Music (which is symlinked to ntfs drive) works to import the music sucessfully:

(19:08:40) [0x6aa500] [rhythmdb_process_stat_event] rhythmdb.c:1789: queuing a RHYTHMDB_ACTION_LOAD: file:///home/s/Music/Damien%20Rice/O/04%2004%20Cannonball.mp3
(19:08:40) [0x6aa500] [rhythmdb_process_one_event] rhythmdb.c:2143: processing RHYTHMDB_EVENT_STAT
(19:08:40) [0x6aa500] [rhythmdb_process_stat_event] rhythmdb.c:1789: queuing a RHYTHMDB_ACTION_LOAD: file:///home/s/Music/Damien%20Rice/O/05%2005%20Older%20Chests.mp3
(19:08:40) [0x6aa500] [rhythmdb_process_one_event] rhythmdb.c:2143: processing RHYTHMDB_EVENT_STAT
(19:08:40) [0x6aa500] [rhythmdb_process_stat_event] rhythmdb.c:1789: queuing a RHYTHMDB_ACTION_LOAD: file:///home/s/Music/Damien%20Rice/O/06%2006%20Amie.mp3

etc

happy to give any more info.

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

tried it on another computer, fresh hardy beta install, same result as i just detailed, so confirming

Changed in rhythmbox:
status: Fix Released → Confirmed
Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

I can also confirm this bug with up-to-date hardy (just installed & update an hour ago).
The workaround fixes the problem, but the suggested severity should still be high.

Rhythmbox is shipped by default, used by a majority of the users: everybody's going to notice this.
And it requires a trip to launchpad to figure out the workaround.

Also, while you're at it. Could rhythmbox use the default xdg-directory for music by default?
I had to manually set it up.

Revision history for this message
Stéphane Maniaci (stephh) wrote :

Seems like Ubuntu won't work 'out of the box' with Hardy...If we can't get a music library imported, this is just quite stressing. I still get this issue on my updated Hardy 64 bits (rhythmbox 0.11.5-0ubuntu2). Only four Mp3 music folders in my Music directory, but it fails importing it automatically.

I'm joining the debug log, hope this will help.

Revision history for this message
Stéphane Maniaci (stephh) wrote :

The bug description starts exactly at 21:17:06. "Now monitoring library..." and then errors output.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could somebody comment upstream about that? there is just too much to do for the current team right now

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

i've found specifically what the problem is and how to fix it in gconf.
When rhythmbox runs for the first time it sets the entry in "gconf > apps >rhythmbox > library locations" to /home/ubuntu/Music, which causes the errors. Instead it should set the value to file:///home/ubuntu/Music (obviously replace ubuntu with the actual user). This then doesnt cause the errors, and works correctly. It is also the value put into gconf when you reselect the "music" folder as the library location, so it shouldnt cause any other side effects.

the problem still exists on the RC live cd btw. I hope this info is useful for getting it fixed before hardy final

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

decided to check out the source code too.
the problem is in the file lib/rb-file-helpers.c in the function
const char *
rb_music_dir (void)
{
 const char *dir;
 dir = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC);
 if (dir == NULL) {
  dir = getenv ("HOME");
  if (dir == NULL) {
   dir = "/tmp";
  }
 }
 rb_debug ("user music dir: %s", dir);
 return dir;
}

it returns dir when it should return basically file://dir. i made the change and it works correctly

Revision history for this message
Stéphane Maniaci (stephh) wrote :

Damn. This wasn't fixed for Hardy release, and such a annoying bug. Already many topics on the forums about this bug.

Changed in rhythmbox:
status: Fix Released → Confirmed
Revision history for this message
x (xyzx-deactivatedaccount) wrote :

Based on the discussion in upstreams bugtracker, I think that the attached diff should be the right way to fix this problem.

Changed in rhythmbox:
status: Confirmed → Triaged
Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

I'm sorry, bit this should not be marked as 'low'. This makes Rhythmbox, the default music player in Ubuntu, useless.

This error is quite odd however as it doesn't show up on my computer, but its showing up on a clients. Both are fresh installs of Ubuntu 8.04

Is there anything I can test on both PCs to see why this is happening on one and not the other?

Revision history for this message
Stéphane Maniaci (stephh) wrote :

I agree saying this shouldn't be marked as low, as it's very easy for the default user to experience it.

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

Like I said, this bug was on one of my client's machines, but not mine.

I did all sorts of fixes, to trying different music players to trying to compile rhythmbox and nothing worked.

Finally I tried purging it, deleting the preferences, rebooting, reinstalling rhythmbox and it actually got rid of the bug. Not sure what the means but I hope it helps!

Revision history for this message
Sebastien Bacher (seb128) wrote :

those bug setting discussion are not constructive, we are working on the issue, I've attached the patch upstream and I've a patched package ready to upload, I'm just wait for upstream to confirm that the change is correct

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

I apologize for my pervasiveness, but besides my "why is this bug set to 'low' comment", I tried to give real and helpful information.

I hope your patch gets backported to Hardy and I appreciate your time and effort.

Changed in rhythmbox:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in rhythmbox:
status: Confirmed → Fix Committed
Changed in rhythmbox:
status: Confirmed → Fix Released
Revision history for this message
Ryan Steele (rgsteele) wrote :

I can confirm that updating to the version in hardy-proposed did not fix the problem. After installing and running the update, I still got the import errors on a fresh install of Hardy where I had already run Rhythmbox and set the music folder. The gconf key "/apps/rhythmbox/library_locations" was still set to "/home/username/music". After manually selecting the folder it updates the key to "file:///home/username/Music".

Either the install process needs to update this key or the app needs to check if the key is incorrect.

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

Ryan, what's your output of:

apt-cache policy rhythmbox

???

Revision history for this message
Sebastien Bacher (seb128) wrote :

the update will not change wrong key values, you need to try to fix for a new user, trying to migrate user datas would not be that easy and that's not something we plan to do now

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

works

if you clear the relevant key in gconf, rhythmbox starts and fills it correctly
selecting a new music directory also puts the correct value into gconf (so nothing has gone wrong)

Changed in rhythmbox:
status: Triaged → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates and intrepid.

Changed in rhythmbox:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Revision history for this message
liorda (liorda) wrote :

I'm still having problems with importing:

when running "rhythmbox -d &>log.log", the log file is filled with errors such as:
(20:21:42) [0x80dc408] [rhythmdb_entry_new] rhythmdb.c:1322: emitting entry added
(20:21:42) [0x80dc408] [rhythmdb_process_one_event] rhythmdb.c:2147: processing RHYTHMDB_EVENT_METADATA_LOAD
(20:21:42) [0x80dc408] [rhythmdb_add_import_error_entry] rhythmdb.c:1809: adding import error for file:///home/lior/Music/_Almost_Full_Albums/Fiona%2520Apple
%2520-%2520When%2520The%2520Pawn/Fiona%2520Apple%2520-%2520Fast%2520As%2520You%2520Can.mp3: Couldn't access file:///home/lior/Music/_Almost_Full_Albums/Fiona
%20Apple%20-%20When%20The%20Pawn/Fiona%20Apple%20-%20Fast%20As%20You%20Can.mp3: File not found
(20:21:42) [0x80dc408] [rhythmdb_entry_new] rhythmdb.c:1322: emitting entry added

$apt-cache policy rhythmbox
rhythmbox:
  Installed: 0.11.5-0ubuntu8
  Candidate: 0.11.5-0ubuntu8
  Version table:
 *** 0.11.5-0ubuntu8 0
        500 http://il.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     0.11.5-0ubuntu6 0
        500 http://il.archive.ubuntu.com hardy/main Packages

$cat /etc/apt/sources.list
deb http://il.archive.ubuntu.com/ubuntu/ hardy main restricted
#deb-src http://il.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://il.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

deb http://il.archive.ubuntu.com/ubuntu/ hardy universe
#deb-src http://il.archive.ubuntu.com/ubuntu/ hardy universe
deb http://il.archive.ubuntu.com/ubuntu/ hardy-updates universe

deb http://il.archive.ubuntu.com/ubuntu/ hardy multiverse
#deb-src http://il.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://il.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

what am i doing wrong, I thought it was fixed for hardy...

Revision history for this message
Ryan Steele (rgsteele) wrote :

Liorda, try re-selecting the Music Library location in the Music tab in the Options window. Click Browse, select your music folder, and close the preferences window.

Changed in rhythmbox:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.