You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by mehdi houshmand <me...@gmail.com> on 2011/03/16 08:45:47 UTC

Re: Fonts fail to print after successive print runs that work

No problem, I didn't really do much, but if you do get to the bottom
of the problem, could you post your findings and/or what you did to
fix it. It just may help someone else having the same or a similar
issue.

Thanks

Mehdi

On 15 March 2011 21:59, Peter Yandell <pe...@truenorth3dview.com> wrote:
> Hi Mehdi,
>    The thought has crossed my mind that it was something to do with memory
> and garbage collection.
>
> Thanks for your help!
>
> Pete
>
> On 16/03/2011 5:50 AM, mehdi houshmand wrote:
>>
>> Hi Peter,
>>
>> This smells of a memory leak, I've had a few issue myself with tomcat
>> and its funky class-loader. There are several ways you can find out
>> whether it is a memory leak, all of which google will help you with.
>> It was a while back, and I remember it being rather difficult to
>> narrow it down. You'll find Fonts use up a lot of memory, and
>> depending on your FO FOP could use up a substantial amount of memory,
>> so leaks are really not good. That's my tuppence worth anyways,
>> someone else out there may have seen this before.
>>
>> Hope that helps
>>
>> Mehdi
>>
>> On 15 March 2011 21:13, Peter Yandell<pe...@truenorth3dview.com>
>>  wrote:
>>>
>>> Hi Mehdi,
>>>    That's right, each document is different. I also wrote a harness to
>>> continuously print two documents against our QA server. Again the fonts
>>> would disappear somewhere between 30 and 150 times. It does not appear to
>>> be
>>> a simple "print X times and watch it fail" which is making it very
>>> difficult
>>> to resolve.
>>>
>>> Best regards,
>>>    Pete
>>>
>>> On 15/03/2011 4:09 PM, mehdi houshmand wrote:
>>>>
>>>> Hi Peter,
>>>>
>>>> You say that it can happen anywhere from the 30th document to the
>>>> 150th? Does that suppose each document is different, or does the
>>>> number vary if you print the same document over and over? I.e. is the
>>>> number at which it fails the same over several attempts when printing
>>>> a single document?
>>>>
>>>> Mehdi
>>>>
>>>> On 15 March 2011 02:12, Peter Yandell<pe...@truenorth3dview.com>
>>>>  wrote:
>>>>>
>>>>> Hi All,
>>>>> Background:    I've recently inherited an enterprise level web
>>>>> application
>>>>> that uses FOP for generating PDF and PNG documents. These documents are
>>>>> printed using custom fonts. The output size is A0 (or ~ 4770 x 3370
>>>>> pixels).
>>>>>
>>>>> Problem:    After a variable amount of time some of the fonts 'stop
>>>>> working'. By this I mean that the glyph appearing is a letter 'A' in a
>>>>> box,
>>>>> with the same glyph used for all characters. Please see the two
>>>>> attached
>>>>> images; 'PrintJob-200a-47.png' rendered correctly while
>>>>> 'PrintJob-200a-48.png' stop working.
>>>>>
>>>>> The problem goes away after Tomcat has been restarted. Sometimes the
>>>>> error
>>>>> starts happening after 30 documents have been printed, other times it
>>>>> can
>>>>> be
>>>>> upwards of 150. Once it starts happening then it keeps happening until
>>>>> Tomcat is restarted.
>>>>>
>>>>> Resolutions Attempted:    As I couldn't see any errors in our
>>>>> application
>>>>> logs I turned the FOP logging all the way up to 'ALL'. At no time were
>>>>> there
>>>>> any entries, for a 'failed' print job, that differed from a successful
>>>>> one.
>>>>> There are no WARN, ERROR or FATAL messages appearing in any log file.
>>>>>
>>>>> Searching for font issues seems to only turn up misconfigurations of
>>>>> fonts.
>>>>> All our fonts are configured correctly as the documents do print. It is
>>>>> simply that they are forgotten, lost, etc after some period of time
>>>>> with
>>>>> no
>>>>> errors or warnings recording in the logs
>>>>>
>>>>> Version numbers:
>>>>>    JDK:    1.6.0_20&    1.6.0_24
>>>>>    OS:    Mac OSX 10.6.4&    10.6.6
>>>>>    FOP:    0.95&    1.0
>>>>>    Tomcat: 6.0.24
>>>>>
>>>>> I can extract out the relevant FOP log entries for both a successful
>>>>> and
>>>>> failed run if requested. I haven't attached them as they are quite
>>>>> large.
>>>>>
>>>>> My request for help comes in several parts:
>>>>> 1.    Has anyone else experienced this, and if so what did you do to
>>>>> resolve
>>>>> it?
>>>>> 2.    Does anyone have any thoughts where else to look? I don't know
>>>>> where
>>>>> else to look right now.
>>>>>
>>>>> The web application is a commercial so I may be limited in what I can
>>>>> share.
>>>>> If anything else is required please ask and I will do my best to
>>>>> comply.
>>>>>
>>>>> Many thanks in advance,
>>>>>    Pete
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>