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 124094 - Copy freezes netbeans for a few seconds
Summary: Copy freezes netbeans for a few seconds
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
: 142997 155293 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-16 16:06 UTC by tofarr
Modified: 2017-03-18 18:46 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 tofarr 2007-12-16 16:06:59 UTC
For some reason, the copy command (Ctrl+C) seems to cause netbeans 6 to lock up for a few seconds. I have observed this
behaviour on 2 seperate machines (An older PC running Windows XP with Pentium 4 3 GHz CPU with a 1 Gb of RAM, and a
newer PC Running Windows Vista with a Core 2 DUO E6750 CPU and 2 GHz or RAM). The problem seems to be independant of the
project size.

For example, suppose I create a new project and add a source file containing the following:


package test;

/**
 *
 * @author Tofarr
 */
public class NewClass
{

    public static void main(String[] args)
    {
        String str = "test";
        int x = 10;
        String someLongVariableName = "var";
    }

}


Every time I select some text, and hit Ctrl+C, netbeans locks up for about 3 seconds. As you can imagine, this gets
irritating quite quickly.

PS: I don't know if this is helpful, but I have customised my java code formatting options.
Comment 1 Vitezslav Stejskal 2007-12-19 10:14:02 UTC
Does this happen with other file types too? Try eg plain text files or *.properties. Also, it would be helpful if you
managed to capture a full thread dump when the IDE is frozen. This might be hard to do if the IDE is frozen for only
short periods of time, but please try. Here is how to generate an FTD -
http://wiki.netbeans.info/wiki/view/GenerateThreadDump. Thanks for you help!
Comment 2 tofarr 2008-01-14 10:14:18 UTC
OK. I have looked again and this seems to be windows vista specific (I have only tried this on home basic) - and bizaare
- it happens on any file type I have tried (java,properties,sql,xml...). Bear with me of a second on this one - I know
it sounds implausible, (It did to me, so I repeated the experiment 3 times to be sure.) The freeze happens if windows
media player has not been run since a restart of the vista machine in question.

i.e:

I restart my PC.
Run netbeans.
Copying text from any file type - I get a freeze for approximately 3 seconds - this happens every time I copy text.
Open windows media player in the background.
Copy text from any file type - there are no longer freezes when I copy text.
Close windows media player - there are still no longer freezes when I copy text.

As I said, this sounds far fetched (Which is why I repeated the experiment 3 times.) It sounds more like a problem with
windows vista, than with netbeans (Though netbeans is the only program where I have observed this behaviour), but I
figured I would post this in case it was helpful.
Comment 3 tofarr 2008-01-15 20:43:33 UTC
This may be related to this issue

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5078787

Here is the thread dump requested - sorry it took so long to reply




2008-01-15 19:27:31
Full thread dump Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode):

"Inactive RequestProcessor thread [Was:EditorBracesMatching/null]" daemon prio=2 tid=0x2b8d6000 nid=0x11d4 in
Object.wait() [0x3226f000..0x3226fb00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x077c49c8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x077c49c8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x2b8d5c00 nid=0x11d8 in
Object.wait() [0x3206f000..0x3206fa80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x077c7a48> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x077c7a48> (a java.lang.Object)

^"Inactive RequestProcessor thread [Was:TimedSoftReference/org.openide.util.TimedSoftReference]" Cdaemon prio=2
tid=0x2b8d5400 nid=0x11d0 in Object.wait() [0x31
e6f000..0x31e6fb80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)

C:\Program Files\NetBeans 6.0\bin>      at java.lang.Object.wait(Native Method)
        - waiting on <0x077c49d8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x077c49d8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x299ed000 nid=0x8b4 in
Object.wait() [0x31c6f000..0x31c6fc00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x077c49e8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x077c49e8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:CaretAwareJavaSourceTaskFactory
worker/org.netbeans.api.java.source.support.CaretAwareJavaSourceTaskFactory$ComponentList
ener$1]" daemon prio=2 tid=0x299ec800 nid=0xd2c in Object.wait() [0x31a6f000..0x31a6fc80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21da8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21da8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=6 tid=0x299ec400 nid=0xf7c in
Object.wait() [0x3186f000..0x3186fd00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a442b0> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a442b0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x299ebc00 nid=0x67c in
Object.wait() [0x3166f000..0x3166fd80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21db8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21db8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=6 tid=0x299eb800 nid=0x478 in
Object.wait() [0x3146f000..0x3146fa00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21dc8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21dc8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Flush UI Logs/org.netbeans.modules.uihandler.UIHandler$1WriteOut]" daemon prio=2
tid=0x2b783400 nid=0x7e8 in Object.wait(
) [0x3126f000..0x3126fa80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21dd8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21dd8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x2b782c00 nid=0xa98 in
Object.wait() [0x3106f000..0x3106fb00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a442c0> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a442c0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/org.netbeans.modules.editor.NbEditorUI$1$1]" daemon
prio=2 tid=0x2b782800 nid=0xb38 in Object.wa
it() [0x30e6f000..0x30e6fc00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21de8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21de8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x2b782000 nid=0x29c in
Object.wait() [0x30c6f000..0x30c6fb80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06e3daf8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06e3daf8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:EditorBracesMatching/null]" daemon prio=2 tid=0x2b781c00 nid=0xcf8 in
Object.wait() [0x30a6f000..0x30a6fd00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21df8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21df8> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x2b781800 nid=0x8b8 in
Object.wait() [0x2c90f000..0x2c90fc80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21e08> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21e08> (a java.lang.Object)

"Inactive RequestProcessor thread
[Was:EditorBracesMatching/org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result]" daemon prio=2 tid=0x2b781000
nid=0
x474 in Object.wait() [0x2c70f000..0x2c70fd80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21e18> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21e18> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x2b780c00 nid=0x72c in
Object.wait() [0x2c50f000..0x2c50fa00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x06a21e28> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x06a21e28> (a java.lang.Object)

"GSF Source Worker Thread" prio=6 tid=0x2b780400 nid=0x624 waiting on condition [0x2c30f000..0x2c30fa80]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0557e8c8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
        at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
        at java.util.concurrent.PriorityBlockingQueue.poll(PriorityBlockingQueue.java:245)
        at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1130)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

"org.netbeans.modules.gsfret.source.usages.RepositoryUpdater" prio=6 tid=0x2b780000 nid=0x1138 in Object.wait()
[0x2c10f000..0x2c10fb00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x057aca90> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:485)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0x057aca90> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"DestroyJavaVM" prio=6 tid=0x29ac1400 nid=0x8ec waiting on condition [0x00000000..0x0141fd38]
   java.lang.Thread.State: RUNNABLE

"AWT-EventQueue-1" prio=6 tid=0x29ac0c00 nid=0x115c in Object.wait() [0x2f1df000..0x2f1dfb80]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065bc518> (a java.awt.EventQueue)
        at java.lang.Object.wait(Object.java:485)
        at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
        - locked <0x065bc518> (a java.awt.EventQueue)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29ac0800 nid=0x12c in
Object.wait() [0x2efdf000..0x2efdfd00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d1a58> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d1a58> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Folder recognizer/org.openide.loaders.FolderList$ListTask]" daemon prio=2
tid=0x29ac0000 nid=0x8f0 in Object.wait() [0x2e
ddf000..0x2eddfc00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d1a68> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d1a68> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29abfc00 nid=0x1124 in
Object.wait() [0x2ebdf000..0x2ebdfd80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d3658> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d3658> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29abf400 nid=0x7c0 in
Object.wait() [0x2e9df000..0x2e9dfc80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x066aecd0> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x066aecd0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29abf000 nid=0xcc0 in
Object.wait() [0x2e7df000..0x2e7dfa00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d3668> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d3668> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29abe800 nid=0xe38 in
Object.wait() [0x2e5df000..0x2e5dfa80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d3678> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d3678> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default RequestProcessor/null]" daemon prio=2 tid=0x29abe400 nid=0xfbc in
Object.wait() [0x2e3df000..0x2e3dfb00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x066b0ca0> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x066b0ca0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Default
RequestProcessor/org.netbeans.modules.java.j2seproject.ui.J2SELogicalViewProvider$J2SELogicalViewRootNode]" daemo
n prio=2 tid=0x29abdc00 nid=0x10dc in Object.wait() [0x2e1df000..0x2e1dfb80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x065d36a8> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x065d36a8> (a java.lang.Object)

"Creator Error Handler Listener" prio=6 tid=0x29abd800 nid=0xe14 runnable [0x2dfdf000..0x2dfdfc00]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0x065d8ab8> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:453)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.netbeans.modules.visualweb.errorhandler.DebugServerThread.run(DebugServerThread.java:115)

"Repository writer 0" daemon prio=2 tid=0x29abd400 nid=0x10fc waiting on condition [0x2dddf000..0x2dddfc80]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.cnd.repository.queue.RepositoryWritingThread.waitReady(RepositoryWritingThread.java:94)
        at org.netbeans.modules.cnd.repository.queue.RepositoryWritingThread.run(RepositoryWritingThread.java:128)
        at org.netbeans.modules.cnd.repository.queue.RepositoryThreadManager$Wrapper.run(RepositoryThreadManager.java:84)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

"*** JFluid Separate Command Execution Thread" daemon prio=6 tid=0x29abcc00 nid=0x1108 in Object.wait()
[0x2dbdf000..0x2dbdfd00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x064b2020> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:485)
        at org.netbeans.lib.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:104)
        - locked <0x064b2020> (a java.lang.Object)

"Code Model Parser 1" daemon prio=2 tid=0x29abc000 nid=0x1100 in Object.wait() [0x2d9df000..0x2d9dfa00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x064b3330> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:485)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.waitReady(ParserQueue.java:401)
        - locked <0x064b3330> (a java.lang.Object)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:69)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:82)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

"Code Model Parser 0" daemon prio=2 tid=0x29abbc00 nid=0x112c in Object.wait() [0x2d7df000..0x2d7dfd80]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x064b3330> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:485)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.waitReady(ParserQueue.java:401)
        - locked <0x064b3330> (a java.lang.Object)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:69)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:82)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

"TimerQueue" daemon prio=6 tid=0x29abb400 nid=0xd0c in Object.wait() [0x2d5df000..0x2d5dfa80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x050a6988> (a javax.swing.TimerQueue)
        at javax.swing.TimerQueue.run(TimerQueue.java:236)
        - locked <0x050a6988> (a javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:619)

"Thread-4" daemon prio=2 tid=0x29abb000 nid=0x8dc in Object.wait() [0x2d3cf000..0x2d3cfb00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x05e85330> (a java.util.LinkedList)
        at java.lang.Object.wait(Object.java:485)
        at java.util.prefs.AbstractPreferences$EventDispatchThread.run(AbstractPreferences.java:1461)
        - locked <0x05e85330> (a java.util.LinkedList)

"Java Source Worker Thread" prio=6 tid=0x29aba800 nid=0xccc waiting on condition [0x2d1cf000..0x2d1cfb80]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x05e9f718> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
        at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
        at java.util.concurrent.PriorityBlockingQueue.poll(PriorityBlockingQueue.java:245)
        at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1446)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

"Inactive RequestProcessor thread [Was:Default
RequestProcessor/org.netbeans.modules.project.ui.ProjectsRootNode$BadgingNode]" daemon prio=2 tid=0x29ab9800 nid=
0x10cc in Object.wait() [0x2bf0f000..0x2bf0fd00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0554a888> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x0554a888> (a java.lang.Object)

"AWT-Windows" daemon prio=6 tid=0x2891e400 nid=0xfc0 runnable [0x2b30f000..0x2b30fa00]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.windows.WToolkit.eventLoop(Native Method)
        at sun.awt.windows.WToolkit.run(WToolkit.java:290)
        at java.lang.Thread.run(Thread.java:619)

"AWT-Shutdown" prio=6 tid=0x2891dc00 nid=0xec8 in Object.wait() [0x2b10f000..0x2b10fa80]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0537d7f8> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:485)
        at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
        - locked <0x0537d7f8> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:619)

"Java2D Disposer" daemon prio=10 tid=0x297f4400 nid=0x104c in Object.wait() [0x2ac8f000..0x2ac8fb00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0525b370> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x0525b370> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at sun.java2d.Disposer.run(Disposer.java:125)
        at java.lang.Thread.run(Thread.java:619)

"Inactive RequestProcessor thread [Was:Default
RequestProcessor/org.netbeans.modules.project.ui.ProjectsRootNode$BadgingNode]" daemon prio=2 tid=0x297e0400 nid=
0xe6c in Object.wait() [0x2a4cf000..0x2a4cfc00]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0537d818> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:939)
        - locked <0x0537d818> (a java.lang.Object)

"Timer-0" daemon prio=6 tid=0x2889f800 nid=0xc1c in Object.wait() [0x2a2cf000..0x2a2cfc80]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0537d838> (a java.util.TaskQueue)
        at java.util.TimerThread.mainLoop(Timer.java:509)
        - locked <0x0537d838> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"CLI Requests Server" daemon prio=6 tid=0x2889f000 nid=0x10a4 runnable [0x2a0cf000..0x2a0cfd00]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0x050c9400> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:453)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.netbeans.CLIHandler$Server.run(CLIHandler.java:1003)

"Active Reference Queue Daemon" daemon prio=2 tid=0x2883b800 nid=0xfd0 in Object.wait() [0x2971f000..0x2971fd80]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0537d898> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x0537d898> (a java.lang.ref.ReferenceQueue$Lock)
        at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:3056)
        at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=6 tid=0x28766000 nid=0x2d4 runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x28762400 nid=0x338 waiting on condition [0x00000000..0x2863f784]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x28761c00 nid=0x10a8 runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x2875f400 nid=0xfa8 waiting on condition [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Surrogate Locker Thread (CMS)" daemon prio=6 tid=0x2875e800 nid=0xec0 waiting on condition [0x00000000..0x28f1fe14]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x28747c00 nid=0xed0 in Object.wait() [0x28d1f000..0x28d1fd00]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x054b6860> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x054b6860> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x28743c00 nid=0x109c in Object.wait() [0x28b1f000..0x28b1fd80]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0525b390> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x0525b390> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x011bf800 nid=0xd44 runnable

"Gang worker#0 (Parallel GC Threads)" prio=10 tid=0x000ad800 nid=0xc2c runnable

"Gang worker#1 (Parallel GC Threads)" prio=10 tid=0x000ae800 nid=0xfcc runnable

"Concurrent Mark-Sweep GC Thread" prio=10 tid=0x0113a400 nid=0xbfc runnable
"VM Periodic Task Thread" prio=10 tid=0x28767000 nid=0x534 waiting on condition

JNI global references: 1354

Heap
 par new generation   total 14784K, used 3188K [0x03420000, 0x04420000, 0x05090000)
  eden space 13184K,  15% used [0x03420000, 0x03612c00, 0x04100000)
  from space 1600K,  74% used [0x04100000, 0x0422a7f8, 0x04290000)
  to   space 1600K,   0% used [0x04290000, 0x04290000, 0x04420000)
 concurrent mark-sweep generation total 116460K, used 72631K [0x05090000, 0x0c24b000, 0x1a620000)
 concurrent-mark-sweep perm gen total 75500K, used 45889K [0x1a620000, 0x1efdb000, 0x26e20000)

Comment 4 Vitezslav Stejskal 2008-01-23 10:18:42 UTC
Umm, this really sounds bizarre. Thanks for the Bugtraq link, it could be the culprit. Although I'm not very familiar
with Windows and JDK implementation, so I can't really say. Btw, could you please try Java Notepad (java -jar
${JAVA_HOME}/demo/jfc/Notepad/Notepad.jar) or some other java application and see if they lock up too? Thanks
Comment 5 tofarr 2008-01-25 19:15:16 UTC
The notepad demo doesn't seem to share this behaviour. The only thing I have seen it on is netbeans.
Comment 6 Vitezslav Stejskal 2008-02-06 13:18:46 UTC
Thanks for the additional info.
Comment 7 Miloslav Metelka 2008-11-23 19:12:03 UTC
During the 3 secs pause does the CPU go to 100% or is it idle?
Anyway should be resolved in 7.0
Comment 8 Petr Dvorak 2009-02-04 16:34:38 UTC
*** Issue 142997 has been marked as a duplicate of this issue. ***
Comment 9 Petr Dvorak 2009-02-05 12:32:49 UTC
*** Issue 155293 has been marked as a duplicate of this issue. ***
Comment 10 v1nce 2009-10-30 18:38:23 UTC
Is there a patch or backport for the 6.x branch?
Comment 11 Vitezslav Stejskal 2009-11-02 07:34:44 UTC
What build exactly are you using? Nb 7.0 has never been released, but instead we released Nb 6.7. I'm afraid this issue
has not yet been fixed.
Comment 12 Vitezslav Stejskal 2010-03-05 06:23:31 UTC
Is this still a problem (eg. newer Netbeans version, newer JDK, newer OS)? If so, please reopen. Thanks
Comment 13 renhongxiang 2017-03-18 18:46:36 UTC
I use 8.1 and this issue still exist. I been try to restart this computer and wait for very long time to make sure system fully started. Then start netbean. But most likely this issue still there.