[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gs conversion segfaults on 64bit cpu
From: |
Peter Bengtsson |
Subject: |
gs conversion segfaults on 64bit cpu |
Date: |
Mon, 16 Apr 2007 10:55:12 +0100 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070403) |
Hi,
I've got a PDF file that I use 'convert' to convert from PDF to JPG and
it works fine on my laptop but not on the server. They're both Ubuntu
linuxes and one of the differences is the CPU. Mine's 32bit and the
server is 64bit. When I was working on this bug reproduction I made sure
the versions of the various programs where the same.
This is what happens when I try to convert the attached PDF to JPG:
$ convert "Skyways.pdf[0]" "Skyways.jpg"
convert: Postscript delegate failed `Skyways.pdf'.
$ convert -version
Version: ImageMagick 6.2.4 11/24/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
$ gs --version
8.15.2
Then if I run it more verbosely I get the following::
$ convert -verbose "Skyways.pdf[0]" "Skyways.jpg"
"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE
-dAlignToPixels=0 "-sDEV
ICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g595x842"
"-r72x72" -dFirs
tPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-XXMpljof"
"-f/tmp/magick-XXtzKB4f
" "-f/tmp/magiclnn1He"
Start of Image
Define Huffman Table 0x00
0 1 5 1 1 1 1 1
1 0 0 0 0 0 0 0
Define Huffman Table 0x01
0 3 1 1 1 1 1 1
1 1 1 0 0 0 0 0
Define Huffman Table 0x10
0 2 1 3 3 2 4 3
5 5 4 4 0 0 1 125
Define Huffman Table 0x11
0 2 1 2 4 4 3 4
7 5 4 4 0 1 2 119
End Of Image
convert: Postscript delegate failed `Skyways.pdf'.
The strange thing is that if I run the exact same command (with
-verbose) on my laptop I get a slightly different message. So, on my
laptop I get this::
$ convert -verbose "Skyways.pdf[0]" Skyways.jpg
"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE
-dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4
-dGraphicsAlphaBits=4 "-g595x842" "-r72x72" -dFirstPage=1
-dLastPage=1 "-sOutputFile=/tmp/magick-XXcNEf4X"
"-f/tmp/magick-XX9gy9Jj" "-f/tmp/magicEz5loC"/tmp/magick-XXcNEf4X
PNM 595x842 DirectClass 1.4mb
Skyways.pdf PDF 595x842 595x842+0+0 DirectClass 1.4mb
Skyways.pdf PDF 595x842 595x842+0+0 DirectClass 1.4mb
Skyways.pdf=>Skyways.jpg PDF 595x842 595x842+0+0 DirectClass 113kb
Still no good explaination why the JPG can't be created from the PDF on
the 64bit server. That's when I did an strace (log file attached).
I hope this helps. I can provide more details if you need them.
Best regards,
Peter
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
- gs conversion segfaults on 64bit cpu,
Peter Bengtsson <=