PNG clipart prevents export DVI / export PS

Guenter Milde milde at users.sf.net
Tue Nov 24 21:32:53 UTC 2020


Dear Kornel,

thank you for the pointer.

On 2020-11-24, Kornel Benko wrote:
> Am Tue, 24 Nov 2020 10:39:00 +0100
> schrieb Kornel Benko <kornel at lyx.org>:

>> Am Tue, 24 Nov 2020 09:31:39 -0000 (UTC)
>> schrieb Guenter Milde <milde at users.sf.net>:

...
>> > export of lib/Intro.lyx (and other lib/*/Intro.lyx) document to DVI or PS
>> > fails with 
>> > 
>> >   ! LaTeX Error: Cannot determine size of graphic in 4421914becf8ea0a5dc0bca7051d
>> >   5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps (no BoundingBox).
>> > 
>> > The offending graphics are clipart/footnote.png and 
>> > clipart/reference.png.
>> > I suppose a problem with the PNG -> EPS conversion.
...

> Attached is the relevant output of lyx using '-dbg files'

> ...
> Buffer.cpp (5639): Clearing include list for /usr2/src/lyx/lyx-git/lib/doc/Intro.lyx
> insets/InsetGraphics.cpp (550): Comparing /usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png and /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/87a0f66d15d2678d41b9f05ce30580a0e71080eacfd0687e899575e378624bdb_footnote_png.png
> support/FileName.cpp (625): Checksumming "/usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png" 750031438 lasted 0 ms.
> support/FileName.cpp (240): Copying /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/87a0f66d15d2678d41b9f05ce30580a0e71080eacfd0687e899575e378624bdb_footnote_png.png keep symlink: 0
> ConverterCache.cpp (392): /usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png eps
> ConverterCache.cpp (396): not in cache.
> Converter.cpp (430): No converter defined! I use convertDefault.py:
> 	python3 -tt "/usr/local/share/lyx2.4/scripts/convertDefault.py" png "/home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/87a0f66d15d2678d41b9f05ce30580a0e71080eacfd0687e899575e378624bdb_footnote_png.png" eps "/home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/87a0f66d15d2678d41b9f05ce30580a0e71080eacfd0687e899575e378624bdb_footnote_png.eps"
> ConverterCache.cpp (266):  /usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png eps /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/87a0f66d15d2678d41b9f05ce30580a0e71080eacfd0687e899575e378624bdb_footnote_png.eps
> support/FileName.cpp (625): Checksumming "/usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png" 750031438 lasted 0 ms.
> ConverterCache.cpp (63): Add file cache item /usr2/src/lyx/lyx-git/lib/doc/clipart/footnote.png eps /home/kornel/.lyx2.4/cache/0603804103-eps 1492366921 750031438.
> support/FileName.cpp (240): Copying /home/kornel/.lyx2.4/cache/0603804103-eps keep symlink: 0
> insets/InsetGraphics.cpp (550): Comparing /usr2/src/lyx/lyx-git/lib/doc/clipart/reference.png and /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/94dc22002027c5ac59790428937ac993c4bf31d098724784e9f894d541a5880c_reference_png.png
> support/FileName.cpp (625): Checksumming "/usr2/src/lyx/lyx-git/lib/doc/clipart/reference.png" 75217829 lasted 0 ms.
> support/FileName.cpp (240): Copying /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/94dc22002027c5ac59790428937ac993c4bf31d098724784e9f894d541a5880c_reference_png.png keep symlink: 0
> ConverterCache.cpp (392): /usr2/src/lyx/lyx-git/lib/doc/clipart/reference.png eps
> ConverterCache.cpp (396): not in cache.
> Converter.cpp (430): No converter defined! I use convertDefault.py:
> 	python3 -tt "/usr/local/share/lyx2.4/scripts/convertDefault.py" png "/home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/94dc22002027c5ac59790428937ac993c4bf31d098724784e9f894d541a5880c_reference_png.png" eps "/home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/94dc22002027c5ac59790428937ac993c4bf31d098724784e9f894d541a5880c_reference_png.eps"
> ConverterCache.cpp (266):  /usr2/src/lyx/lyx-git/lib/doc/clipart/reference.png eps /home/kornel/.lyx.master/tmp/lyx_tmpdir.FKrrrYv16914/lyx_tmpbuf0/94dc22002027c5ac59790428937ac993c4bf31d098724784e9f894d541a5880c_reference_png.eps
> ...

Here, I get

insets/InsetGraphics.cpp (550): Comparing /usr/local/src/lyx/lib/doc/clipart/footnote.png and /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.png
support/FileName.cpp (635): Checksumming "/usr/local/src/lyx/lib/doc/clipart/footnote.png" 750031438 lasted 0 ms.
support/FileName.cpp (240): Copying /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.png keep symlink: 0
ConverterCache.cpp (399): /usr/local/src/lyx/lib/doc/clipart/footnote.png eps
ConverterCache.cpp (422): identical timestamp.
ConverterCache.cpp (451): /usr/local/src/lyx/lib/doc/clipart/footnote.png eps /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps
support/FileName.cpp (240): Copying /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps keep symlink: 0
insets/InsetGraphics.cpp (550): Comparing /usr/local/src/lyx/lib/doc/clipart/reference.png and /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/c9b8fbe8355341e9a0e69a33d6052baadc48c52cf9ec406c4113b9274976f403_reference_png.png
support/FileName.cpp (635): Checksumming "/usr/local/src/lyx/lib/doc/clipart/reference.png" 75217829 lasted 0 ms.
support/FileName.cpp (240): Copying /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/c9b8fbe8355341e9a0e69a33d6052baadc48c52cf9ec406c4113b9274976f403_reference_png.png keep symlink: 0
ConverterCache.cpp (399): /usr/local/src/lyx/lib/doc/clipart/reference.png eps
ConverterCache.cpp (422): identical timestamp.
ConverterCache.cpp (451): /usr/local/src/lyx/lib/doc/clipart/reference.png eps /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/c9b8fbe8355341e9a0e69a33d6052baadc48c52cf9ec406c4113b9274976f403_reference_png.eps
support/FileName.cpp (240): Copying /tmp/lyx_tmpdir.ToKDUVZHtINn/lyx_tmpbuf1/c9b8fbe8355341e9a0e69a33d6052baadc48c52cf9ec406c4113b9274976f403_reference_png.eps keep symlink: 0

The eps files are recognized in the ConverterCache. 
However, they are empty:

  milde at heinz:~/.lyx2.4/cache > ls -l
  insgesamt 4
  -rw------- 1 milde milde   0 Nov 24 22:25 1847236261-eps
  -rw------- 1 milde milde   0 Nov 24 22:25 2280001331-eps
  -rw------- 1 milde milde 150 Nov 24 22:26 index

Deleting the cache results in

  ConverterCache.cpp (403): not in cache.
  Converter.cpp (430): No converter defined! I use convertDefault.py:
  	python3 -tt "/usr/local/src/lyx/lib/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.JwiQfGlIZrMI/lyx_tmpbuf0/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.png" eps "/tmp/lyx_tmpdir.JwiQfGlIZrMI/lyx_tmpbuf0/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps"
  convert-im6.q16: attempt to perform an operation not allowed by the security policy `EPS' @ error/constitute.c/IsCoderAuthorized/408.
  /usr/local/src/lyx/lib/scripts/convertDefault.py ERROR
  Execution of "convert" failed.
  support/Systemcall.cpp (291): Systemcall: 'python3 -tt "/usr/local/src/lyx/lib/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.JwiQfGlIZrMI/lyx_tmpbuf0/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.png" eps "/tmp/lyx_tmpdir.JwiQfGlIZrMI/lyx_tmpbuf0/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps"' finished with exit code 1
  ConverterCache.cpp (273):  /usr/local/src/lyx/lib/doc/clipart/footnote.png eps /tmp/lyx_tmpdir.JwiQfGlIZrMI/lyx_tmpbuf0/4421914becf8ea0a5dc0bca7051d5117b9561dece5c4f1bd2ffc1c5c4c026dae_footnote_png.eps
  support/FileName.cpp (635): Checksumming "/usr/local/src/lyx/lib/doc/clipart/footnote.png" 750031438 lasted 0 ms.
  ConverterCache.cpp (70): Add file cache item /usr/local/src/lyx/lib/doc/clipart/footnote.png eps /home/milde/.lyx2.4/cache/1847236261-eps 1492615621 750031438.
  support/FileName.cpp (240): Copying /home/milde/.lyx2.4/cache/1847236261-eps keep symlink: 0

* How can I change the security policy and why does it prevent EPS
  generation by default?
  
* LyX should not cache a file when the execution of the generating command
  failed.
  

Günter



More information about the lyx-devel mailing list