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 detach of direct attached local application there is shown a dialog asking if the profiled application should be terminated upon detach. It is not usable for direct attach because after I answered No the application was still running (as was expected) but the profiler was working too - live results were updated etc.
I find out the dynamic attach has the same problem - after detach without terminating of attached application profiler remains measuring. After the application is closed by user the 'detached' profiler asks about take snapshot of finished application. There was thrown an exception after the detach. Maybe it is related to this problem: java.lang.AssertionError: WindowsAPI is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/ at org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThread(WindowManagerImpl.java:1367) at org.netbeans.core.windows.WindowManagerImpl.findTopComponentGroup(WindowManagerImpl.java:200) at org.netbeans.modules.profiler.LiveResultsWindow.hideDrillDown(LiveResultsWindow.java:316) at org.netbeans.modules.profiler.LiveResultsWindow.resetResultsDisplay(LiveResultsWindow.java:562) at org.netbeans.modules.profiler.LiveResultsWindow.reset(LiveResultsWindow.java:505) at org.netbeans.modules.profiler.NetBeansProfiler.detachFromApp(NetBeansProfiler.java:880) at org.netbeans.modules.profiler.actions.StopAction$2.run(StopAction.java:130) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
java.lang.AssertionError fixed, please verify if that fixed the issue.
Closing as fixed.
verified