We have a handful of quite small PowerPoint presentations that cause OutOfMemoryError exceptions when we try to read them using any version of Aspose Slides (Java), including 20.10. The partial stacktrace we see is as follows:
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3689) ~[?:?]
at com.aspose.slides.Collections.Generic.List.setCapacity(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Collections.Generic.List.do(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Collections.Generic.List.addItem(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.internal.da.do.do(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.internal.da.try.do(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.internal.da.goto.do(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.internal.da.goto.<init>(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.ae5.if(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Presentation.do(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Presentation.if(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Presentation.<init>(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
at com.aspose.slides.Presentation.<init>(Unknown Source) ~[aspose-slides-20.10-jdk16.jar:20.10]
Presently, we don’t have permission to share the Powerpoint files on this ticket - but we’re trying to obtain permission. While we wait for permission, is there some option or configuration parameter we can use with Aspose Slides that will yield more verbose logging or diagnostics?