[ 
https://issues.apache.org/jira/browse/PDFBOX-3334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266216#comment-15266216
 ] 

Juraj Lonc commented on PDFBOX-3334:
------------------------------------

I have double checked it. None of my classes (related to pdfbox) remains in 
memory, so my classes/objectes do not keep reference to those pdbox/ttf objects.

I gave incomplete description, sorry fot that. I don't just open and render 
that file. I also use extended PDFTextStripper.


My theory (according to data from VisualVM) is this:
TrueTypeFont contains HashMap "tables".
This HashMap contains TTFTable objects.
These objects has reference back to TrueTypeFont.

This is the loop that prevents GC to dispose those objects. They all reference 
to each other.



> TrueType fonts memory leak
> --------------------------
>
>                 Key: PDFBOX-3334
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3334
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.1
>            Reporter: Juraj Lonc
>         Attachments: screenshot-1.png, 
> skusenosti-z-implementacie-a-prevadzky-systemu_roman-pavco.pdf
>
>
> I open this PDF document, read all pages and render to images, close document.
> After running GC there are still TrueTypeFont objects in memory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to