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 2016/01/22 00:01:39 UTC
[jira] [Commented] (PDFBOX-3204) JVM crashes on
PDFRenderer.renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-3204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15111568#comment-15111568 ]
Tilman Hausherr commented on PDFBOX-3204:
-----------------------------------------
Happens on Oracle JDK7 on W7 too with file problem3.pdf. It also happens with PDFBox 1.8 with file problem2.pdf when opening it with PDFReader.
> JVM crashes on PDFRenderer.renderImageWithDPI
> ---------------------------------------------
>
> Key: PDFBOX-3204
> URL: https://issues.apache.org/jira/browse/PDFBOX-3204
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Environment: Oracle Java 8 update 71, on both Mac OS X Yosemite and Ubuntu 14.04 LTS. Does not happen on OpenJDK 8.
> Reporter: Amos Ng
> Fix For: 2.0.0
>
> Attachments: problem.pdf, problem2.pdf, problem3.pdf
>
>
> When running the following Scala program on one of the attached PDFs:
> {code}
> import org.apache.pdfbox.pdmodel.PDDocument
> import org.apache.pdfbox.rendering.PDFRenderer
> import java.io.File
> object FigureExtractorBatchCli {
> def main(args: Array[String]): Unit = {
> new PDFRenderer(PDDocument.load(new File("problem.pdf"))).renderImageWithDPI(0, 195)
> }
> }
> {code}
> a fatal error occurs with the JVM at [the call to java.awt.Graphics2D.draw|https://github.com/apache/pdfbox/blob/6f3417a1863b308a9ce48722c2da1d62f09c9a35/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java#L578].
> For *problem.pdf* this only happens at a DPI >= 195. For *problem2.pdf* it's DPI >= 5. For *problem3.pdf* it happens at any DPI.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org