Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370873 - Batik-based SVG integration must stop processing and dispose objects
Summary: Batik-based SVG integration must stop processing and dispose objects
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 14:14 EST by Andi Bur CLA
Modified: 2021-08-19 11:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Bur CLA 2012-02-07 14:14:39 EST
The processing thread created by a Batik JSVGCanvas must be stopped and the widget must be disposed.
Batik BridgeContext objects should be disposed to help cleaning-up the heap.
Comment 1 Andi Bur CLA 2012-02-07 17:58:39 EST
Stop batik's processing thread and dispose any attached BridgeContext objects. The latter implements finalize() and is therefore subject to a Finalizer. Hence the BridgeContext objects are not garbage collected immediately.
Comment 2 Andi Bur CLA 2012-02-23 07:51:07 EST
Migration:
Switch from
  org.eclipse.scout.svg.client.SVGUtility.readSVGDocument(InputStream, boolean)
either to (if no CSS, text size and and bounding box operations are required)
  org.eclipse.scout.svg.client.SVGUtility.readSVGDocument(InputStream)
or to (for performing CSS, text size and and bounding box operations)
  org.eclipse.scout.svg.client.SVGUtility.readSVGDocumentForGraphicalModification(InputStream)
The latter method returns a BridgeContext that must be disposed (BridgeContext.dispose()) when it is
not required anymore. The actual SVG document is referenced by the bridge context as well:
  (SVGDocument) bridgeContext.getDocument()
Comment 3 Matthias Zimmermann CLA 2012-07-09 06:49:34 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)