You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/10/27 09:46:20 UTC
DO NOT REPLY [Bug 48062] New: PCL Painter not thread safe.
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_chris@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.
DO NOT REPLY [Bug 48062] PCL Painter not thread safe.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48062
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:37 UTC ---
resetting P2 open bugs to P3 pending further review
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48062] PCL Painter not thread safe.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48062
--- Comment #2 from Jeremias Maerki <je...@apache.org> 2010-07-15 03:50:44 EDT ---
I can't reproduce the multi-threading problem with various JVMs and settings (3
to 11 threads, client and server VMs etc.) on a Core2Duo. :-(
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48062] PCL Painter not thread safe.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48062
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48062] PCL Painter not thread safe.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48062
--- Comment #1 from Chris Bowditch <bo...@hotmail.com> 2010-07-12 09:49:16 EDT ---
Sometimes rendering to PCL also fails with the following error:
java.lang.ArrayIndexOutOfBoundsException
at javax.media.jai.PlanarImage.cobbleByte(PlanarImage.java:2785)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2067)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:1922)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2222)
at
org.apache.fop.render.pcl.PCLGenerator.paintMonochromeBitmap(PCLGenerator.java:803)
at
org.apache.fop.render.pcl.PCLGenerator.paintBitmap(PCLGenerator.java:757)
at
org.apache.fop.render.pcl.PCLImageHandlerRenderedImage.handleImage(PCLImageHandlerRenderedImage.java:68)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:227)
at
org.apache.fop.render.pcl.PCLPainter.paintMarksAsBitmap(PCLPainter.java:305)
at
org.apache.fop.render.pcl.PCLPainter.drawTextAsBitmap(PCLPainter.java:490)
at org.apache.fop.render.pcl.PCLPainter.drawText(PCLPainter.java:330)
at
org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endElement(IFParser.java:569)
at
org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFParser.java:352)
at
com.thunderhead.util.xml.BufferedContentHandler.endElement(BufferedContentHandler.java:106)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.