You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/09/12 12:54:34 UTC

[jira] [Created] (PDFBOX-2344) NegativeArraySizeException in radial shading

Tilman Hausherr created PDFBOX-2344:
---------------------------------------

             Summary: NegativeArraySizeException in radial shading
                 Key: PDFBOX-2344
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2344
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 1.8.6, 1.8.7, 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 1.8.7, 2.0.0
         Attachments: PDFBOX-2344-233644-p10.pdf

I get this exception with the attached file:
{code}
java.lang.NegativeArraySizeException
	at org.apache.pdfbox.pdmodel.graphics.shading.RadialShadingContext.calcColorTable(RadialShadingContext.java:186)
	at org.apache.pdfbox.pdmodel.graphics.shading.RadialShadingContext.<init>(RadialShadingContext.java:149)
	at org.apache.pdfbox.pdmodel.graphics.shading.RadialShadingPaint.createContext(RadialShadingPaint.java:68)
	at sun.java2d.pipe.AlphaPaintPipe.startSequence(AlphaPaintPipe.java:83)	at sun.java2d.pipe.AlphaPaintPipe.startSequence(AlphaPaintPipe.java:83)
	at sun.java2d.pipe.AAShapePipe.renderTiles(AAShapePipe.java:168)
	at sun.java2d.pipe.AAShapePipe.renderPath(AAShapePipe.java:159)
	at sun.java2d.pipe.AAShapePipe.fill(AAShapePipe.java:68)
	at sun.java2d.pipe.PixelToParallelogramConverter.fill(PixelToParallelogramConverter.java:164)
	at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:160)
	at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2466)
	at org.apache.pdfbox.rendering.PageDrawer.shadingFill(PageDrawer.java:984)
	at org.apache.pdfbox.util.operator.graphics.ShadingFill.process(ShadingFill.java:36)
{code}
The cause is a negative radius due to a negative scale in the CTM (see also PDFBOX-2217).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)