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 190758 - Editor UI frequently freezes when running o.n.m.editor.errorstripe.AnnotationViewDataImpl.computeTotalStatus(...)
Summary: Editor UI frequently freezes when running o.n.m.editor.errorstripe.Annotation...
Status: RESOLVED DUPLICATE of bug 188843
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: PC Windows XP x64
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 22:41 UTC by wrprice
Modified: 2010-10-05 13:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (18.17 KB, text/plain)
2010-10-04 22:41 UTC, wrprice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wrprice 2010-10-04 22:41:18 UTC
Created attachment 102256 [details]
thread dump

My editor has been locking up quite frequently lately, completely unresponsive to user input and providing no visual feedback as to what's going on.  While it has been occurring frequently, I haven't been able to narrow down the exact user action that causes it.

I've been doing heavy Java refactoring (manually, not using the built-in tools) and saving quite frequently.  Sometimes saving is enough, or reflowing the code, or moving a few lines, or simply deleting "throws Exception" from a method signature.  I suspect something relating to scanning, but...

I have to kill and restart the IDE (and lose my unsaved work) to get back to business; on occasion I have taken a thread dump and I believe every time I see the same method in the AWT-EventQueue-1 thread (see attached thread dump for a snapshot of all threads):

"AWT-EventQueue-1" prio=6 tid=0x0000000034008000 nid=0x30a0 runnable [0x000000003adbe000]
   java.lang.Thread.State: RUNNABLE
	at org.netbeans.editor.Annotations$LineAnnotations.getLine(Annotations.java:1016)
	- locked <0x000000002f04b3b0> (a java.util.LinkedList)
	at org.netbeans.editor.Annotations.getNextLineWithAnnotation(Annotations.java:499)
	- locked <0x000000001811b858> (a java.util.ArrayList)
	at org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.computeTotalStatus(AnnotationViewDataImpl.java:460)
	at org.netbeans.modules.editor.errorstripe.AnnotationView.drawGlobalStatus(AnnotationView.java:268)
	at org.netbeans.modules.editor.errorstripe.AnnotationView.paintComponent(AnnotationView.java:348)
	at javax.swing.JComponent.paint(JComponent.java:1029)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
Comment 1 wrprice 2010-10-04 22:44:22 UTC
I forgot to mention, when this occurs javaw.exe is using >50% CPU on this dual-core machine.
Comment 2 Jan Lahoda 2010-10-05 13:49:04 UTC
Hi,
   is there any chance you could try to reproduce on a daily build? I have added some debugging logging there.

Thanks.

*** This bug has been marked as a duplicate of bug 188843 ***