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 45970 - After deleting some lines, NB gets very unresponsive
Summary: After deleting some lines, NB gets very unresponsive
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-09 08:13 UTC by tboerkel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dumps. (67.01 KB, text/plain)
2004-07-09 08:14 UTC, tboerkel
Details
New ThreadDump. (27.26 KB, text/plain)
2004-08-10 13:42 UTC, tboerkel
Details
Another ThreadDump. (36.58 KB, text/plain)
2004-08-12 13:42 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2004-07-09 08:13:41 UTC
I used "Find Usages" to find some (>500) method 
calls in our >1700 sources and then navigated to 
the places in the code by clicking on the nodes 
of the "Find Usages" result tree.
I always delete the corresponding line. After 
doing so for a while, especially when working 
through multiple occurences in large files (>2000 
lines), NB stars consuming 100% CPU and becomes 
unresponsive. If I leave it alone for a while, it 
goes back to 0% CPU. But this behavior is 
unacceptable.
I already switched off background compilation 
(set delay to 0) and code folding to rule those 
out.
I also have plenty of heap (300 MB, 150 MB used) 
and I tried default GC and concurrent/parallel GC.
Using current q-build with JDK 1.4.2_05.
The machine is an AMD XP2000+ with 1 GB RAM.
Attaching one text file with 2 thread dumps from 
the situation.
Comment 1 tboerkel 2004-07-09 08:14:12 UTC
Created attachment 16171 [details]
Thread dumps.
Comment 2 Dusan Balek 2004-07-12 07:56:10 UTC
According to the attached thread dumps, it seems to be a problem of
javacore. Reassigning for further evaluation.
Comment 3 Tomas Hurka 2004-07-12 10:47:40 UTC
Should be fixed in trunk. Redundant invocation of refreshAnnotations() fixed.
Checking in JavaEditor.java;
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v  <--  JavaEditor.java
new revision: 1.164; previous revision: 1.163
done

Please reopen with additional thread-dump(s) if you can still reproduce it.
Comment 4 tboerkel 2004-08-10 13:41:58 UTC
Apparantly, it still happens while editing large source files in NB
20040729. Attaching new ThreadDump.
Comment 5 tboerkel 2004-08-10 13:42:25 UTC
Created attachment 16724 [details]
New ThreadDump.
Comment 6 tboerkel 2004-08-12 13:42:16 UTC
Created attachment 16774 [details]
Another ThreadDump.
Comment 7 Jan Pokorsky 2004-08-12 15:00:12 UTC
Please try the latest dev build. There is a lot of running parser
instances in your thread dumps. This was fixed as issue #46688.
Comment 8 Quality Engineering 2007-09-20 11:51:31 UTC
Reorganization of java component