https://issues.apache.org/bugzilla/show_bug.cgi?id=48062

           Summary: PCL Painter not thread safe.
           Product: Fop
           Version: 1.0dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pcl
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: bowditch_ch...@hotmail.com


Created an attachment (id=24420)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24420)
IF XML

When using multiple threads to render the attached IF XML to PCL using the
Painter the following exception occurs. The exception does not occur when only
a single thread is used. In a quick debugging session we observed that when the
error occurs the method PCLPainter.getTextBoundingBox returns a rectangle with
negative width

java.lang.NegativeArraySizeException
        at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:42)
        at java.awt.image.Raster.createInterleavedRaster(Raster.java:253)
        at java.awt.image.Raster.createInterleavedRaster(Raster.java:194)
        at
org.apache.xmlgraphics.image.loader.impl.ImageConverterG2D2Bitmap.createGrayBufferedImageWithAlpha(ImageConve
rterG2D2Bitmap.java:170)
        at
org.apache.xmlgraphics.image.loader.impl.ImageConverterG2D2Bitmap.paintToBufferedImage(ImageConverterG2D2Bitm
ap.java:108)
        at
org.apache.xmlgraphics.image.loader.impl.ImageConverterG2D2Bitmap.convert(ImageConverterG2D2Bitmap.java:74)
        at
org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:173)
        at
org.apache.xmlgraphics.image.loader.ImageManager.convertImage(ImageManager.java:330)
        at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:209)
        at
org.apache.fop.render.pcl.PCLPainter.paintMarksAsBitmap(PCLPainter.java:304)
        at
org.apache.fop.render.pcl.PCLPainter.drawTextAsBitmap(PCLPainter.java:489)
        at org.apache.fop.render.pcl.PCLPainter.drawText(PCLPainter.java:329)
        at
org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endElement(IFParser.java:487)
        at
org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFParser.java:277)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to