GNOME Bugzilla – Bug 638589
Fails to load cover art if the path contains ':' character (UriFormatException)
Last modified: 2014-03-06 06:47:41 UTC
I placed a cover.jpg file in one of my Audiobook directories, opened the audiobook from the list, right-clicked on the book icon, and selected "Choose New Cover Art...". In the file dialog, my jpg file shows up with a correct thumbnail. I select the file and click "Open", but no change is made to the cover art, and I get the following in my debug output: [1 Warn 14:37:24.175] Caught an exception - System.UriFormatException: URI scheme must start with a letter and must consist of one of alphabet, digits, '+', '-' or '.' character. (in `System') at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in <filename unknown>:0 at System.Uri.ParseUri (UriKind kind) [0x00000] in <filename unknown>:0 at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in <filename unknown>:0 at System.Uri..ctor (System.String uriString) [0x00000] in <filename unknown>:0 at Banshee.Collection.Gui.CoverArtEditor+EditorBox.SetCoverArt (Banshee.Collection.TrackInfo track, System.String path) [0x00000] in <filename unknown>:0 at Banshee.Collection.Gui.CoverArtEditor+EditorBox.<EditorBox>m__15 (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 I've also tried using the same file to replace cover art on albums in my Music source, with the same behavior. However, if I copy the cover.jpg file to ~/Desktop and then try to add it from there, it works. Here are the two relevant paths: /home/twilson/Audiobooks/J.R.R.\ Tolkien/The\ Hobbit:\ Unabridged/cover.jpg /home/twilson/Desktop/cover.jpg (same file, or symbolic link) Could it be the ':' character? Shouldn't any legal path work?
I can confirm that this problem persists (for me) in 1.9.2. I didn't change the "Version" in the bug report, though (it didn't seem like I should).
(In reply to comment #1) > Could it be the ':' character? Yes, seems so. > Shouldn't any legal path work? Yes, it is a bug. (Confirming because I saw already a duplicate bug, thus, more than one user is affected.)
*** Bug 654213 has been marked as a duplicate of this bug. ***
I have mono version 3.2.1 and I can't reproduce the bug, can you tell us your mono version?
My test case works too now. Mono 2.10.8 and Banshee 2.4.1.
Ok, this sounds like it was a Mono bug, so I'm going to close it as NOTGNOME. If anyone can still reproduce this, please mention your mono version, and we may reopen the bug.