Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1019

PDF conversion to image crashes the JVM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 2.0.0
    • PDModel
    • None
    • Linux Ubuntu, Mac OSX

    Description

      The file http://tie.open.ac.uk/256.pdf crashes the JVM during conversion to jpeg with the following message :

      Assertion failed: (fnum >= 0 && fnum < t->numSubrs), function BuildSubrs, file ../../../src/share/native/sun/font/t2k/t1.c, line 3098.
      Java Result: 134

      The error happens in the method convertToImage():

      PDPage page = (PDPage) pages.get(startPage);
      PDPage page = (PDPage) pages.get(0);
      try

      { image = page.convertToImage(); }

      catch (IOException ex)

      { Logger.getLogger(PdfIText.class.getName()).log(Level.SEVERE, null, ex); }

      The problem occurs not for all files, but is critical as it stops my webserver (Tomcat) that needs to be then restarted.

      Attachments

        1. CMR10.font
          17 kB
          Tilman Hausherr
        2. CMR17.font
          5 kB
          Tilman Hausherr
        3. NewJFrame.java
          5 kB
          Tilman Hausherr
        4. thumb.png
          35 kB
          Thomas Haselwanter

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              petr Petr Knoth
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: