Hi all, I'm using PDFBox 3.0.0 and im getting this error when trying to split this PDF.
I tested with code from trunk and the error is still there. Tried to get a Jira account to open an issue but was denied. Here you can download the problematic PDF: https://independence.mgmt.clarity.ai/report/public/file/2d1b4dd4-1ab3-4aaf-bb71-7f1759822f3a?disposition=inline&alternate=ORIGINAL Thanks!! The stacktrace exception: ai.clarity.bus.subscribe.exception.ConsumerException: java.lang.reflect.InvocationTargetException at ai.clarity.messagebus.spring.config.SubscriberConfiguration$MethodEventHandler.accept(SubscriberConfiguration.java:238) at ai.clarity.messagebus.spring.config.SubscriberConfiguration$MethodEventHandler.accept(SubscriberConfiguration.java:206) at ai.clarity.bus.subscribe.eventbridge.SQSMessageHandler.lambda$run$0(SQSMessageHandler.java:98) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at ai.clarity.bus.subscribe.eventbridge.SQSMessageHandler.run(SQSMessageHandler.java:98) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.reflect.InvocationTargetException: null at jdk.internal.reflect.GeneratedMethodAccessor451.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at ai.clarity.messagebus.spring.config.SubscriberConfiguration$MethodEventHandler.accept(SubscriberConfiguration.java:236) ... 8 common frames omitted Caused by: java.lang.StackOverflowError: null at java.base/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:300) at java.base/java.util.HashMap.putVal(HashMap.java:662) at java.base/java.util.HashMap.put(HashMap.java:610) at java.base/java.util.HashSet.add(HashSet.java:221) at org.apache.pdfbox.util.SmallMap.entrySet(SmallMap.java:387) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1453) at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:780) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1481) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1481) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1470) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1481) at org.apache.pdfbox.cos.COSArray.getIndirectObjectKeys(COSArray.java:780) 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:780) 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:780) 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:780) 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:780) 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:780) 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:780) at org.apache.pdfbox.cos.COSDictionary.getIndirectObjectKeys(COSDictionary.java:1475) [removed more lines like above] PS: Can look similar to https://issues.apache.org/jira/browse/PDFBOX-5707 but it's not the same.