Hello Aspose Support Team,
We have a reproducible issue in Aspose.Slides for .NET.
Environment:
- Package: Aspose.Slides.NET6.CrossPlatform 26.7.0
- .NET: net10.0
- OS: reproduced on Windows and in Ubuntu 24.04 Docker container
- The attached PPTX opens successfully in Microsoft PowerPoint without a repair prompt.
Case description:
Aspose.Slides fails while opening a valid PPTX file that contains a 3D bar/column chart (c:bar3DChart). The failure happens in the Presentation constructor, before any conversion or rendering logic is executed.
minimal-repro.zip (35,6 КБ)
Minimal reproduction code:
using Aspose.Slides;
using Aspose.Slides.Export;
string inputPath = "minimal-repro.pptx";
using FileStream input = File.OpenRead(inputPath);
using Presentation presentation = new(input); // throws PptxReadException
using FileStream output = File.Create("output.pdf");
presentation.Save(output, SaveFormat.Pdf);
Error text:
Aspose.Slides.PptxReadException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
—> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at .(IAxesManager , , e )
at .(IChart , , e )
at .(IChart , , , e )
at .(IShapeCollection , IChart , , )
at .(IShapeCollection , , , Boolean , ChartDataWorkbook )
at .( , IGroupShape , )
at .(IGroupShape , , )
at .(IBaseSlide , , )
at .(Slide )
at .(IPresentation )
at .(e , IPresentation )
at .(Presentation , Stream , InterruptionToken )
— End of inner exception stack trace —
at .(Presentation , Stream , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation…ctor(Stream stream, LoadOptions loadOptions)
at Aspose.Slides.Presentation…ctor(Stream stream)
Notes:
- The attachment is sanitized and contains only one slide with one anonymized chart.