[
https://issues.apache.org/jira/browse/PDFBOX-808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905449#action_12905449
]
Martin Hilpert edited comment on PDFBOX-808 at 9/2/10 5:50 AM:
---------------------------------------------------------------
Nope, it happens occasionally for arbitrary PDFs (that are generated before
with Apache FOP). I load a PDF file and try to add additional text to it - with
a custom font.
Okay, I am able to reproduce it: it's a specific TTF font!
PDTrueTypeFont.loadTTF() blocks with the stack trace I posted above. The font
is called "nbrm____.ttf" ("NewBaskervilleEF-Roman (TrueType").
By the way: this font make no problems in other applications. E.g. another
application still use iText 2.1.7 to also add text to PDFs. And this
application use the same font source directory. The very same font file has no
probelm there.
was (Author: mhilpert):
Nope, it happens occasionally for arbitrary PDFs (that are generated before
with Apache FOP). I load a PDF file and try to add additional text to it - with
a custom font.
Okay, I am able to reproduce it: it's a specific TTF font!
PDTrueTypeFont.loadTTF() blocks with the stack trace I posted above. The font
is called "nbrm____.ttf" ("NewBaskervilleEF-Roman (TrueType").
By the way: this font make no problems in other applications.
> PDTrueTypeFont.loadTTF() freezes (at TTFDataStream.java:195)
> ------------------------------------------------------------
>
> Key: PDFBOX-808
> URL: https://issues.apache.org/jira/browse/PDFBOX-808
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.2.1
> Environment: PDFBox 1.2.1, JDK 1.6.0_21, Windows XP 32 Bit.
> Reporter: Martin Hilpert
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.