LyX caches files when generation failed (was: PNG clipart prevents export DVI / export PS)

Guenter Milde milde at users.sf.net
Wed Nov 25 09:22:19 UTC 2020


On 2020-11-24, Guenter Milde wrote:
> 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'

...
>> 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
...
>   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

> * LyX should not cache a file when the execution of the generating command
>   failed.

Report as bug?

Günter




More information about the lyx-devel mailing list