Lyx can not show pdf graphics due to bug in imagemagick
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ImageMagick |
New
|
Undecided
|
Unassigned | ||
imagemagick (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: imagemagick
Recently I moved from 9.04 to 9.10 and found that lyx does not show pdf graphics anymore. The "Error converting loadable format" messages are displayed instead pdf graphics.
Reproducing this bug is very simple, just open lyx, create new file and insert pdf graphics.
I found that LyX uses 'convert' command from imagemagick to convert pdf to ppm file. This command is called from /usr/share/
convert -define pdf:use-
This command line does not work on Jaunty:
nmn@laptop:~/temp$ convert -define pdf:use-
**** Page has no /MediaBox attribute. Using the current page size.
Error: /stackunderflow in --run--
Operand stack:
--dict:6/6(L)-- 612.0 792.0 3
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_
Dictionary stack:
--dict:
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `foo.pdf': No such file or directory @ pdf.c/ReadPDFIm
convert: missing an image filename `ppm:foo.ppm' @ convert.
nmn@laptop:~/temp$
The problem is in "-define pdf:use-
Verified on debian version