viktor-merkel commented on PR #175:
URL: https://github.com/apache/pdfbox/pull/175#issuecomment-1880577495

   @THausherr Thanks for taking a look at my pull request.
   
   The problem with the simple "catch exceptions" solution is that it does not 
prevent the program from attempting to create a very large data buffer due to 
the division by zero, and this leads to an OutOfMemoryError of the entire 
application:
   
   Caused by: java.lang.OutOfMemoryError: Java heap space
        at 
java.desktop/java.awt.image.DataBufferByte.<init>(DataBufferByte.java:76)
        at 
java.desktop/java.awt.image.Raster.createInterleavedRaster(Raster.java:266)
        at 
java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:376)
        at 
java.desktop/sun.awt.windows.WPathGraphics.redrawRegion(WPathGraphics.java:1399)
        at 
java.desktop/sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2320)
        at 
java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1654)
           ...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to