An error message appears on the console when exporting an image.
Submitted by cli..@..ba.org
Assigned to cli..@..ba.org
Link to original bug (#718221)
Description
---- Reported by clinton@yorba.org 2011-10-25 20:41:00 -0700 ----
Original Redmine bug id: 4302
Original URL: http://redmine.yorba.org/issues/4302
Searchable id: yorba-bug-4302
Original author: Clinton Rogers
Original description:
Steps to reproduce:
- Launch Shotwell from the command line.
- Highlight any image in the checkerboard pane.
- Choose File->Export.
- Choose OK.
- Type in any valid filename, choose OK and carefully observe the console while the image is being saved.
Notice that an error message after the pattern
(shotwell:32224): Gtk-WARNING **: Unable to retrieve the file info for `file:///home/clinton/whatever.png': Error stating file '/home/clinton/whatever.png': No such file or directory
appears.
This happens consistently, with either metadata export on or off, and with either library monitoring on or off.
A similar problem can be observed in direct-edit mode using the 'Save As...' feature.
---- Additional Comments From shotwell-maint@gnome.bugs 2013-05-01 11:38:00 -0700 ----
History
Comment 1
Updated by Clinton Rogers about 2 years ago
- Description updated (diff)
Comment 2
Updated by Lucas Beeler about 2 years ago
- Assignee set to Clinton Rogers
Marking as urgent since I consider soft assertion failures to be indicators that the application has entered a potentially undefined state. Clinton, I'm also assigning this to you, since you went deep into the export code during your work on #4250 (closed).
Comment 3
Updated by Lucas Beeler about 2 years ago
- Priority changed from High to Urgent
Comment 4
Updated by Clinton Rogers about 2 years ago
After research, I believe this to be a library problem, rather than a Shotwell one, and to that end, I've filed a bug at https://bugzilla.gnome.org/show_bug.cgi?id=662814 .
The problem is that, in the process of the file chooser dialog reacting to 'Save' being clicked, it tries to add the filename just entered to the recent list, which eventually leads to gtk_recent_manager_add_item_query_info() getting called, in which it tries to stat a file that might not exist yet:
static void
gtk_recent_manager_add_item_query_info (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
GFile *file = G_FILE (source_object);
GtkRecentManager *manager = user_data;
GtkRecentData recent_data;
GFileInfo *file_info;
gchar *uri;
GError *error;
uri = g_file_get_uri (file);
error = NULL;
file_info = g_file_query_info_finish (file, res, &error); //<--- problem line...
if (error)
{
g_warning ("Unable to retrieve the file info for `%s': %s", //<--- ...and here's the warning we've been seeing.
uri,
error->message);
g_error_free (error);
goto out;
}
As the fact that the file may possibly not exist yet is totally uninteresting to Shotwell in this case (since we're about to write said file, all we wanted was the name), I've asked them for a way to silence this warning and a way to turn it back on when it's needed.
Comment 5
Updated by Clinton Rogers about 2 years ago
As of Mon, 2011-10-31, no action has been taken on GTK's side.
Comment 6
Updated by Clinton Rogers about 2 years ago
- Status changed from Open to Blocked
Reason: requires work on GTK (see above)
Comment 7
Updated by Adam Dingle almost 2 years ago
- Status changed from Blocked to Open
According to a comment in the GTK bug, it should be possible to use a log handler to work around the warning. Unblocking.
Comment 8
Updated by Clinton Rogers almost 2 years ago
Comment 9
Updated by Clinton Rogers almost 2 years ago
- Status changed from Open to 5
- % Done changed from 0 to 100
- Resolution set to fixed
Closing, with the understanding that we will rework the affected section of the code once GTK have released a fix.
Comment 10
Updated by Charles Lindsay 7 months ago
- Status changed from 5 to Fixed
--- Bug imported by chaz@yorba.org 2013-11-25 21:55 UTC ---
This bug was previously known as bug 4302 at http://redmine.yorba.org/show_bug.cgi?id=4302
Unknown Component Using default product and component set in Parameters Unknown milestone "unknown in product shotwell. Setting to default milestone for this product, "---". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Version: 0.12
Resolution: RESOLVED FIXED