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

Free Support Forum - aspose.com

Can't convert pptx file java.lang.OutOfMemoryError: GC overhead limit exceeded

I have pptx files which can’t convert. When I create object Presentation(“path to file”); I get exception:
Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case$do.do(Unknown Source)
at com.aspose.slides.internal.hb.case.(Unknown Source)
at com.aspose.slides.internal.hb.byte.do(Unknown Source)
at com.aspose.slides.internal.hb.byte.(Unknown Source)
at com.aspose.slides.internal.hb.byte.(Unknown Source)
at com.aspose.slides.internal.hh.int.do(Unknown Source)
at com.aspose.slides.internal.hv.do.do(Unknown Source)
at com.aspose.slides.internal.gz.for.do(Unknown Source)
at com.aspose.slides.internal.gz.for.getNumImages(Unknown Source)
at com.aspose.slides.internal.fy.do.if(Unknown Source)
at com.aspose.slides.internal.fy.do.do(Unknown Source)
at com.aspose.slides.internal.fy.do.try(Unknown Source)
at com.aspose.slides.internal.ez.if.do(Unknown Source)
at com.aspose.slides.internal.ez.if.(Unknown Source)
at com.aspose.slides.internal.ez.if.(Unknown Source)
at com.aspose.slides.internal.ez.class.do(Unknown Source)
at com.aspose.slides.internal.ez.class.do(Unknown Source)
at com.aspose.slides.internal.ez.class.do(Unknown Source)
at com.aspose.slides.ImageCollection.do(Unknown Source)
at com.aspose.slides.afq.new(Unknown Source)
at com.aspose.slides.afq.do(Unknown Source)
at com.aspose.slides.afr.if(Unknown Source)
at com.aspose.slides.afr.do(Unknown Source)
at com.aspose.slides.Presentation.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)

My environment:
aspose-slides-20.06-jdk16 or aspose-slides-20.04-jdk16
java version “1.8.0_102”
Java™ SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Test project with ppxt file:

@Alexander9132,

Can you please share the Java Heap size details on your end. Can you please increase the Java heap size on your end and share with us if there is still an issue incurring on your end.

I use from 2gb to 6.5gb to start the application on the local machine and 8 gigabytes on the server but it is used up to 200mb and after the application crashes.
Here is a screenshot: Screenshot 2020-08-18 at 11.48.30.png (291.4 KB)

@Alexander9132,

A ticket with ID SLIDESJAVA-38178 has been created to futher investigate the issue on our end. Apparently, it does not seems to be an issue with API. We will share the feedback with you as soon as the issue will be addressed.

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