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 184345 - IDE hangs for some time during the classpath scanning
Summary: IDE hangs for some time during the classpath scanning
Status: CLOSED DUPLICATE of bug 184680
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-04-16 10:28 UTC by Alexandr Scherbatiy
Modified: 2011-05-25 11:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168120


Attachments
nps snapshot (228.01 KB, application/nps)
2010-04-16 10:28 UTC, Alexandr Scherbatiy
Details
Thread Dump (11.95 KB, text/plain)
2010-04-16 10:30 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-04-16 10:28:30 UTC
This issue was reported manually by sunflower.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201004140201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP
Maximum slowness yet reported was 35083 ms, average is 35083
Comment 1 Alexandr Scherbatiy 2010-04-16 10:28:50 UTC
Created attachment 97514 [details]
nps snapshot
Comment 2 Alexandr Scherbatiy 2010-04-16 10:30:05 UTC
Blocks the NB JavaFX plugin
Comment 3 Alexandr Scherbatiy 2010-04-16 10:30:55 UTC
Created attachment 97515 [details]
Thread Dump
Comment 4 Alexandr Scherbatiy 2010-04-16 10:31:21 UTC
"AWT-EventQueue-1" prio=6 tid=0x03f4a400 nid=0xf04 runnable [0x0548e000]
   java.lang.Thread.State: RUNNABLE
	at java.util.zip.Deflater.deflateBytes(Native Method)
	at java.util.zip.Deflater.deflate(Deflater.java:290)
	- locked <0x14dcfdf0> (a java.util.zip.Deflater)
	at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:159)
	at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
	at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
	- locked <0x14ddfe28> (a java.util.zip.GZIPOutputStream)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
	at java.io.ObjectOutputStream$BlockDataOutputStream.write(ObjectOutputStream.java:1802)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1495)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at java.util.TreeMap.writeObject(TreeMap.java:2252)
	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at org.netbeans.core.ui.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:225)
	at org.netbeans.core.ui.sampler.SamplesOutputStream$Sample.access$000(SamplesOutputStream.java:193)
	at org.netbeans.core.ui.sampler.SamplesOutputStream.close(SamplesOutputStream.java:168)
	at org.netbeans.core.ui.sampler.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:306)
	- locked <0x14a6ff30> (a org.netbeans.core.ui.sampler.SelfSamplerAction$Controller)
	at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:162)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:135)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 5 Vitezslav Stejskal 2010-04-19 07:04:34 UTC
org.netbeans.core.ui.sampler.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:306)
Comment 6 Tomas Pavek 2010-04-19 15:56:40 UTC
See http://netbeans.org/bugzilla/show_bug.cgi?id=184186#c17

Jardo, is this same thing as bug 184186, or do you want to do some specific fix e.g. in TimableEventQueue?
Comment 7 Winston Prakash 2010-04-20 20:58:49 UTC
Just a note, every time such slowness is detected, I noticed in the status bar it says 'Scanning Project".

Why "Scanning Project" occurs every time I do some thing in the editor?
Comment 8 Alexandr Scherbatiy 2010-04-23 07:10:24 UTC
See also the Slowness detection report
http://statistics.netbeans.org/analytics/exception.do?id=375209
Comment 9 Tomas Pavek 2010-04-23 13:47:20 UTC
The stacktrace above in this issue shows blocked event queue because of the self-sampler saving a snapshot taken after detecting a slowness. Ideally that should be done out of the AWT thread.

> See also the Slowness detection report
> http://statistics.netbeans.org/analytics/exception.do?id=375209

That is quite different, fx editor waiting on some lock.
Comment 10 Jaroslav Tulach 2010-04-23 13:51:10 UTC

*** This bug has been marked as a duplicate of bug 184680 ***