[Poppler-bugs] [Bug 102401] New: "Unsupported TilingType:3" Avoiding out-of-memory errors

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 25 08:56:02 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102401

            Bug ID: 102401
           Summary: "Unsupported TilingType:3" Avoiding out-of-memory
                    errors
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: zakiyama01 at gmail.com

Creating images from PDF

Certain pattern filling (TilingType = 3) was not rendered properly.


#/usr/bin/pdftocairo -r 174 -scale-to 3000 -cropbox -jpeg
pdftocairo.outofmemory.pdf image


SAMPLE PDF
[pdftocairo.outofmemory.pdf](https://github.com/zakiyama01/poppler/files/1251045/pdftocairo.outofmemory.pdf)

And if you set it to a larger image size, you will get out of memory error,
rendering will finish with the painting. (Sample PDF is only paint of problem
so we can not confirm the stopped image)

#/usr/bin/pdftocairo -r 174 -scale-to 5000 -cropbox -jpeg
pdftocairo.outofmemory.pdf image
Internal Error: cairo context error: out of memory<0a>
cairo error: out of memory
cairo error: out of memory


I tried poppler-0.57.0. The same symptoms from before.
Because I am in trouble as it is, solve out of memory? Avoidance? I am fixing
it.

see patch.
https://github.com/zakiyama01/poppler/commit/b35eba51683fd634142b4607496ac1ea37c2311e


thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170825/50bd8dc3/attachment-0001.html>


More information about the Poppler-bugs mailing list