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

Andreas Lehmkühler reassigned PDFBOX-926:
-----------------------------------------

    Assignee: Andreas Lehmkühler

> JVM crash calling Graphics2D.draw(Shape) with a specific path
> -------------------------------------------------------------
>
>                 Key: PDFBOX-926
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-926
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.4.0
>         Environment: Window 7 64 bit VM, Mac OS. Works fine on Windows 7 32 
> bit VM
>            Reporter: Christanto
>            Assignee: Andreas Lehmkühler
>         Attachments: CrashTest.java
>
>
> When I call  PDPage.convertToImage(), JVM crash occur. This is caused by JVM 
> itself, not PDFBox.
> I will attach the test code to replicate this issue.
> It seems that AWT has certain issue with a certain path/stroke combination. 
> And by changing something that make the rendering behave slightly differently 
> seems avoid the issue.
> There is a couple workaround that I tried myself as explained in [1] such as 
> setting graphics.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, 
> RenderingHints.VALUE_STROKE_PURE);
> Maybe PDFBox can include the workaround buildin.
> I already file a bug to Sun [2]. (It may need a day or two to show in public 
> bug database)
> [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6215380
> [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7008242



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to