We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Specific PPTX Causes OutOfMemoryException when Saving It on Linux

The code:

var presentation = new Presentation(“source.pptx”);
presentation.Save(“out.pptx”, SaveFormat.Pptx);

It’s work fine at windows. But when run it in linux. It took more than 4G memory and cause the Exception.

The Exception:

at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at Aspose.Slides.ImageCollection.( , Size )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single , Boolean& )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single )
at ​.(ISlidesPicture )
at .(ISlidesPicture , , ​ )
at .(ISlidesPicture , , ​ )
at .(PictureFillFormat , , ​ )
at .(IPictureFrame , , ​ )
at ​ .(IShape , , ​ , )
at ​ .(IGroupShape , , ​ , )
at ​ .(IShape , , ​ , )
at ​ .(IGroupShape , , ​ , )
at ​ .(IShape , , ​ , )
at ​ .(IGroupShape , , ​ , )
at .(IBaseSlide , , ​ )
at .(ISlide )
at ​.(​ , ISlide , ​ )
at ​.(IPresentation , Stream , PresentationTypeEx , IPptxOptions , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , PresentationTypeEx , IPptxOptions )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)

It’s seems a error about gdiplus.

Envirment:
system version: Ubuntu20.04 with WSL2 on Windows10
.net version: 6.0.5
Aspose.Slides version: 22.5.0

The file:
source.zip (591.9 KB)

Thanks.

@christy8074,
Thank you for reporting the issue.

I’ve reproduced the same exception when saving the presentation on Linux and added a ticket with ID SLIDESNET-43267 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.