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 60434 - AWT thread can get stuck waiting for response from terminated app
Summary: AWT thread can get stuck waiting for response from terminated app
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 12:23 UTC by iformanek
Modified: 2007-02-12 22:09 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 iformanek 2005-06-23 12:23:52 UTC
Terminating profiled application by clicking on Profile can cause the AWT 
thread to get stuck waiting for response from the already terminated JVM.

cmd.exe /K start cmd /K C:\Software\jdk15_04_b05\bin\java.exe -
agentpath:D:/Dev/profiler/nb41userdir/modules/profiler-ea-
libs/deployed/jdk15/windows/profilerinterface.dll -
Xbootclasspath/a:D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-
server.jar;D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-server-
15.jar -classpath C:\Software\netbeans41\ide5
\modules\ext\AbsoluteLayout.jar;D:\Dev\profiler\netfluid\jfluid\test\functional\
data\projects\j2se-java2demo\build\classes 
com.sun.tools.profiler.server.ProfilerServer 
D:/Dev/profiler/nb41userdir/modules/profiler-ea-libs/deployed/jdk15/windows 
5140 java2d.Java2Demo
Profiler.profileClass: **************************************************
Profiler.profileClass: profiling settings -------------------------------
name: Preset: Entire Application
profilingType =8
overrideGlobalSettings =false
workingDir =
jvmArgs:
portNo =5140
javaPlatform =<project>
threadsMonitoringEnabled =false
cpuProfilingType =0
instrScheme =3
threadCPUTimerOn =false
instrumentGetterSetterMethods =true
instrumentEmptyMethods =false
instrumentMethodInvoke =true
instrumentSpawnedThreads =true
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[Source Code defined via methods: 1 methods:
  class: java2d.Java2Demo
    method: main  ([Ljava/lang/String;)V
  ]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
objAllocStackSamplingInterval =10
objAllocStackSamplingDepth =0
selectedInstrFilter =

Profiler.profileClass: session settings ---------------------------------
mainClass: java2d.Java2Demo
mainClassPath: C:\Software\netbeans41\ide5
\modules\ext\AbsoluteLayout.jar;D:\Dev\profiler\netfluid\jfluid\test\functional\
data\projects\j2se-java2demo\build\classes
mainArgs:
jvmArgs =
workingDir =C:\Documents and Settings\Ian Formanek
javaExecutable =C:\Software\jdk15_04_b05\bin\java.exe
javaVersionString =jdk15
portNo =5140
Profiler.profileClass: **************************************************
Instrumentation filter:
  Filter type: None
  Filter value:
*** JFluid message (Thu Jun 23 13:21:32 CEST 2005): Starting target 
application...
cmd.exe /K start cmd /K C:\Software\jdk15_04_b05\bin\java.exe -
agentpath:D:/Dev/profiler/nb41userdir/modules/profiler-ea-
libs/deployed/jdk15/windows/profilerinterface.dll -
Xbootclasspath/a:D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-
server.jar;D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-server-
15.jar -classpath C:\Software\netbeans41\ide5
\modules\ext\AbsoluteLayout.jar;D:\Dev\profiler\netfluid\jfluid\test\functional\
data\projects\j2se-java2demo\build\classes 
com.sun.tools.profiler.server.ProfilerServer 
D:/Dev/profiler/nb41userdir/modules/profiler-ea-libs/deployed/jdk15/windows 
5140 java2d.Java2Demo
^CFull thread dump Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode):

"Profiler I/O Redirector: System Err" prio=7 tid=0x03c92410 nid=0xc04 waiting 
on condition [0x0853f000..0x0853fbe8]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System In" prio=7 tid=0x0896c140 nid=0x1564 waiting 
on condition [0x0838f000..0x0838fc68]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System Out" prio=7 tid=0x03fedd10 nid=0x1078 waiting 
on condition [0x0834f000..0x0834fce8]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Thread-40" daemon prio=2 tid=0x0883b700 nid=0x1704 runnable 
[0x084ff000..0x084ff9e8]
        at com.sun.tools.profiler.ProfilerClient$ServerListener.run
(ProfilerClient.java:1227)

"Profiler Monitor" prio=7 tid=0x0412ce68 nid=0x4d8 in Object.wait() 
[0x02f4f000..0x02f4f9e8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x147dd0a0> (a java.awt.EventQueue$1AWTInvocationLock)
        at java.lang.Object.wait(Object.java:474)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:846)
        - locked <0x147dd0a0> (a java.awt.EventQueue$1AWTInvocationLock)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
        at org.netbeans.modules.profiler.ProfilingMonitor$UpdateThread.run
(ProfilingMonitor.java:116)

"Inactive RequestProcessor thread 
[Was:TimedSoftReference/org.openide.util.TimedSoftReference]" daemon prio=2 
tid=0x087fae50 nid=0xd5c in Object.wait() [0x085bf000..0x085bfbe8]
        at java.lang.Object.wait(Native Method)
        at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:692)
        - locked <0x12f75e78> (a java.lang.Object)

"*** JFluid SeparateCmdExecutionThread ***" daemon prio=7 tid=0x0400cb48 
nid=0x228 in Object.wait() [0x0857f000..0x0857fc68]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x12eec918> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:474)
        at com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run
(ProfilerClient.java:1316)
        - locked <0x12eec918> (a java.lang.Object)

"Inactive RequestProcessor thread 
[Was:TimedSoftReference/org.openide.util.TimedSoftReference]" daemon prio=2 
tid=0x040735f8 nid=0x17e0 in Object.wait() [0x084bf000..0x084bfae8]
        at java.lang.Object.wait(Native Method)
        at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:692)
        - locked <0x12e695a0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:System clipboard 
synchronizer/org.netbeans.core.NbClipboard]" daemon prio=2 tid=0x03bf7928 
nid=0x240 in Object.wait() [0x0428f000..0x0428fb68]
        at java.lang.Object.wait(Native Method)
        at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:692)
        - locked <0x12d21698> (a java.lang.Object)

"Profiler I/O Redirector: System Err" prio=7 tid=0x03f930c0 nid=0x14cc waiting 
on condition [0x083cf000..0x083cfc68]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System In" prio=7 tid=0x0398efd0 nid=0x898 waiting on 
condition [0x0830f000..0x0830fce8]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System Out" prio=7 tid=0x04004358 nid=0x8c4 waiting 
on condition [0x037af000..0x037afd68]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"*** JFluid SeparateCmdExecutionThread ***" daemon prio=7 tid=0x03aa0ac0 
nid=0x127c in Object.wait() [0x0840f000..0x0840fb68]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x12697500> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:474)
        at com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run
(ProfilerClient.java:1316)
        - locked <0x12697500> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:System clipboard 
synchronizer/org.netbeans.core.NbClipboard]" daemon prio=2 tid=0x02dd37c8 
nid=0x133c in Object.wait() [0x0384f000..0x0384fbe8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x12668eb0> (a java.lang.Object)
        at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:692)
        - locked <0x12668eb0> (a java.lang.Object)

"Profiler I/O Redirector: System Err" prio=7 tid=0x02e5b250 nid=0xf38 waiting 
on condition [0x0847f000..0x0847fbe8]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System In" prio=7 tid=0x02e57d90 nid=0x1320 waiting 
on condition [0x0380f000..0x0380fc68]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"Profiler I/O Redirector: System Out" prio=7 tid=0x03544cf0 nid=0xe50 waiting 
on condition [0x0318f000..0x0318fce8]
        at java.lang.Thread.sleep(Native Method)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.read
(ProfilingMonitor.java:195)
        at org.netbeans.modules.profiler.ProfilingMonitor$CopyMaker.run
(ProfilingMonitor.java:180)

"MDR event dispatcher" daemon prio=2 tid=0x0398e7c8 nid=0x1718 in Object.wait() 
[0x082cf000..0x082cf9e8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x111ad998> (a java.util.LinkedList)
        at java.lang.Object.wait(Object.java:474)
        at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run
(EventNotifier.java:257)
        - locked <0x111ad998> (a java.util.LinkedList)
        at java.lang.Thread.run(Thread.java:595)

"DestroyJavaVM" prio=5 tid=0x000358b0 nid=0x13e8 waiting on condition 
[0x00000000..0x0007fae8]

"TimerQueue" daemon prio=5 tid=0x02e87a78 nid=0xdf4 in Object.wait() 
[0x0391f000..0x0391fb68]
        at java.lang.Object.wait(Native Method)
        at javax.swing.TimerQueue.run(TimerQueue.java:233)
        - locked <0x10ffd370> (a javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:595)

"AWT-EventQueue-1" prio=7 tid=0x0337a9e8 nid=0x1598 in Object.wait() 
[0x0367f000..0x0367fbe8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x12f07f68> (a java.lang.Object)
        at com.sun.tools.profiler.ProfilerClient.getLastResponse
(ProfilerClient.java:961)
        - locked <0x12f07f68> (a java.lang.Object)
        - locked <0x12ef3f48> (a com.sun.tools.profiler.ProfilerClient)
        at com.sun.tools.profiler.ProfilerClient.terminateTargetJVM
(ProfilerClient.java:565)
        - locked <0x12ef3f48> (a com.sun.tools.profiler.ProfilerClient)
        at com.sun.tools.profiler.TargetAppRunner.terminateTargetJVM
(TargetAppRunner.java:366)
        at 
org.netbeans.modules.profiler.actions.ProfilingSupport.checkProfilingInProgress
(ProfilingSupport.java:222)
        at org.netbeans.modules.profiler.actions.AntActions.doProfileProject
(AntActions.java:228)
        at org.netbeans.modules.profiler.actions.AntActions.access$000
(AntActions.java:41)
        at org.netbeans.modules.profiler.actions.AntActions$4.perform
(AntActions.java:148)
        at 
org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed
(MainProjectAction.java:98)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
        at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1766)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

"*** JFluid SeparateCmdExecutionThread ***" daemon prio=5 tid=0x02d8b8f0 
nid=0x17c8 in Object.wait() [0x038df000..0x038dfc68]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x10f50db0> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:474)
        at com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run
(ProfilerClient.java:1316)
        - locked <0x10f50db0> (a java.lang.Object)

"Java2D Disposer" daemon prio=10 tid=0x02e33aa0 nid=0x308 in Object.wait() 
[0x0314f000..0x0314fd68]
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x10a2e378> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at sun.java2d.Disposer.run(Disposer.java:107)
        at java.lang.Thread.run(Thread.java:595)

"Active Reference Queue Daemon" daemon prio=2 tid=0x02e14e50 nid=0x950 in 
Object.wait() [0x0310f000..0x0310fce8]
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x10a2e400> (a java.lang.ref.ReferenceQueue$Lock)
        at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2465)
        at java.lang.Thread.run(Thread.java:595)

"Timer-0" daemon prio=5 tid=0x02e14188 nid=0xc9c in Object.wait() 
[0x030cf000..0x030cf9e8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x10a2e490> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:474)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0x10a2e490> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"AWT-Windows" daemon prio=7 tid=0x02df8388 nid=0xe60 runnable 
[0x02fef000..0x02fefa68]
        at sun.awt.windows.WToolkit.eventLoop(Native Method)
        at sun.awt.windows.WToolkit.run(WToolkit.java:269)
        at java.lang.Thread.run(Thread.java:595)

"AWT-Shutdown" prio=5 tid=0x02df7ea0 nid=0x12f0 in Object.wait() 
[0x02faf000..0x02fafae8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x10a2e560> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:474)
        at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
        - locked <0x10a2e560> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:595)

"CLI Requests Server" daemon prio=5 tid=0x02dd06d8 nid=0xc38 runnable 
[0x02f0f000..0x02f0fbe8]
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0x10a2e738> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.netbeans.CLIHandler$Server.run(CLIHandler.java:758)

"Low Memory Detector" daemon prio=5 tid=0x00a92f48 nid=0x1100 runnable 
[0x00000000..0x00000000]

"CompilerThread0" daemon prio=10 tid=0x00a91b20 nid=0x1634 waiting on condition 
[0x00000000..0x02c4fa40]

"Signal Dispatcher" daemon prio=10 tid=0x00a90ea8 nid=0xd60 waiting on 
condition [0x00000000..0x00000000]

"Finalizer" daemon prio=9 tid=0x00a88350 nid=0x15b4 in Object.wait() 
[0x02bcf000..0x02bcfa68]
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x10a12dd0> (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=0x00a86ec0 nid=0xca0 in Object.wait() 
[0x02b8f000..0x02b8fae8]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:474)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x10a12c30> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x00034f38 nid=0x1760 runnable

"VM Periodic Task Thread" prio=10 tid=0x00a94120 nid=0xcf4 waiting on condition
Comment 1 iformanek 2005-06-23 12:48:05 UTC
Will not address in M7
Comment 2 iformanek 2005-10-19 11:25:33 UTC
This is no longer happening.
Comment 3 ehucka 2006-10-09 12:09:30 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:09:20 UTC
Closing old issues.