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] [Updated] (PDFBOX-2344) NegativeArraySizeException in radial shading

     [ https://issues.apache.org/jira/browse/PDFBOX-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-2344:
------------------------------------
    Attachment: PDFBOX-2344-233644-p10.pdf

> 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
>              Labels: shading
>             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)