https://issues.apache.org/bugzilla/show_bug.cgi?id=49621
Summary: File Descriptor leak in
FOUserAgent.imageSessionContext
Product: Fop
Version: 0.95
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: major
Priority: P2
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
FOUserAgent holds an element “imageSessionContext” which holds SoftReferences
to Source/ImageSource elements via AbstractImageSessionContext.sessionSources.
The memory for these items is cleaned correctly when we un-reference the
FOUserAgent object, however the Source-items still hold a file-handle via the
InputStream that is included in StreamSource/ImageStreamSource object. The
effect is that I cannot remove intermediate image files that are used during
PDF generation right after generation is done.
So file handles are kept open this way and are only given up, when the
SoftReference is collected internally. So this can easily cause “out of handle”
type of errors if a lot of memory is available and thus SoftReferences are not
collected for a long time.
Furthermore it hinders cleanup of image files after report generation, i.e.
when they are created specifically for the report and should be removed
afterwards. This is especially true on platforms which lock open files and do
not allow cleanup of those files, e.g. Windows.
See also discussion at
http://www.mail-archive.com/fop-users%40xmlgraphics.apache.org/msg15411.html
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.