https://issues.apache.org/bugzilla/show_bug.cgi?id=52078
Bug #: 52078 Summary: Slide.draw throws java.lang.OutOfMemoryError in some slides with grouped shapes Product: POI Version: 3.8-dev Platform: PC Status: NEW Severity: major Priority: P2 Component: HSLF AssignedTo: dev@poi.apache.org ReportedBy: saulobr...@gmail.com Classification: Unclassified Created attachment 27840 --> https://issues.apache.org/bugzilla/attachment.cgi?id=27840 PPT with a slide with shapes grouped Slide.draw throws java.lang.OutOfMemoryError in some slides with grouped shapes. How to reproduce: - Download the attached PPT (TesteAgrupado.ppt) - Run org.apache.poi.hslf.examples.PPT2PNG TesteAgrupado.ppt If you open the PPT, ungroup the shapes within the first slide and run the PPT2PNG again, no error will occur! I´ve already tried to increase the heap memory size but got the same error. The output and stack trace: Rendering slide 1 Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown Source) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow n Source) at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source) at sun.awt.image.ImageRepresentation.setPixels(Unknown Source) at java.awt.image.AreaAveragingScaleFilter.accumPixels(Unknown Source) at java.awt.image.AreaAveragingScaleFilter.setPixels(Unknown Source) at sun.awt.image.OffScreenImageSource.sendPixels(Unknown Source) at sun.awt.image.OffScreenImageSource.produce(Unknown Source) at sun.awt.image.OffScreenImageSource.addConsumer(Unknown Source) at sun.awt.image.OffScreenImageSource.startProduction(Unknown Source) at java.awt.image.FilteredImageSource.startProduction(Unknown Source) at sun.awt.image.ImageRepresentation.startProduction(Unknown Source) at sun.awt.image.ImageRepresentation.drawToBufImage(Unknown Source) at sun.java2d.pipe.DrawImage.copyImage(Unknown Source) at sun.java2d.SunGraphics2D.drawImage(Unknown Source) at sun.java2d.SunGraphics2D.drawImage(Unknown Source) at org.apache.poi.hslf.blip.BitmapPainter.paint(BitmapPainter.java:65) at org.apache.poi.hslf.usermodel.PictureData.draw(PictureData.java:230) at org.apache.poi.hslf.model.Picture.draw(Picture.java:268) at org.apache.poi.hslf.model.ShapeGroup.draw(ShapeGroup.java:289) at org.apache.poi.hslf.model.Slide.draw(Slide.java:433) at org.apache.poi.hslf.examples.PPT2PNG.main(PPT2PNG.java:95) -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org