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 102417 - memory leak in HintsUI
Summary: memory leak in HintsUI
Status: RESOLVED DUPLICATE of bug 100753
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 98405
  Show dependency tree
 
Reported: 2007-04-25 01:51 UTC by Samaresh Panda
Modified: 2007-11-05 13:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image1 (113.39 KB, application/octet-stream)
2007-04-25 02:03 UTC, Samaresh Panda
Details
image2 (101.06 KB, application/octet-stream)
2007-04-25 02:03 UTC, Samaresh Panda
Details
image3 (97.16 KB, application/octet-stream)
2007-04-25 02:04 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2007-04-25 01:51:10 UTC
While investigating http://www.netbeans.org/issues/show_bug.cgi?id=98405 I can
see that HintsUI keeps a strong reference to the UI.

This leads to memory leak, while opening/closing of schema files.
Comment 1 Samaresh Panda 2007-04-25 02:02:08 UTC
Additional Information:
EntPack introduces a multi-view schema editor, which in turn brings in
SchemaModel and AXIModel. Opening/Closing a schema should discard these models
and the multiview elements as well.

I have a heap dump but the size it about 50MB, hence I'm attaching these screen
shots of path to GCs for some items.
Comment 2 Samaresh Panda 2007-04-25 02:03:07 UTC
Created attachment 41593 [details]
image1
Comment 3 Samaresh Panda 2007-04-25 02:03:42 UTC
Created attachment 41594 [details]
image2
Comment 4 Samaresh Panda 2007-04-25 02:04:14 UTC
Created attachment 41595 [details]
image3
Comment 5 Jan Lahoda 2007-04-25 11:07:34 UTC
Ok, I was wrong, sorry. The patches so far fix holding of the "last" editor in
java/source and editor/hints, but not when working with multiview editors :-(.
Anyway, at most one component is held (->P3), not necessarily the last one
(->P2). I will try to do something about this for M10 - I would prefer one place
that would do the magic making the listeners simpler than creating
WeakReferences everywhere. Comments?
Comment 6 Samaresh Panda 2007-04-26 20:02:46 UTC
I'm not sure why this was made a P2. IMO, this should be fixed for Preview as
this impacts a high priority issue 98405.
Comment 7 _ rkubacki 2007-04-26 21:03:53 UTC
This should be fixed together with #100752 (you file duplicate of this recently
too). What build are you using (every good bug report should contain this
information)?

*** This issue has been marked as a duplicate of 100753 ***