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 212408, 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 201207180002) VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05 OS: Linux User Comments: jtau8042: 1) start NetBeans 2) run Anagram game 3) attach to it with Attach Profiler... - use memory profiling, "Record object creation only" - use local+dynamic attach 4) click Attach and wait until Live Results are available 5) click Modify Profiling Session and select "Record both object creation..." 6) click Attach, AssertionError occures Stacktrace: java.lang.AssertionError at org.netbeans.modules.profiler.nbimpl.NetBeansProfiler.modifyCurrentProfiling(NetBeansProfiler.java:123) at org.netbeans.modules.profiler.actions.ProfilingSupport$2.run(ProfilingSupport.java:339) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Created attachment 122164 [details] stacktrace
Always reproducible. Steps: 1/ Start the IDE 2/ Start AnagramGame using the Run action 3/ Dynamically attach to the AnagramGame, CPU sampling 4/ Display Live results, get some data 5/ Modify profiling to CPU instrumentation, default settings AssertionError is thrown at NetBeansProfiler.java:123. Note this is in 7.3 Dev. A NPE is thrown in 7.2 at NetBeansProfiler.java:124, which is very likely a different symptom of the same bug. Regression.
Fixed by http://hg.netbeans.org/profiler-main/rev/2d22c0a075d4.
Integrated into 'main-golden', will be available in build *201210090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2d22c0a075d4 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #215696 - lastSession is null for Attach Profiler
*** Bug 216302 has been marked as a duplicate of this bug. ***