Bug 83936

Summary: pdftocairo crashes when processing a pdf file: cairo context error: out of memory
Product: cairo Reporter: Alex Korobkin <korobkin+lpad>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: cairo-outofmemory-pdf.pdf
cairo-outofmemory2.pdf

Description Alex Korobkin 2014-09-16 16:04:34 UTC
cairo 1.12.16 with latest patches, poppler 0.26.4. 

pdftocairo instantly crashes on this file. pdftops processes it normally, evince, GS, acroread open it just fine.

$ pdftocairo -ps -level3 cairo-outofmemory.pdf out.ps
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo context error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Internal Error: cairo error: out of memory<0a>
Comment 1 Alex Korobkin 2014-09-16 16:04:56 UTC
Created attachment 106378 [details]
cairo-outofmemory-pdf.pdf
Comment 2 Alex Korobkin 2014-10-14 21:53:10 UTC
Still the case with cairo 1.14.0
Comment 3 Alex Korobkin 2014-10-23 15:36:13 UTC
Created attachment 108305 [details]
cairo-outofmemory2.pdf

Another PDF that causes the same error with 1.14.0
I have much more of them, these are just a few examples.
Comment 4 Adrian Johnson 2014-10-24 11:26:48 UTC
Seems to be a problem with the recording surface when replaying to the fallback images.
Comment 5 Adrian Johnson 2014-11-01 05:28:31 UTC
The problem is a combination of the pattern scale and pixman image size limitations. The patch in bug 33364 fixes this.

*** This bug has been marked as a duplicate of bug 33364 ***

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.