GNOME Bugzilla – Bug 608281
F-Spot "Viewer" crash when using --view %U
Last modified: 2018-07-01 08:54:45 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/f-spot/+bug/513252 "When starting F-Spot in terminal with 'f-spot --view %U' I get the following error; (/usr/lib/f-spot/f-spot.exe:6269): GLib-WARNING **: g_set_prgname() called multiple times [Info 14:34:10.586] Initializing DBus [Info 14:34:10.704] Initializing Mono.Addins [Info 14:34:10.863] Starting new FSpot server (f-spot 0.6.1.5) [Warn 14:34:10.940] Caught an exception - Invalid URI: The format of the URI could not be determined: %U (in `System') at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] at System.Uri..ctor (System.String uriString) [0x00000] at FSpot.Utils.UriList.AddUnknown (System.String unknown) [0x00000] at FSpot.Driver.Main (System.String[] args) [0x00000] and gives a fatal error; Invalid URI: The format of the URI could not be determined: %U An unhandled exception was thrown: Invalid URI: The format of the URI could not be determined: %U at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] at System.Uri..ctor (System.String uriString) [0x00000] at FSpot.Utils.UriList.AddUnknown (System.String unknown) [0x00000] at FSpot.Driver.Main (System.String[] args) [0x00000] .NET Version: 2.0.50727.1433"
Created attachment 156418 [details] [review] Catch exceptions in URI creation.
Here's a patch to catch exceptions in adding URIs like this. When the user passes an invalid URI to --view, it'll get logged. If all the URIs given by the user on the command line are invalid, Help () will be displayed.
Review of attachment 156418 [details] [review]: thanks for your contribution, but the patch is now obsolete, as f-spot switched to Hyena parsing code. if you could update it, it will be merged. thanks
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.