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 54043 - IDE hangs up when expanding a folder containing some hundreds of files.
Summary: IDE hangs up when expanding a folder containing some hundreds of files.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-01-26 21:38 UTC by ayermolayev
Modified: 2006-03-24 10:31 UTC (History)
1 user (show)

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 ayermolayev 2005-01-26 21:38:36 UTC
I am unable to expand a folder with more than 
200 files in the Files or Versions view.
NetBeans 4.0 either hangs up forever or shows 
the error message in the status bar "Exception 
occurred in Request Processor" after which the 
folder is treated as if it is empty and there is 
no way to see anything under it.
Comment 1 ayermolayev 2005-01-26 21:39:16 UTC
Here is the stack from the log file:

*********** Exception occurred ************ at 2:47 PM on Jan 26, 
2005
Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at 
org.netbeans.modules.clazz.SourceElementImpl.initializeData
(SourceElementImpl.java:108)
	at 
org.netbeans.modules.clazz.SourceElementImpl.attachedToElement
(SourceElementImpl.java:91)
	at org.openide.src.Element.<init>(Element.java:54)
	at org.openide.src.SourceElement.<init>
(SourceElement.java:49)
	at org.netbeans.modules.clazz.ClassDataObject.getSource
(ClassDataObject.java:174)
	at org.netbeans.modules.clazz.ClassDataNode.initialize
(ClassDataNode.java:96)
	at org.netbeans.modules.clazz.ClassDataNode.<init>
(ClassDataNode.java:76)
	at org.netbeans.modules.clazz.ClassDataNode.<init>
(ClassDataNode.java:71)
	at org.netbeans.modules.clazz.CompiledDataNode.<init>
(CompiledDataNode.java:57)
	at 
org.netbeans.modules.clazz.CompiledDataObject.createNodeDelegate
(CompiledDataObject.java:107)
	at org.openide.loaders.DataObject$1.run(DataObject.java:249)
	at org.openide.util.Mutex.readAccess(Mutex.java:246)
	at org.openide.loaders.DataObject.getNodeDelegate
(DataObject.java:245)
	at org.openide.loaders.DataObject.getClonedNodeDelegate
(DataObject.java:270)
	at org.openide.loaders.FolderChildren.createNodes
(FolderChildren.java:143)
	at org.openide.nodes.Children$Keys$KE.nodes
(Children.java:2028)
	at org.openide.nodes.ChildrenArray.nodesFor
(ChildrenArray.java:112)
	at org.openide.nodes.Children$Info.nodes(Children.java:1125)
	at org.openide.nodes.Children.updateAdd(Children.java:933)
	at org.openide.nodes.Children.setEntries(Children.java:720)
	at org.openide.nodes.Children$5.run(Children.java:1919)
	at org.openide.util.Mutex.postRequest(Mutex.java:987)
	at org.openide.util.Mutex.postWriteRequest(Mutex.java:438)
	at org.openide.nodes.Children$Keys.applyKeys
(Children.java:1927)
	at org.openide.nodes.Children$Keys.setKeys
(Children.java:1886)
	at org.openide.loaders.FolderChildren.access$500
(FolderChildren.java:33)
	at 
org.openide.loaders.FolderChildren$ChildrenRefreshRunnable.run
(FolderChildren.java:251)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Comment 2 ayermolayev 2005-01-26 21:43:44 UTC
When a folder contains less than some 200 files but more than 100 
the expand operation takes about 5-10 minutes!

The computer has 1GB of physical memory and dual 3GHz Pentium 4 
processors.
Comment 3 Martin Matula 2005-02-01 16:16:47 UTC
Dan, please look at it.
Comment 4 Daniel Prusa 2005-02-01 16:24:58 UTC
Performance has been already improved and the NPE fixed.
Comment 5 _ rkubacki 2005-02-04 16:07:43 UTC
it would be better to mark as a dup of a particular bug that was
fixed. anyway I recall that the behaiour of clazz DO was improved
during 4.1
Comment 6 Jiri Prox 2005-07-27 14:07:16 UTC
verified