Comment 26 for bug 1386120

Revision history for this message
Mike Molina (mymolina) wrote :

After analyzing the error, I have noticed that the high CPU load is related with an evince-thumbnailer exit error that also involves the execution of some texlive commands. For example:

page: Error: /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr10.tfm: File corrupted, or not a TFM file

also mentioned in:

https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1497727
https://askubuntu.com/questions/1195966/texlive-problems-in-log-file

By following these steps I have managed to reduce the high CPU load:

0. compile a tex document to generate dvi document.

1. run evince-thumbnailer in terminal:
   $ evince-thumbnailer parcial2.dvi out.dvi 2>output-evince-thumbnailer.txt
   the header of the output file mentions that some TeX commands are denied permission,
   $ grep 'kpathsea' output-evince-thumbnailer.txt | cut -b 19-

2. create a script to execute omitted commands:
   $ grep 'kpathsea' output-evince-thumbnailer.txt | cut -b 19- | sed -e '1i #! /bin/sh' > cmd.sh
   $ chmod 775 cmd.sh
   $ ./cmd.sh
   new font files are generated in the $TEXMFVAR directory. How to know its value?
   $ tlmgr conf | grep 'TEXMFVAR'

3. a new run of evince-thumbnailer may reveal other omitted commands by repeating item 1.

A new run of evince-thumbnailer the CPU doesn't show high load:
$ evince-thumbnailer parcial2.dvi out.dvi

I hope the mentioned steps guide the correction of this bug.