Page 1 of 1

crash on converting PDF to png

Posted: 2008-09-19T03:48:33-07:00
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

Re: crash on converting PDF to png

Posted: 2008-09-19T06:18:57-07:00
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.

Re: crash on converting PDF to png

Posted: 2008-09-19T06:39:32-07:00
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 )

Re: crash on converting PDF to png

Posted: 2008-10-09T07:28:00-07:00
by kriks
Hello,

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

any thought?

Re: crash on converting PDF to png

Posted: 2008-10-09T09:43:32-07:00
by magick
Use -limit memory 1mb -limit map 1mb. If that fails, try the latest ImageMagick release 6.4.4-2.