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 37606 - Shown In Projects Action blocks AWT
Summary: Shown In Projects Action blocks AWT
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2003-11-28 17:37 UTC by Jaroslav Tulach
Modified: 2003-12-19 08:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-11-28 17:37:20 UTC
"AWT-EventQueue-1" prio=1 tid=0x0819ce28
nid=0x46e6 in Object.wait() [50406000..504068b8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x4479d700> (a
org.netbeans.modules.java.parser.ParsingSupport$Processor$T)
        at java.lang.Object.wait(Object.java:429)
        at
org.openide.util.Task.waitFinished(Task.java:85)
        - locked <0x4479d700> (a
org.netbeans.modules.java.parser.ParsingSupport$Processor$T)
        at
org.openide.src.nodes.SourceChildren.findChild(SourceChildren.java:209)
        at
org.openide.nodes.FilterNode$Children.findChild(FilterNode.java:1103)
        at
org.openide.nodes.FilterNode$Children.findChild(FilterNode.java:1103)
        at
org.openide.nodes.FilterNode$Children.findChild(FilterNode.java:1103)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findDataObject(CurrentProjectNode.java:557)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findClosestNode(CurrentProjectNode.java:488)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findClosestNode(CurrentProjectNode.java:501)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findClosestNode(CurrentProjectNode.java:501)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.containsNode(CurrentProjectNode.java:572)
        at
org.netbeans.modules.projects.SelectInProjectsTabAction.enable(SelectInProjectsTabAction.java:43)
        at
org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:121)
        at
org.openide.awt.Actions$MenuBridge.updateState(Actions.java:407)
        at
org.openide.awt.Actions.connect(Actions.java:104)
        at
org.openide.awt.Actions.connect(Actions.java:91)
        at
org.openide.awt.Actions$MenuItem.<init>(Actions.java:669)
        at
org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:33)
        at
org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:41)
        at
org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:443)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:704)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.awt.AWTTask.run(AWTTask.java:29)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 Jaroslav Tulach 2003-11-28 17:39:27 UTC
After startup, the system got to unusable state for few seconds (>5s)
because it in my opinion tried to calculate state of show in projects
action. Maybe making it enabled all the time would be a simple yet
effective solution.
Comment 2 Dusan Balek 2003-12-17 07:44:19 UTC
Performance should be notably improved by

/cvs/projects/src/org/netbeans/modules/projects/CurrentProjectNode.java,v
revision 1.18
date: 2003/12/03 13:27:43;  author: dbalek;  state: Exp;  lines: +18 -5
selectNode(...) performance improvements.
See issue #37606.
Comment 3 Jaroslav Tulach 2003-12-19 08:08:50 UTC
I have not seen these problems in recent builds.