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 72766 - [pmd] Scrolling with keyboard in explorer is eats up 100% CPU and freezes the IDE
Summary: [pmd] Scrolling with keyboard in explorer is eats up 100% CPU and freezes the...
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: PMD (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-02-17 11:13 UTC by Martin Krauskopf
Modified: 2007-12-07 16:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
pmdInAction.txt (25.93 KB, text/plain)
2006-02-17 11:24 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2006-02-17 11:13:55 UTC
1.6.0-rc-b71, Slackware 10.2 (probably does not matter)

I have e.g. openeded apisupport/project -> package
org.netbeans.modules.apisupport.project.ui.customizer. Hold key-down and IDE is
frozen, 100% CPU is eaten and you have to wait, sometime few, cca 1-7, second on
my machines (D505).

In 5.0 the same is quite fast.
Comment 1 Martin Krauskopf 2006-02-17 11:21:16 UTC
Radime it is due to that the PMD autoscanning feature is on. Sorry I have it
still turned on :) Probably performance team does not care too much about this
case, removing. I'll attach a thread dump for you.
Comment 2 Martin Krauskopf 2006-02-17 11:24:33 UTC
Created attachment 28915 [details]
pmdInAction.txt
Comment 3 _ rkubacki 2006-02-27 08:36:56 UTC
This is a code I inherited and never actualy used too much. 

I need to rewrite the parsing queue. Probably to use RP rather than own tread
and post the jobs here.
Comment 4 Martin Krauskopf 2006-02-27 08:52:11 UTC
> I need to rewrite the parsing queue. Probably to use RP rather than own tread
> and post the jobs here.

I do not understand why and what you want to do/fix but I thought that the fix
should be that you do not start PMD at all when the active top component is not
editor - we talk about auto-scanning (Enable Scan = true in Options).
Why would you want to scan a java file under selected node in the explorer when
the result of pmd-scanning action will not appear anywhere (neither in OW
neither in Editor TC).

I suppose, just do not run the PMD action in those cases. When:

- (autoScanning == true && activeTC != editor) --> do not run PMD action, since
  it does not make any sense.

Only when user invokes PMD explicitely (shortcut or Tools | Run PMD) run PMD
action in all cases no matter what activeTC is.

Should be probably easy fix. And also important, since due to this bug I was
forced to switch this nice autoScanning options off.


Comment 5 _ rkubacki 2006-03-21 09:18:35 UTC
fixed in pmd1.5.1 that's already released.