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 556711 - Error while trying to import a CD : Could not create a GStreamer sink
Error while trying to import a CD : Could not create a GStreamer sink
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Importing
0.11.x
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-17 11:19 UTC by Franck
Modified: 2008-10-28 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output when running with --debug (189.19 KB, text/plain)
2008-10-17 11:21 UTC, Franck
Details

Description Franck 2008-10-17 11:19:26 UTC
Please describe the problem:
When I insert a CD, open Rhythmbox and try to import the CD into the library, I get the following error:

Error transferring track
Could not create a GStreamer sink element to write to /home/franck/Musique/Noir%20D%C3%A9sir/666.667%20Club/13%20-%20Song%20for%20JLP.oga

An error notification is issued for each track.

Steps to reproduce:
1. insert a CD
2. in rhythmbow, try 'extract to library'
3. you get the error


Actual results:
Error message: Could not create a GStreamer sink element to write to ...
No file imported

Expected results:
Tracks are extracted and files written to the HD with suitable directory/file names

Does this happen every time?
Yes

Other information:
In the shell, I get these logs :

(rhythmbox:13457): Rhythmbox-WARNING **: filesystem root apparently doesn't exist!

(rhythmbox:13457): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed

(rhythmbox:13457): Rhythmbox-CRITICAL **: rb_encoder_gst_emit_completed: assertion `encoder->priv->completion_emitted == FALSE' failed
Comment 1 Franck 2008-10-17 11:21:05 UTC
Created attachment 120776 [details]
output when running with --debug
Comment 2 Jonathan Matthew 2008-10-21 10:17:59 UTC
What output do you get from running 'gconftool-2 -g /apps/rhythmbox/library_locations' in a terminal?
Comment 3 Franck 2008-10-21 14:43:24 UTC
Here is what gconftool gives me:

franck@franck-laptop:~$ gconftool-2 -g /apps/rhythmbox/library_locations
[/home/franck/Musique]
Comment 4 Jonathan Matthew 2008-10-23 21:10:46 UTC
That should be "file:///home/franck/Musique".  If you reset the library location in the rhythmbox preferences, it should work properly.

We should probably add some code to convert file paths to URIs.
Comment 5 Franck 2008-10-24 08:10:33 UTC
Yes, resetting the location fixes the problem.

I have also tried to reproduce the steps that led me to the wrong setup, but couldn't find the way (that is, typing it directly with the keyboard or choosing it from the file chooser both corrected the problem, I couldn't manage to get the path instead of the url again...)

So it's fixed for me, but adding code to make sure Rhythmbox has an url and not a filepath would certainly be a plus.

Thanks a lot,

Franck
Comment 6 Jonathan Matthew 2008-10-28 12:28:14 UTC
2008-10-28  Jonathan Matthew  <jonathan@d14n.org>

        * sources/rb-library-source.c: (rb_library_source_constructor):
        Convert library location paths to URIs on startup.  Fixes #556711.