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 188767 - [69cat] LowPerformance took 3033 ms.
Summary: [69cat] LowPerformance took 3033 ms.
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-07-19 16:51 UTC by misterm
Modified: 2015-07-10 01:17 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168168


Attachments
nps snapshot (30.03 KB, application/nps)
2010-07-19 16:51 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-07-19 16:51:49 UTC
Build: NetBeans IDE Dev (Build 100715-b2df3ffac44b)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows 7

User Comments:
GUEST: opening the options menu

GUEST: can't add WTK 2.5.2 in tools-->Java platform. when I selected the fold where wtk is installed, "Next" button can't change to enabled state.



Maximum slowness yet reported was 15297 ms, average is 6577
Comment 1 misterm 2010-07-19 16:51:57 UTC
Created attachment 100916 [details]
nps snapshot
Comment 2 Denis Anisimov 2011-10-27 09:53:46 UTC
The problem method here is org.netbeans.modules.extbrowser.FirefoxBrowser.isHidden
it delegates call to the call of org.netbeans.modules.extbrowser.NbDdeBrowserImpl.getBrowserPath which is native.
The latter call load native library at least.

I don't see for now easy way to fix this issue. 
The method "isHidden" is called via reflection. It's value is used in the layer.xml.
So probably the whole infrastructure should be rewritten to call methods mentioned in the layer.xml in the separate thread.
Comment 3 Jan Stola 2015-07-09 14:16:45 UTC
HtmlBrowser.FactoryEditor.getTags() is no longer called in event-dispatch thread when the Options dialog is opened.

Modified file: https://hg.netbeans.org/web-main/rev/d1c9d252a54a
Comment 4 Quality Engineering 2015-07-10 01:17:11 UTC
Integrated into 'main-silver', will be available in build *201507100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d1c9d252a54a
User: Jan Stola <jstola@netbeans.org>
Log: #188767: HtmlBrowser.FactoryEditor.getTags() should not block event-dispatch thread.