evince-thumbnailer DOSes rsyslogd

Bug #1497727 reported by Florian Hars
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Nautilus
Confirmed
Low
evince (Ubuntu)
Invalid
Undecided
Unassigned
nautilus (Ubuntu)
Invalid
High
Unassigned

Bug Description

I just noticed that I had evince-thumbnailer, systemd-journald, and at least two instances of rsyslogd each using about a full core, and writing about 50GB worth of the two lines:

Sep 20 12:07:41 dirichlet gnome-session[1581]: page: Warning: font `cmr10' not found, trying metric files instead
Sep 20 12:07:41 dirichlet gnome-session[1581]: page: Error: /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr10.tfm: File corrupted, or not a TFM file

into /var/log/syslog.

The last few lines leading up to that were:

Sep 20 12:06:45 dirichlet udisksd[1845]: Mounted /dev/sdc1 at /media/hars/Backup2 on behalf of uid 1000
Sep 20 12:06:45 dirichlet gnome-session[1581]: (nautilus:3898): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Sep 20 12:06:45 dirichlet gnome-session[1581]: (nautilus:3898): GLib-GObject-WARNING **: invalid (NULL) pointer instance
Sep 20 12:06:45 dirichlet gnome-session[1581]: (nautilus:3898): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 20 12:07:30 dirichlet gnome-session[1581]: (nautilus:1816): GnomeDesktop-WARNING **: Unable to create loader for mime type audio/x-wav: Unrecognized image file format
Sep 20 12:07:30 dirichlet gnome-session[1581]: (nautilus:1816): GnomeDesktop-WARNING **: Error creating thumbnail for file:///media/hars/Backup2/some/path/unbekannt.wav: Unrecognized image file format
Sep 20 12:07:31 dirichlet gnome-session[1581]: (nautilus:1816): GnomeDesktop-WARNING **: Unable to create loader for mime type audio/x-wav: Unrecognized image file format
Sep 20 12:07:31 dirichlet gnome-session[1581]: (nautilus:1816): GnomeDesktop-WARNING **: Error creating thumbnail for file:///media/hars/Backup2/some/path/unbekannt.wav: Unrecognized image file format
Sep 20 12:07:40 dirichlet gnome-session[1581]: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 cmr10
Sep 20 12:07:41 dirichlet gnome-session[1581]: /usr/bin/mktexpk: 1: /usr/bin/mktexpk: /usr/share/texlive/texmf-dist/web2c/mktexnam: Permission denied
Sep 20 12:07:41 dirichlet kernel: [ 3712.286587] audit_printk_skb: 39 callbacks suppressed
Sep 20 12:07:41 dirichlet kernel: [ 3712.286594] audit: type=1400 audit(1442743661.594:25): apparmor="DENIED" operation="exec" profile="/usr/bin/evince-thumbnailer//sanitized_helper" name="/usr/share/texlive/texmf-dist/web2c/mktexnam" pid=4036 comm="mktexpk" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Sep 20 12:07:41 dirichlet gnome-session[1581]: mktexpk: / already exists.
Sep 20 12:07:41 dirichlet gnome-session[1581]: /usr/bin/mktexpk: 229: /usr/bin/mktexpk: /usr/share/texlive/texmf-dist/web2c/mktexupd: Permission denied
Sep 20 12:07:41 dirichlet kernel: [ 3712.291366] audit: type=1400 audit(1442743661.598:26): apparmor="DENIED" operation="exec" profile="/usr/bin/evince-thumbnailer//sanitized_helper" name="/usr/share/texlive/texmf-dist/web2c/mktexupd" pid=4041 comm="mktexpk" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Sep 20 12:07:41 dirichlet gnome-session[1581]: kpathsea: Appending font creation commands to missfont.log.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: evince 3.14.2-0ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
Uname: Linux 3.19.0-28-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.4
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Sep 20 15:02:02 2015
InstallationDate: Installed on 2014-04-14 (523 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
SourcePackage: evince
UpgradeStatus: Upgraded to vivid on 2015-05-01 (141 days ago)

Revision history for this message
Florian Hars (hars) wrote :
Revision history for this message
Florian Hars (hars) wrote :

I found an easy way to reproduce the issue:

navigate to a directory that contains a dvi-file in nautilus, and you end up with:

top - 15:15:40 up 4:09, 3 users, load average: 3,36, 1,64, 1,68
Aufgaben: 248 total, 2 running, 246 sleeping, 0 stopped, 0 zombie
%Cpu(s): 35,0 be, 39,8 sy, 0,8 ni, 24,4 un, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 31791692 total, 5193104 used, 26598588 free, 80824 buffers
KiB Swap: 32444412 total, 1044628 used, 31399784 free. 1865100 cached Mem

  PID BENUTZER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  362 root 20 0 86720 12020 11856 R 97,8 0,0 166:36.81 systemd-journal
 9600 hars 20 0 1118484 823024 14412 S 95,8 2,6 2:07.34 evince-thumbnai
  730 syslog 20 0 255896 1132 728 S 91,5 0,0 163:30.19 rsyslogd
And fix this stupid bugtracker to support markdown or whatever.

description: updated
Florian Hars (hars)
summary: - evince-thumblailer DOSes rsyslogd
+ evince-thumbnailer DOSes rsyslogd
Revision history for this message
Sebastien Bacher (seb128) wrote :

There is a bug upstream about similar issues, https://bugzilla.gnome.org/show_bug.cgi?id=741232

Changed in nautilus (Ubuntu):
importance: Undecided → High
Changed in nautilus:
importance: Unknown → Low
status: Unknown → Confirmed
Revision history for this message
Ads20000 (ads20000) wrote :

I can't reproduce this issue with the following .dvi file, could you attach a .dvi file that does trigger the bug on Ubuntu 18.04 or is this fixed in that release?

Ads20000 (ads20000)
Changed in nautilus (Ubuntu):
status: New → Incomplete
Changed in evince (Ubuntu):
status: New → Incomplete
Changed in evince (Ubuntu):
status: Incomplete → Invalid
Changed in nautilus (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Mateusz Bawaj (mateusz-bawaj) wrote :

I experienced the same bug with syslog flooded. It seems that it happens when PDF or SVG documents have embedded LaTeX font (often cmr10 but I bet that with others it would be the same) gnome has problems with generating thumbnails. In my case it is looking for the right TFM file in texlive font directory:

gnome-session[3640]: page: Warning: font `cmr10' not found, trying metric files instead
gnome-session[3640]: page: Error: /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr10.tfm: File corrupted, or not a TFM file

and it finds it corrupted and retries filling the log.

When I remove the "corrupted" file gnome tries to regenerate it but it finds the folder read-only.

gnome-session[3640]: kpathsea: Running mkofm cmr10
gnome-session[3640]: mkofm: Permission denied

I solved the problem by regenerating TFM manually: mktextfm cmr10 and substituting the TFM file in texlive.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.