GNOME Bugzilla – Bug 627745
F-Spot crashes when path contains non-7bit characters
Last modified: 2018-07-01 09:00:58 UTC
Created attachment 168569 [details] Crash log When opening F-Spot and opening an existing Picture, I often get this error/crash: Unhandled Exception: GLib.GException: Value of PNG-Text-Chunk Thumb::URI could not be converted to ISO-8859-1 encoding. The picture I clicked on has special characters in it's URI, that are not part of ISO-8859-1, but my computer actually works with UTF-8, so I haven't had any problems so far. Here's the original message (partly in german), attached a complete debug output: Unhandled Exception: GLib.GException: Wert für PNG-Text-Chunk Thumb::URI konnte nicht in ISO-8859-1-Zeichenkodierung umgewandelt werden. at FSpot.Utils.XdgThumbnailSpec.Save (Gdk.Pixbuf pixbuf, System.String filename, System.String type, System.String uri_opt, System.String mtime_opt) [0x00000] at FSpot.Utils.XdgThumbnailSpec.CreateFrom (Hyena.SafeUri uri, Hyena.SafeUri thumb_uri, ThumbnailSize size, FSpot.Utils.PixbufLoader loader) [0x00000] at FSpot.Utils.XdgThumbnailSpec.LoadThumbnail (Hyena.SafeUri uri, ThumbnailSize size, FSpot.Utils.PixbufLoader loader) [0x00000] at FSpot.Utils.XdgThumbnailSpec.LoadThumbnail (Hyena.SafeUri uri, ThumbnailSize size) [0x00000] at FSpot.ThumbnailLoader.ProcessRequest (.RequestItem request) [0x00000] at ImageLoaderThread.WorkerThread () [0x00000]
Thanks for taking the time to report this bug. Without a stack trace from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
After talking to gonzalo_ in #f-spot on irc.gnome.org, he confirmed that the debug output contains the stacktrace. He adviced me to provide the path to the picture I clicked: It is: /home/paddy/Photos/2010/100630-0822_Moldawien/100701_Donnerstag_Chișinau/DSCF_0019.JPG The letter "ș" is a Romanian character which was only introduced in Unicode 3.0 and in ISO-8859-16 in 1999. ISO-8859-1 doesn't have it. I don't know why f-spot is trying to convert it to ISO anyway...
I too have this issue because most of my photos are in folders containing Cyrillic characters in their names.
A bug report concerning this issue (including debug output) on Ubuntu's launchpad: https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/658268
Looks like the problem here is in the PNG writing code of GDK, which seems to insist on writing ISO-8859-1. Getting this wrong means we won't adhere to the thumbnail spec, but GDK is at fault here. Can be fixed by doing a "best-effort" conversion and using that value. I don't think we use it in F-Spot anyway (need to check though).
Other bugtracker link ===> "See Also" field
Can't reproduce this with f-spot version b68c243c6e85434382f6f941f123d031530d2e21 (2012-10-17). I created a directory with pictures, named one Donnerstag_Chișinau and also created a directory with that name and put a picture in that directory. F-spot imported and showed those files OK, no crash... Would be great, if the reporters could confirm if this is still an issue.
Now it works fine for me
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010. Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master 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 deprecated) if anyone takes the responsibility for active development again.