[
https://issues.apache.org/jira/browse/PDFBOX-3204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115975#comment-15115975
]
Amos Ng commented on PDFBOX-3204:
---------------------------------
Thank you [~tilman], it works now!
I had over 2 million papers to run PDFBox on. It crashed on a handful. I may
soon have yet more to run on. I'll let you know if this happens again :)
By the way, I noticed in PDFBOX-2373 that you said there was already a bug
report at Oracle. Do you mind including a link to said bug report? Just curious
what happened there.
> 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: 1.8.10, 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
> Attachments: problem.pdf, problem2.pdf, problem3.pdf,
> problem3_reduced.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: [email protected]
For additional commands, e-mail: [email protected]