[
https://issues.apache.org/jira/browse/PDFBOX-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17746082#comment-17746082
]
Tilman Hausherr commented on PDFBOX-3712:
-----------------------------------------
I'm now unable to complete my parallel rendering tests. They don't progress for
a long time but CPU usage is there, so there isn't a deadlock.
I haven't found out much and I might be wrong. I'm also getting OOM exceptions
in files where I didn't get them before
{noformat}
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3181) ~[?:1.8.0_381]
at java.util.ArrayList.grow(ArrayList.java:267) ~[?:1.8.0_381]
at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:241)
~[?:1.8.0_381]
at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:233)
~[?:1.8.0_381]
at java.util.ArrayList.add(ArrayList.java:464) ~[?:1.8.0_381]
at
org.apache.pdfbox.io.RandomAccessReadBuffer.expandBuffer(RandomAccessReadBuffer.java:309)
~[pdfbox-io-3.0.0-TILMAN.jar:3.0.0-TILMAN]
at
org.apache.pdfbox.io.RandomAccessReadWriteBuffer.write(RandomAccessReadWriteBuffer.java:99)
~[pdfbox-io-3.0.0-TILMAN.jar:3.0.0-TILMAN]
at
org.apache.pdfbox.io.RandomAccessOutputStream.write(RandomAccessOutputStream.java:46)
~[pdfbox-io-3.0.0-TILMAN.jar:3.0.0-TILMAN]
at
org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:104)
~[classes/:?]
at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)
~[classes/:?]
at org.apache.pdfbox.filter.Filter.decode(Filter.java:96) ~[classes/:?]
at org.apache.pdfbox.filter.Filter.decode(Filter.java:236) ~[classes/:?]
at org.apache.pdfbox.cos.COSStream.createView(COSStream.java:196)
~[classes/:?]
{noformat}
Yes I can reproduce it but you'd need to have the 1000 files and their
renderings.
> PDFBox goes into an infinite loop with this PDF
> -----------------------------------------------
>
> Key: PDFBOX-3712
> URL: https://issues.apache.org/jira/browse/PDFBOX-3712
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.4
> Reporter: Dirk Groeneveld
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: PDFBOX-3712-page6-rendered.png
>
>
> The PDF at
> https://pdfs.semanticscholar.org/2095/e3df01fc32e0bff982a1e79600d5bcf10b81.pdf
> puts PDFBox into an infinite loop.
> This is roughly my code:
> {quote}
> final PDDocument pdDoc = PDDocument.load(inputStream);
> PDFTextStripper stripper = new PDFTextStripper();
> stripper.getText(pdDoc);
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]