We are using aspose.slides-2.9.6, although I have downloaded an eval version of aspose.slides-6.9.1 and the error occurs in that version too.
We get the following IndexOutOfBoundsException when trying to open a PPTX file that contains a chart:
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.aspose.slides.obfuscated.drt.for(Unknown Source)
at com.aspose.slides.pptx.ChartEx.detectType(Unknown Source)
at com.aspose.slides.pptx.ChartEx.init(Unknown Source)
at com.aspose.slides.pptx.ChartEx.(Unknown Source)
at com.aspose.slides.pptx.ShapesEx.if(Unknown Source)
at com.aspose.slides.pptx.ShapesEx.do(Unknown Source)
at com.aspose.slides.pptx.GroupShapeEx.(Unknown Source)
at com.aspose.slides.pptx.BaseSlideEx.(Unknown Source)
at com.aspose.slides.pptx.SlideEx.(Unknown Source)
at com.aspose.slides.pptx.PresentationEx.do(Unknown Source)
at com.aspose.slides.pptx.PresentationEx.do(Unknown Source)
I have edited the PPTX file to get it down to one slide, and removed client-specific data, and attached that file to this post. Using this file as follows:
PresentationEx pres = new PresentationEx("C:\\temp\\test.pptx");
Gives a slightly different error:
class com.aspose.slides.d.a.g: Index is less than 0 or more than or equal to the list count.
Parameter name: index
Actual value was 0.
com.aspose.slides.Collections.ArrayList.do(Unknown Source)
com.aspose.slides.Collections.ArrayList.get_Item(Unknown Source)
com.aspose.slides.iZ.int(Unknown Source)
com.aspose.slides.ChartEx.do(Unknown Source)
com.aspose.slides.ChartEx.do(Unknown Source)
com.aspose.slides.ChartEx.(Unknown Source)
com.aspose.slides.ShapesEx.if(Unknown Source)
com.aspose.slides.ShapesEx.do(Unknown Source)
com.aspose.slides.GroupShapeEx.(Unknown Source)
com.aspose.slides.GroupShapeEx.(Unknown Source)
com.aspose.slides.BaseSlideEx.do(Unknown Source)
com.aspose.slides.BaseSlideEx.(Unknown Source)
com.aspose.slides.SlideEx.(Unknown Source)
com.aspose.slides.PresentationEx.do(Unknown Source)
com.aspose.slides.PresentationEx.int(Unknown Source)
com.aspose.slides.PresentationEx.if(Unknown Source)
It would be good to know if there is, or will be, a fix for this error.
Thanks,
Martin