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 179519 - LowPerformance took 479905 ms. (freeze in WordMatchAction)
Summary: LowPerformance took 479905 ms. (freeze in WordMatchAction)
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-01-14 14:17 UTC by Jesse Glick
Modified: 2010-01-24 08:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164332


Attachments
nps snapshot (256.00 KB, application/nps)
2010-01-14 14:17 UTC, Jesse Glick
Details
Thread dumps of hang (3.87 KB, application/x-gzip)
2010-01-14 14:19 UTC, Jesse Glick
Details
nps snapshot (256.00 KB, application/nps)
2010-01-17 11:50 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-01-14 14:17:03 UTC
Build: NetBeans IDE Dev (Build 100114-5210d70aa322)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Linux, 2.6.31-17-generic, i386
Maximum slowness yet reported was 479905 ms, average is 479905
Comment 1 Jesse Glick 2010-01-14 14:17:07 UTC
Created attachment 93300 [details]
nps snapshot
Comment 2 Jesse Glick 2010-01-14 14:18:49 UTC
100114-5210d70aa322, JDK 6, Ubuntu. I guess I must have typed Ctrl-K or similar; the IDE suddenly froze with 100% CPU and does not recover.

Was able to restore my session only using jrunscriptin.kenai.com and Thread.kill on AWT-EventQueue-1.
Comment 3 Jesse Glick 2010-01-14 14:19:16 UTC
Created attachment 93301 [details]
Thread dumps of hang
Comment 4 Vitezslav Stejskal 2010-01-15 03:53:47 UTC
I see. It happens when you use Ctrl+K and have some documents cloned in two or more editors. I'll fix it. In the mean time please refrain from cloning documents and the action should work fine.
Comment 5 Vitezslav Stejskal 2010-01-15 04:16:19 UTC
http://hg.netbeans.org/jet-main/rev/d29aa51d3459
Comment 6 Jesse Glick 2010-01-15 09:04:35 UTC
(In reply to comment #4)
> It happens when you use Ctrl+K and have some documents cloned in two or
> more editors.

I never clone windows and I'm pretty sure this was not the case when I ran into this bug. (As I mentioned, I managed to recover the IDE by killing the EQ thread, and I would have noticed and reported such an unusual situation as a duplicated window if that had happened somehow by accident.)
Comment 7 Jesse Glick 2010-01-15 18:41:37 UTC
Haven't tried with your patch yet, but I just got this freeze for the third time when trying to get word completion; lost some work the second time.
Comment 8 Jesse Glick 2010-01-17 11:50:51 UTC
Created attachment 93355 [details]
nps snapshot

Trying to complete a symbol.
Comment 9 Jesse Glick 2010-01-17 13:30:36 UTC
BTW in contrib #01d54f87da5f I am adding a feature to the autosave module to interrupt the event dispatch thread if it freezes for too long. Should help avoid data loss from actions which go into endless loops in EQ.
Comment 10 Jesse Glick 2010-01-17 16:09:52 UTC
(In reply to comment #9)
> in contrib #01d54f87da5f I am adding a feature

Reverted in favor of bug #179597.
Comment 11 Vitezslav Stejskal 2010-01-18 07:24:41 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > It happens when you use Ctrl+K and have some documents cloned in two or
> > more editors.
> 
> I never clone windows [...]

Ok, maybe there are several ways how to reproduce this bug. Cloning windows was the way that reliably reproduced it for me. I believe that d29aa51d3459 fixes the problem. Unfortunately it does not seem to be in main-golden yet.
Comment 12 Jesse Glick 2010-01-18 10:31:55 UTC
(In reply to comment #11)
> Unfortunately it does not seem to be in main-golden yet.

Nor in main-silver; jet-main has been broken for days. Ask RE for emergency assistance.
Comment 13 Vitezslav Stejskal 2010-01-19 02:02:26 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Unfortunately it does not seem to be in main-golden yet.
> 
> Nor in main-silver; jet-main has been broken for days. Ask RE for emergency
> assistance.

jet-main is fine, but bertram.netbeans.org has recently been down too often which affected builds and fixes propagation.
Comment 14 Quality Engineering 2010-01-24 08:39:38 UTC
Integrated into 'main-golden', will be available in build *201001240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d29aa51d3459
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #179519: EditorRegistry.componentList may contain editors that visualize the same document (eg. when the document is cloned to multiple editors), but getNextDoc has to operate only on the documents