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.
Build: NetBeans IDE Dev (Build 201203200400) VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05 OS: Windows 7 User Comments: sunbiz: Debug app, Pause GUI threads and click on Take GUI Snapshot Stacktrace: com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ClassTypeImpl.invokeMethod(ClassTypeImpl.java:231) at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.invokeMethod(ClassTypeWrapper.java:280) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot$1.run(RemoteAWTScreenshot.java:258) at org.netbeans.modules.debugger.jpda.visual.RemoteServices.runOnStoppedThread(RemoteServices.java:396) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.take(RemoteAWTScreenshot.java:234) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:178)
Created attachment 117193 [details] stacktrace
The problem likely is, that in order to invoke methods, the thread needs to be paused by an event and not by explicit suspend() call. We need to find a way how to make it suspended on an event.
Created attachment 117597 [details] stacktrace
Created attachment 124939 [details] stacktrace F7-ed MemoryView project, then pressed F8 but green line disappeared so I pressed Pause which showed the green line back and then Continue and Take GUI Snapshot.
Created attachment 126061 [details] stacktrace started debugging MemoryView project with F7, continued with F8 and F5. Finally decided to "Take GUI Snapshot".
Created attachment 126064 [details] stacktrace started to debug Maven based MemoryView project, then paused it and invoked "Take GUI Snapshot".
Created attachment 131680 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=185259
Created attachment 131681 [details] stacktrace
Created attachment 135226 [details] stacktrace Try to take a snapshot of a paused application.
Created attachment 138494 [details] stacktrace GUI snapshot on paused debugger.
*** Bug 252730 has been marked as a duplicate of this bug. ***