Opening and resaving pptx file causes "Index was outside the bounds of the array" exception

Opening and then immediately saving the attached file causes an “Index was outside the bounds of the array” exception to be thrown by Aspose.Slides. We are using the latest released version of Aspose.Slides for .NET. The file is a little over a MB, and I’m told by our client that this is because of a very complicated chart object in the presentation, and the stack trace makes me think that handling that chart is what’s causing this issue.





The code for the test was:





Dim Presentation = New Aspose.Slides.Presentation(SourceFile)


Presentation.Save(DestFile, Slides.Export.SaveFormat.Pptx)





The exception message: Index was outside the bounds of the array.





The stack trace:


at †”.“.get_Item(Int32 index)


at ‰’.”’.ž(“ edesc, String localName, String namespaceURI, Int32 value)


at ‚.‚.Œ( value)


at Aspose.Slides.Charts.ChartDataCell.‹—(‚ target)


at Aspose.Slides.Charts.ChartDataWorksheet.”(“ context)


at Aspose.Slides.Charts.ChartDataWorkbook.Š(“ context)


at Aspose.Slides.Charts.ChartDataWorkbook.Write(Stream stream)


at Aspose.Slides.Charts.ChartData.ReadWorkbookStream()


at “’.†ž›.‡Š“(IChart chart, “ chartSpaceElementData, –’ serializationContext)


at “’.†ž›.“Š“(IChart chart, “ chartSpaceElementData, “ graphicFrameElementData, Ÿ› chartPartSerializationContext)


at œ’’.Ÿ’’.†Š“(IChart chart, “ graphicFrameElementData, ˜œ slideSerializationContext)


at “’.„ž›.“Š“(IChart chart, “ graphicFrameElementData, ˜œ slideSerializationContext)


at œ’’.Ÿ›.“Š“(IShape shape, €“ groupShapeElementData, ˜œ slideSerializationContext, Ÿ› chartPartSerializationContext)


at œ’’.Ÿ›.“Š“(IGroupShape groupShape, €“ groupShapeElementData, ˜œ slideSerializationContext, Ÿ› chartPartSerializationContext)


at œ’’.ž›.“Š“(IBaseSlide baseSlide, ž“ cSld, ˜œ slideSerializationContext)


at œ’’.˜•’.†Š“(ISlide slide)


at a’.–’.“(“ package, ISlide slide, –’ serializationContext)


at a’.–’.“(IPresentation presentation, ‡ zipFile, ˜Ž outputType, IPptxOptions options)


at Aspose.Slides.Presentation.Write(Stream stream, ˜Ž type, IPptxOptions options)


at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)


at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)


at Aspose.Slides_Investigation_Project.AsposeInvestigationForm.RunTextButton_Click(Object sender, EventArgs e)





Can you help us with our issues with this file?





Thanks,


Michael Whalen

Hi Michael,

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-35616 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-35616) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.