Hi,

Indeed we've had problems reported in the past with certain PNGs causing out of memory errors when read with the default Java libraries:


https://www.oxygenxml.com/forum/post20919.html

Ideally you could identify that particular image which causes the problem and use a free image editing utility like GIMP to open and save it again. Maybe this will fix any problems it may have.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 2/14/2018 12:25 AM, Eliot Kimber wrote:
From the trace it looks like an issue with a large graphic since the
code involves appears to be the PNGImageReader.



So nothing to do with the size of the chapter but to do with the size of
an image.



Cheers,



E.

--

Eliot Kimber

http://contrext.com





*From: *oXygen-user <oxygen-user-boun...@oxygenxml.com> on behalf of
Bernhard Kleine <bernhard.kle...@gmx.net>
*Date: *Tuesday, February 13, 2018 at 3:04 PM
*To: *<oxygen-user@oxygenxml.com>
*Subject: *[oXygen-user] Strange error while transforming docbook 5 to pdf



Good evening!

I encountered the following error while transforming a chapter of my bool:

    The process 'Apache FOP' ended with code: 1.

    The error was:

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

              at java.awt.image.DataBufferByte.<init>(Unknown Source)

              at
    java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)

              at java.awt.image.Raster.createWritableRaster(Unknown Source)

              at
    javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)

              at javax.imageio.ImageReader.getDestination(Unknown Source)

              at
    com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)

              at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown
    Source)

              at
    
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO.loadImage(ImageLoaderImageIO.java:129)

              at
    
org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:154)

              at
    
org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:99)

              at
    
org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:269)

              at
    
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:159)

              at
    org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218)

              at
    org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:181)

              at
    
org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1294)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1281)

              at
    
org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:858)

              at
    
org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:832)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:862)

              at
    
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:715)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)

              at
    
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)

              at
    
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)

              at
    
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)

    Specify more memory for the 'Apache FOP' as explained in the section
    'Performance Problems', subsection 'External Processes' in the User
    Manual.

Since it is not the largest chapter and those larger ones could be
transformed without any problem, I ask for any help or ideas to tackle
the problem.

Regards Bernhard

--

spitzhalde9

D-79853 lenzkirch

bernhard.kle...@gmx.net<mailto:bernhard.kle...@gmx.net>

www.b-kleine.com<http://www.b-kleine.com>,
www.urseetal.net<http://www.urseetal.net>

-

thunderbird mit enigmail

GPG schl├╝ssel: D5257409

fingerprint:

08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

_______________________________________________ oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to