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.
This bug was originally marked as duplicate of bug 205287, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 20111210-6a38df8032ae) VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_23-b23 OS: Linux User Comments: akochnev: trying to terminate a profiling session Stacktrace: org.netbeans.lib.profiler.client.ClientUtils$TargetAppOrVMTerminated: Target JVM inactive at org.netbeans.lib.profiler.ProfilerClient.checkForTargetVMAlive(ProfilerClient.java:1520) at org.netbeans.lib.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:492) at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:744) at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:719) at org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:887) at org.netbeans.modules.profiler.ProfilerControlPanel2$ResultsSnippetPanel$2.run(ProfilerControlPanel2.java:773)
Created attachment 114283 [details] stacktrace
Seems like you have tried to obtain a profiler snapshot before terminating the session. Can you provide some steps to reproduce?
I don't have any further steps to reproduce. Even if I did something unexpected/invalid (e.g. tried obtaining a snapshot before terminating the session) it seems that at least the exception should be handled more gracefully
Actually, the exception is caught and logged. But the Level.SEVERE seems to force the IDE to display the exception dialogue. It would be the best to find how to prevent the exception but for the time being we might log it just as a warning instead (will go to the log but will not be shown to the end user)