Bug 51655

Summary: PDFtoPS freezes when certain PDF files are printed from evince to cups
Product: poppler Reporter: Harald Linden <harald.linden>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Attachment as described, Part1
Attachment as described, Part2
Attachment as described, Part3
Attachment as described, Part4

Description Harald Linden 2012-07-02 09:05:51 UTC
When I print some PDF files from evince 2.32 to a printer in CUPS 1.5.2 that uses PDFtoPS to process the PDF, PDFtoPS uses 100% CPU and does nothing else. When I convert the original PDF, it works fine. When I convert the one I've pulled from the spool directory of cups, it freezes. Tested using poppler-0.18 and 0.20 on Gentoo. See both files, the original and the one that breaks PDFtoPS in the attachment.
Comment 1 Harald Linden 2012-07-02 09:10:10 UTC
Created attachment 63705 [details]
Attachment as described, Part1
Comment 2 Harald Linden 2012-07-02 09:10:36 UTC
Created attachment 63706 [details]
Attachment as described, Part2
Comment 3 Harald Linden 2012-07-02 09:10:55 UTC
Created attachment 63708 [details]
Attachment as described, Part3
Comment 4 Harald Linden 2012-07-02 09:11:14 UTC
Created attachment 63709 [details]
Attachment as described, Part4
Comment 5 Adrian Johnson 2012-07-03 06:24:34 UTC
I'm not sure if it is frozen or very slow. The problem is page 6 in the broken pdf. Acroread renders this page extremely slowly. So it looks like a problem with the pdf generated by cairo 1.10.2. I tried generating the pdf from the original using cairo 1.12.2. The output was 1/3 of the size and pdftops was able to convert it to ps in a few seconds.
Comment 6 Harald Linden 2012-07-03 07:40:38 UTC
I've just tried upgrading to cairo 1.12.2 but the build fails at the moment. I'll get back to this bug as soon as I can test it.
Comment 7 Harald Linden 2012-07-03 09:52:16 UTC
Alright, I managed to build and install Cairo 0.12.2 after all and the problem seems to have gone away. Thanks Adrian for the quick resolution!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.