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 771351 - evince permanently warns about: "Error setting file metadata"
evince permanently warns about: "Error setting file metadata"
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-13 11:02 UTC by Karl Eichwalder
Modified: 2018-05-22 16:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Karl Eichwalder 2016-09-13 11:02:04 UTC
If you start evince from the command prompt, you permanently see these warnings (often more in a row), what is kind of annoying and sometimes make the terminal unreadable:

** (evince:19986): WARNING **: Error setting file metadata: No such file or directory
Comment 1 Karl Fogel 2017-02-20 20:48:46 UTC
Also experiencing this, on a Debian GNU/Linux system, 'testing' distro, dist-upgraded as of this morning.  Full version and OS information below:

  $ date
  Mon Feb 20 14:44:36 CST 2017

  $ evince --version
  GNOME Document Viewer 3.22.1

  $ uname -a
  Linux kwork 4.9.0-1-amd64 #1 SMP Debian 4.9.6-3 (2017-01-28) x86_64 GNU/Linux

  $ dpkg -s evince
  Package: evince
  Status: install ok installed
  Priority: optional
  Section: gnome
  Installed-Size: 1363
  Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
  Architecture: amd64
  Version: 3.22.1-3
  Replaces: apparmor-profiles-extra (<< 1.7~), evince-common (<< 3.20.0-2~), evince-gtk (<< 3.14.1-3~)
  Provides: djvu-viewer, pdf-viewer, postscript-viewer
  Depends: evince-common (<< 3.23), evince-common (>= 3.22), gsettings-desktop-schemas, libevdocument3-4 (= 3.22.1-3), libevview3-3 (= 3.22.1-3), shared-mime-info, dconf-gsettings-backend | gsettings-backend, libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.14.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.41.2), libgnome-desktop-3-12 (>= 3.17.92), libgtk-3-0 (>= 3.19.12), libnautilus-extension1a (>= 3.21.92-3~), libpango-1.0-0 (>= 1.20.0), libsecret-1-0 (>= 0.7)
  Recommends: default-dbus-session-bus | dbus-session-bus
  Suggests: gvfs, nautilus-sendto, poppler-data, unrar
  Breaks: apparmor-profiles-extra (<< 1.7~), evince-common (<< 3.20.0-2~), evince-gtk (<< 3.14.1-3~)
  Enhances: nautilus
  Conffiles:
   /etc/apparmor.d/abstractions/evince 14bfac948531d9ca22a602ba10df884d
   /etc/apparmor.d/usr.bin.evince be9988cb1661200c56c4040fa7b5242d
  Description: Document (PostScript, PDF) viewer
   Evince is a simple multi-page document viewer.  It can display and print
   PostScript (PS), Encapsulated PostScript (EPS), DjVu, DVI, Portable
   Document Format (PDF) and XML Paper Specification (XPS) files.
   When supported by the document, it also allows searching for text,
   copying text to the clipboard, hypertext navigation, and
   table-of-contents bookmarks.
  Homepage: https://wiki.gnome.org/Apps/Evince
  $
Comment 2 Karl Fogel 2017-02-20 21:33:58 UTC
In #evince in GNOME IRC, user 'jcrain' pointed out that this is likely coming from gvfs.  So far, evidence seems to bear this out:

  $ git clone git://git.gnome.org/gvfs
  $ cd gvfs
  $ grep -r "Error setting file metadata" . | grep -v /po/
  ./client/gdaemonvfs.c:		       _("Error setting file metadata: %s"),
  ./client/gdaemonvfs.c:                           _("Error setting file metadata: %s"),
  ./client/gdaemonvfs.c:			       _("Error setting file metadata: %s"),
  ./client/gdaemonvfs.c:					   _("Error setting file metadata: %s"),
  ./client/gdaemonfile.c:                   _("Error setting file metadata: %s"),
  ./client/gdaemonfile.c:                   _("Error setting file metadata: %s"),
  ./client/gdaemonfile.c:                       _("Error setting file metadata: %s"),
  $
Comment 3 Karl Fogel 2017-02-20 21:35:50 UTC
Jason Crain (jcrain in IRC) added: "I don't know the details of how gvfs works.  It might store metadata in ~/.local/share/gvfs-metadata."
Comment 4 Karl Fogel 2017-02-20 21:41:39 UTC
The error is probably coming from 'g_daemon_vfs_local_file_set_attributes()' in client/gdaemonvfs.c, near the top of the function:

      if (g_lstat (filename, &statbuf) != 0)
	{
	  errsv = errno;
	  g_set_error (error, G_IO_ERROR,
		       g_io_error_from_errno (errsv),
		       _("Error setting file metadata: %s"),
		       g_strerror (errsv));
	  error = NULL; /* Don't set further errors */

	  for (i = 0; attributes[i] != NULL; i++)
	    g_file_info_set_attribute_status (info, attributes[i],
					      G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING);

	  res = FALSE;
	}

...because all the other instances of "Error setting file metadata: %s" have a custom error message for the %s, instead of a standard g_strerror().

(The tree I'm looking at is the 'master' branch of gvfs, commit 7262f696917.)
Comment 5 Karl Fogel 2017-02-20 21:54:14 UTC
https://codesearch.debian.net/search?q=Error+setting+file+metadata is another way to see the same set of error messages.
Comment 6 GNOME Infrastructure Team 2018-05-22 16:46:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/709.