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.
After an error from sampled instrumentation the profiler blocked awt thread. There is calling ProfilerClient.terminateTargetJVM, I think such methods should not be called in AWT thread.
Created attachment 24735 [details] error with threads dump
The deadlock is a post-symptom of critical error. The error is entered as issue 64114 and already fixed, closing this as a duplicate. *** This issue has been marked as a duplicate of 64114 ***
verified
I've seen something similar again in profiler dev 060925: "AWT-EventQueue-1" prio=10 tid=0x0a16d800 nid=0x2fcc waiting for monitor entry [0xb491a000..0xb491aec0] java.lang.Thread.State: BLOCKED (on object monitor) com.sun.tools.profiler.ProfilerClient.terminateTargetJVM(ProfilerClient.java:757) - waiting to lock <0x7fdd3448> (a com.sun.tools.profiler.ProfilerClient) com.sun.tools.profiler.TargetAppRunner.terminateTargetJVM(TargetAppRunner.java:494) org.netbeans.modules.profiler.NetBeansProfiler.stopApp(NetBeansProfiler.java:907)
Created attachment 34459 [details] another threadsdump
Steps to reproduce: 1. create an PaintApp nb sample project 2. start cpu profiling - entire application, profile only project classes The application was blocked during starting. I cannot reproduce it again.
this is probably fixed with the issue #82357 the fix addresses deadlocks caused by calling the "forceObtainedResults" method
Could any profiler qe verify this? I do not profile regularly anything now so I cannot verify random issues. thanks
Verified