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

PDTrueTypeFont.loadTTF() freezes (at TTFDataStream.java:195)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2.1
    • 1.3.1
    • FontBox
    • None
    • PDFBox 1.2.1, JDK 1.6.0_21, Windows XP 32 Bit.

    Description

      Sometimes (not always), my app "freezes". When I look into jVisualVM thread dump, I see this stack trace:

      java.lang.Thread.State: RUNNABLE
      at org.apache.fontbox.ttf.TTFDataStream.read(TTFDataStream.java:195)
      at org.apache.fontbox.ttf.TTFDataStream.readString(TTFDataStream.java:69)
      at org.apache.fontbox.ttf.TTFDataStream.readString(TTFDataStream.java:57)
      at org.apache.fontbox.ttf.PostScriptTable.initData(PostScriptTable.java:104)
      at org.apache.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:140)
      at org.apache.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:87)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:206)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:167)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:143)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:130)

      It never returns and blocks the application from continuing. This hapend several times now every few hours.

      Attachments

        1. nbrm____.zip
          54 kB
          MH

        Activity

          People

            jukkaz Jukka Zitting
            mhilpert MH
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: