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

Free Support Forum - aspose.com

OutOfMemory when writing image

We run into out of memory when converting presentations, on Linux.

VM is launched with -Xmx1024m.
The presentation pptx file is about 72MB.
I can send the entire hprof file if you like.

pool-1-thread-1

at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:48)

at java.awt.image.DataBufferByte.<init>(I)V (DataBufferByte.java:76)

at java.awt.image.Raster.createInterleavedRaster(IIIII[ILjava/awt/Point;)Ljava/awt/image/WritableRaster; (Raster.java:266)

at java.awt.image.BufferedImage.<init>(III)V (BufferedImage.java:391)

at com.aspose.slides.internal.ke.if.do(IIZ)Ljava/awt/image/BufferedImage; (Unknown Source)

at com.aspose.slides.internal.ke.if.do(IIIZ)Ljava/awt/image/BufferedImage; (Unknown Source)

at com.aspose.slides.internal.ey.if.do(IIIZ)Ljava/awt/image/BufferedImage; (Unknown Source)

at com.aspose.slides.internal.ey.if.<init>(IIIZ)V (Unknown Source)

at com.aspose.slides.internal.ey.if.<init>(III)V (Unknown Source)

at com.aspose.slides.internal.ey.if.<init>(II)V (Unknown Source)

at com.aspose.slides.internal.k5.import.do(Lcom/aspose/slides/internal/ey/catch;Lcom/aspose/slides/internal/ey/boolean;Lcom/aspose/slides/internal/ey/private;Lcom/aspose/slides/internal/e1/char;)Lcom/aspose/slides/internal/ey/if; (Unknown Source)

at com.aspose.slides.internal.k5.import.do([BLcom/aspose/slides/internal/ey/boolean;Lcom/aspose/slides/internal/ey/boolean;Lcom/aspose/slides/internal/e1/char;)Lcom/aspose/slides/internal/ey/if; (Unknown Source)

at com.aspose.slides.internal.k5.import.do([BLcom/aspose/slides/internal/ey/boolean;Lcom/aspose/slides/internal/dt/case;Lcom/aspose/slides/internal/e1/char;Lcom/aspose/slides/IBackground;)Lcom/aspose/slides/internal/ey/if; (Unknown Source)

at com.aspose.slides.z0.do(Lcom/aspose/slides/vm;Lcom/aspose/slides/internal/ey/abstract;Lcom/aspose/slides/aek;Lcom/aspose/slides/IBaseSlide;Lcom/aspose/slides/me;Z)Lcom/aspose/slides/internal/ds/byte; (Unknown Source)

at com.aspose.slides.Picture.do(Lcom/aspose/slides/vm;Lcom/aspose/slides/internal/ey/abstract;Lcom/aspose/slides/aek;Lcom/aspose/slides/IBaseSlide;Lcom/aspose/slides/me;Z)Lcom/aspose/slides/internal/ds/byte; (Unknown Source)

at com.aspose.slides.ma.do(Lcom/aspose/slides/PictureFillFormat;Lcom/aspose/slides/vm;Lcom/aspose/slides/me;Z)V (Unknown Source)

at com.aspose.slides.ma.do(Lcom/aspose/slides/vm;[Lcom/aspose/slides/me;Lcom/aspose/slides/IFillParamSource;)V (Unknown Source)

at com.aspose.slides.ma.do(Lcom/aspose/slides/vm;[Lcom/aspose/slides/IFillParamSource;)V (Unknown Source)

at com.aspose.slides.ma.<init>(Lcom/aspose/slides/vm;Lcom/aspose/slides/EffectFormat;[Lcom/aspose/slides/IFillParamSource;)V (Unknown Source)

at com.aspose.slides.GeometryShape.do(Lcom/aspose/slides/c3;Lcom/aspose/slides/ShapeFrame;Lcom/aspose/slides/internal/ez/else;[Lcom/aspose/slides/ma;BLcom/aspose/slides/IFillParamSource;[Lcom/aspose/slides/Shape;Lcom/aspose/slides/aek;)Lcom/aspose/slides/ma; (Unknown Source)

at com.aspose.slides.GeometryShape.do(Lcom/aspose/slides/c3;Lcom/aspose/slides/aek;[Lcom/aspose/slides/ShapeElement;Lcom/aspose/slides/ShapeFrame;Lcom/aspose/slides/IFillParamSource;[Lcom/aspose/slides/Shape;)V (Unknown Source)

at com.aspose.slides.PictureFrame.do(Lcom/aspose/slides/c3;Lcom/aspose/slides/aek;Lcom/aspose/slides/InterruptionToken;)V (Unknown Source)

at com.aspose.slides.GroupShape.do(Lcom/aspose/slides/c3;Lcom/aspose/slides/aek;Lcom/aspose/slides/InterruptionToken;)V (Unknown Source)

at com.aspose.slides.Slide.for(Lcom/aspose/slides/c3;Lcom/aspose/slides/aek;Lcom/aspose/slides/InterruptionToken;)V (Unknown Source)

at com.aspose.slides.Slide.do(Lcom/aspose/slides/c3;Lcom/aspose/slides/internal/et/do;Lcom/aspose/slides/aeo;Lcom/aspose/slides/InterruptionToken;)V (Unknown Source)

at com.aspose.slides.Slide.do(Lcom/aspose/slides/internal/ey/private;)Lcom/aspose/slides/internal/ey/if; (Unknown Source)

at com.aspose.slides.Slide.for(FF)Lcom/aspose/slides/internal/ey/if; (Unknown Source)

at com.aspose.slides.Slide.getThumbnail(FF)Ljava/awt/image/BufferedImage; (Unknown Source)

at org.javacode.papyrus.converter.PresentationConverter.extractImageLogic(ILjava/lang/String;)V (PresentationConverter.java:108)

at org.javacode.papyrus.converter.Converter.extractImage(ILjava/lang/String;)V (Converter.java:95)

at org.javacode.papyrus.app.Job.convert(Lorg/javacode/papyrus/converter/Converter;)V (Job.java:57)

at org.javacode.papyrus.app.Job.run()V (Job.java:112)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run()V (ThreadPoolExecutor.java:624)

at java.lang.Thread.run()V (Thread.java:748)

@marc_aspose,

I have observed the information shared by you and like to share that you are trying to load fairly big presentation where as heap size is maximized to 1024M. I suggest you to please increase the heap size on your end to avoid the exception.