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
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.