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 41789 - Clearing of previous ResultModel is performed in AWT thread
Summary: Clearing of previous ResultModel is performed in AWT thread
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@utilities
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks:
 
Reported: 2004-04-07 13:06 UTC by Antonin Nebuzelsky
Modified: 2006-03-24 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (13.97 KB, text/plain)
2004-04-07 13:10 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2004-04-07 13:06:28 UTC
Each invocation of Find in Files always first
clears the result model created by the previous
Find. This is done in ResultModel.close() called
from ResultView.setModel() as a fix for the memory
leak of issue 40504. See the attached thread dump
for full stack trace. This is necessary but should
be changed not to be done in AWT as it blocks the
IDE for a long time if the result model is large.
Comment 1 Antonin Nebuzelsky 2004-04-07 13:10:02 UTC
Created attachment 14315 [details]
Thread dump
Comment 2 Marian Petras 2004-04-07 13:13:14 UTC
Accepted.
Comment 3 Marian Petras 2004-07-29 10:12:07 UTC
Fixed in the trunk. Bugs #41756 and #41789 were fixed at once.

Modified/added/removed files:
openidex/src/org/openidex/search/SearchGroup.java   (1.10)
utilities/nbproject/project.properties   (1.3)
utilities/src/org/netbeans/modules/search/Bundle.properties   (1.27)
utilities/src/org/netbeans/modules/search/CleanTask.java   (new file)
utilities/src/org/netbeans/modules/search/Manager.java   (new file)
utilities/src/org/netbeans/modules/search/PrintDetailsTask.java   (new file)
utilities/src/org/netbeans/modules/search/RemoveFromSearchAction.java   (1.2)
utilities/src/org/netbeans/modules/search/ResultModel.java   (1.45)
utilities/src/org/netbeans/modules/search/ResultTreeChildren.java   (new file)
utilities/src/org/netbeans/modules/search/ResultView.java   (1.21)
utilities/src/org/netbeans/modules/search/SearchEngine.java  (deleted, last 1.2)
utilities/src/org/netbeans/modules/search/SearchPerformer.java   (1.32)
utilities/src/org/netbeans/modules/search/SearchTask.java   (1.11)
utilities/src/org/netbeans/modules/search/Utils.java   (1.3)
utilities/src/org/netbeans/modules/search/doc-files/manager-state-diagram.png
                                                           (new file)
Comment 4 Antonin Nebuzelsky 2004-07-29 15:17:25 UTC
Verified.