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 154067 - ide freezes in Netbeans 6.5
Summary: ide freezes in Netbeans 6.5
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-11-28 09:31 UTC by gregkotsaftis
Modified: 2009-04-17 15:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
freeze #1, first dump (15.90 KB, text/plain)
2008-11-28 18:29 UTC, gregkotsaftis
Details
freeze #1, second dump (15.90 KB, text/plain)
2008-11-28 18:30 UTC, gregkotsaftis
Details
dump during netbeans loading (15.15 KB, text/plain)
2008-12-09 19:02 UTC, gregkotsaftis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gregkotsaftis 2008-11-28 09:31:05 UTC
Hi,

The new Netbeans v6.5 introduced a very strange bug. The ide freezes from time to time for about 10-30 sec. Sometimes it
freezes while parsing the code, sometimes while clicking in the menu but most of the time when I make a change in the
currently opened java file. I use jdk1.6.0_u10. The same happens in another PC of mine. Hardware details:

First PC
Intel Core 2 @ 1.8 GHz with 4GB ram, win xp pro sp2

Second PC
AMD Athlon64 X2 4800+ with 2GB ram, win xp pro sp2

The task manager shows no activity when the ide freezes and the hard disk is idle also.
I have been a long time user of Netbeans, since v3.4 and would hate to revert back to v6.1
Please let me now how I can help you with this issue.

Greg--
Comment 1 Peter Pis 2008-11-28 09:42:42 UTC
Thanks for the report.

Could you please attach thread dump while running into this?
http://wiki.netbeans.org/GenerateThreadDump
Comment 2 gregkotsaftis 2008-11-28 18:29:17 UTC
Created attachment 74287 [details]
freeze #1, first dump
Comment 3 gregkotsaftis 2008-11-28 18:30:18 UTC
Created attachment 74288 [details]
freeze #1, second dump
Comment 4 gregkotsaftis 2008-11-28 18:32:49 UTC
I am attaching 2 dumps from a single freeze. The "second" dump was taken 15 seconds after the "first".
Comment 5 Peter Pis 2008-11-28 22:01:37 UTC
Reassigning to editor for further evaluation.
Comment 6 gregkotsaftis 2008-12-06 05:57:48 UTC
Maybe useful. It seems the ide almost always freezes whenever it checks to see if some var is declared or if my code is
valid. Is there some way to disable syntax checking altogether, until compile time? Please let me know so I can
investigate further.
Comment 7 gregkotsaftis 2008-12-09 19:02:36 UTC
Created attachment 74757 [details]
dump during netbeans loading
Comment 8 gregkotsaftis 2009-01-03 06:04:37 UTC
Today I discovered another "side effect" of this issue. It happened when I copied-pasted a large piece of code that was
wrong (needed includes and variable renames mostly). I was browsing the code and hitting Alt+Shift+I to include the
headers. When I finished (it took some time because of the freezes), I found out that most imports were corrupted. For
example: instead of "import javax.swing.table.DefaultTableModel;" I got something like "import
javax.swing.table.DefaultTabDefaultTableModel;", or instead of "import javax.swing.JFrame;" I got "imimport
javax.swing.JFrame;"
Comment 9 Jan Jancura 2009-02-18 14:44:29 UTC
I can not reproduce this issue. Is the project you are working on public? How big it is? Are there some other conditions
(like Tasklist View opened...). Can you describe some exact how to reproduce steps?
Comment 10 gregkotsaftis 2009-02-18 17:41:26 UTC
This issue occurred on every project we have (commercial applications). Nothing special about them or the IDE
configuration. The only common ground was the lots of errors that were reported by the editor from e.g. a new method
that was pasted from another file and needed some editing to make it right.
Recently, after I installed the latest updates for the IDE, it seems that the problem is no more. Though I still have to
double check it to be sure. Maybe this was related with another editor's issue that got fixed.
If you could point me to the complete changelog for the editor since the initial launch of NB 6.5, perhaps I could help...
Comment 11 Jan Jancura 2009-02-20 12:16:06 UTC
We do non have any special list of all changes, as far as I know. But you can use mercurial "hg log". But there are so
many changes since 6.5...
Anyway, good information is that its not reproducible on trunk. Thats great. Feel free to update this issue if you will
be able to reproduce it on trunk, please.
Comment 12 gregkotsaftis 2009-03-25 09:39:21 UTC
Hi,

I think it is safe to say you can close this issue.
It seems that I cannot reproduce it anymore.

Keep up the good work.

Regards
Greg--
Comment 13 pribyl 2009-04-17 15:25:55 UTC
Thanks a lot for the effort you spent with this issue.

I am closing it - as you write it works now. If the problem appears again, feel free to reopen.