Created attachment 6336 [details] Hanging PDF With the following gs command and attached PDF, Ghostscript hangs. I left it for 3 hours before killing, so it appears to be hung and not just slow. No growth in memory used. gs -dNOPAUSE -sDEVICE=pnmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r72x72 -sOutputFile=/tmp/out -- bad4.pdf
This problem was present in 8.60 and is still present in 8.71.
The main image (woolly glove ?) is set to interpolate. For some reason this is outstandingly slow. Running with -dNOINTERPOLATE the PDF file renders very quickly. I believe the file hasn't hung, it just seems to take an amazingly long time to interpolate the image. Possibly this should be assigned to Michael rather than Alex.
Thanks so much for diagnosing the problem! at least I can work around this for now.
Running this file, Ghostscript allocates huge buffer for the interpolated image. I saw 12GB of virtual memory usage before the process was killed. Prevention of unreasonable upscaling of the image should improve the speed.
-dNOTRANSPARENCY option also speeds up rendering. This indicates that the bug is caused by interaction between transparency and interpolation logic.
*** This bug has been marked as a duplicate of bug 691157 ***