Bug 83936 - pdftocairo crashes when processing a pdf file: cairo context error: out of memory
Summary: pdftocairo crashes when processing a pdf file: cairo context error: out of me...
Status: RESOLVED DUPLICATE of bug 33364
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 16:04 UTC by Alex Korobkin
Modified: 2014-11-01 05:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
cairo-outofmemory-pdf.pdf (266.83 KB, application/pdf)
2014-09-16 16:04 UTC, Alex Korobkin
Details
cairo-outofmemory2.pdf (1.31 MB, application/pdf)
2014-10-23 15:36 UTC, Alex Korobkin
Details

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.