crash on converting PDF to png

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

crash on converting PDF to png

Post by kriks »

Hello,

we have a very weird problem:

we have a cron job that uses convert to convert pdf into png, page per page (one command = one page).

if it's run in a console, it works. (as the same user than the cron job)
if it's run by the cron daemon it works at the beginning, but after nearly 30 pages, every command will crash with this trace :

Code: Select all

Error: /ioerror in --verify_xref--
Operand stack:
   42918843   2   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904   1   3   %oparray_pop   1888   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %loop_continue   --nostringval--   --nostringval--   1889   0   7   %oparray_pop   --nostringval--   3   1   29791   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:2/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--   --dict:107/127(ro)(G)--   --dict:275/300(ro)(G)--   --dict:18/25(L)--
Current allocation mode is local
Last OS error: 32
Unrecoverable error: ioerror in quit
 Operand stack:
     --nostringval--
I think it should be a problem on the system, some kind of limitation,.

does the trace speaks to you ?

thanks

IM : 6.3.8
GS : 8.611
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: crash on converting PDF to png

Post by magick »

Its possible your cron job has a restrictive limit. Run the job and include the 'limit' command. Compare the output to what you get on your command line. Also try adding -limit memory and -limit map options to your command line to force the pixels to disk to save on memory.
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: crash on converting PDF to png

Post by kriks »

thank you,
I will try that the next time (the job is currently running on the command line, as it's urgent :p )
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: crash on converting PDF to png

Post by kriks »

Hello,

I tried with "-limit memory 512mb -limit map 1024mb", but it still crashes.

any thought?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: crash on converting PDF to png

Post by magick »

Use -limit memory 1mb -limit map 1mb. If that fails, try the latest ImageMagick release 6.4.4-2.
Post Reply