This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 86250 - MemoryLeak in schema editor
Summary: MemoryLeak in schema editor
Status: VERIFIED DUPLICATE of bug 98405
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: pnarayan
URL:
Keywords:
Depends on: 86249
Blocks:
  Show dependency tree
 
Reported: 2006-09-30 15:58 UTC by Chris Webster
Modified: 2007-06-22 12:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2006-09-30 15:58:55 UTC
The schema editor cannot currently be opened and closed (after switching between
multi-views without causing a memory leak). 

The following areas are covered by this bug:
* General opening, closing, and interaction with the columns view and Navigator.
Nathan.
Comment 1 Chris Webster 2006-09-30 16:40:30 UTC
Changed GoToAction to not cache the lookup, this prevents the actions which are
singletons from holding on to the lookup of the last open top component and
causing the top component to not be garbaged collected until the next time the
action is displayed. 

http://xml.netbeans.org/source/browse/xml/xamui/src/org/netbeans/modules/xml/xam/ui/actions/GoToAction.java?r1=1.1.2.6&r2=1.1.2.6.12.1
Comment 2 Nathan Fiedler 2006-10-04 19:24:04 UTC
SchemaEditorSupport was not freeing the references to the Swing document and
SchemaModel held by the undo manager. Modified notifyClosed() to release the
document and both Schema and AXIOM models.

Checked in to release55_dev branch.

schema/core/src/org/netbeans/modules/xml/schema/core/SchemaEditorSupport.java;
new revision: 1.1.2.26.2.2; previous revision: 1.1.2.26.2.1

Will check in to release55 branch after peer review.
Comment 3 Chris Webster 2006-10-04 19:47:22 UTC
The diffs look isolated and reasonable. 
Comment 4 Nathan Fiedler 2006-10-04 22:51:16 UTC
Merged both GoToAction and SchemaEditorSupport changes to release55 branch.
Comment 5 Mikhail Matveev 2007-06-21 14:38:10 UTC
Reopening the issue, since I observed same effect in last M10 build.
Comment 6 Samaresh Panda 2007-06-21 18:16:09 UTC
Mikhail, how is this bug different from issue 98405? If it is different, please tell me the exact steps to reproduce the
same.
Comment 7 Samaresh Panda 2007-06-21 20:05:08 UTC

*** This issue has been marked as a duplicate of 98405 ***
Comment 8 Mikhail Matveev 2007-06-22 12:14:55 UTC
No actual difference, you are right.