I have 2 errors when trying to split some PDFs.
Tested against PDFBox 3.0.1-SNAPSHOT from Github.

*Error 1:*
Exception in thread "main" java.lang.StackOverflowError
at java.base/java.util.HashMap.tableSizeFor(HashMap.java:378)
at java.base/java.util.HashMap.<init>(HashMap.java:455)
at java.base/java.util.LinkedHashMap.<init>(LinkedHashMap.java:439)
at java.base/java.util.HashSet.<init>(HashSet.java:171)
at java.base/java.util.LinkedHashSet.<init>(LinkedHashSet.java:167)
at org.apache.pdfbox.util.SmallMap.entrySet(SmallMap.java:384)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1453)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1486)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1486)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)

You can get the PDF that generates this error here:
https://independence.mgmt.clarity.ai/report/public/file/325ddbe0-9a05-4ec2-af93-d5be4dda8625?alternate=ORIGINAL&disposition=attachment

-----------------------------------------------

*Error 2*:
(looks similar to Error 1, but line numbers are slightly different, so I
assumed it's a different error)

Exception in thread "main" java.lang.StackOverflowError
at java.base/java.util.ArrayList.indexOf(ArrayList.java:286)
at java.base/java.util.ArrayList.contains(ArrayList.java:275)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:777)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475)
at
org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470)
at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:788)

You can get the PDF that generates this error here:
https://independence.mgmt.clarity.ai/report/public/file/d7ba9150-17d9-40e7-a737-b888a834d7d8?alternate=ORIGINAL&disposition=attachment

If you prefer, I can open the Jira tickets myself, but I don't know what to
put in every issue field. (components, labels, etc)

Thanks,
   Joan

Reply via email to