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 "Philipp Schneider (JIRA)" <ji...@apache.org> on 2016/06/24 05:18:16 UTC
[jira] [Comment Edited] (FOP-2525) [PATCH] Memory leak present when
using Truetype Collection (.ttc)
[ https://issues.apache.org/jira/browse/FOP-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347729#comment-15347729 ]
Philipp Schneider edited comment on FOP-2525 at 6/24/16 5:17 AM:
-----------------------------------------------------------------
We updated to FOP 2.1 and have the same issue. We are using ttf-Fonts. How long will it take to integrate this patch in trunk or the next release?
was (Author: philipp@philippschneider.at):
We updated to FOP 2.1 and have the same issue. How long will it take to integrate this patch in trunk or the next release?
> [PATCH] Memory leak present when using Truetype Collection (.ttc)
> -----------------------------------------------------------------
>
> Key: FOP-2525
> URL: https://issues.apache.org/jira/browse/FOP-2525
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: At least Mac and Linux, both Oracle VM and OpenJDK
> Reporter: Jeremy Smith
> Priority: Minor
> Attachments: FOP-2525.patch, FOP_patch_heap-usage.png
>
>
> When a TrueType Collection file is used to specify custom fonts, and a long-running FopFactory is used to create FOP instances to process many FO input documents, millions of org.apache.fop.complexscripts.fonts.GlyphPositioningTable$PairValues and org.apache.fop.complexscripts.fonts.GlyphPositioningTable$Values instances get created which are never collected. Thus the heap continues to grow, leading to eventual GC thrashing or crash.
> When the same fonts are used, but extracted from the TTC file, the issue does not occur, and the instances of those classes are collected normally.
> The issue can be seen by repeatedly processing a document with a config.xml which specifies fonts inside of a Truetype Collection file. Attaching VisualVM to such a process will show continuous heap growth and millions of aforementioned instances whose numbers never decrease.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)