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.

Bug 215696 - AssertionError when modifying profiling session
Summary: AssertionError when modifying profiling session
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: REGRESSION
: 216302 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-18 14:44 UTC by jtau8042
Modified: 2012-11-05 12:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190847


Attachments
stacktrace (3.89 KB, text/plain)
2012-07-18 14:44 UTC, jtau8042
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jtau8042 2012-07-18 14:44:41 UTC
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)
Comment 1 jtau8042 2012-07-18 14:44:44 UTC
Created attachment 122164 [details]
stacktrace
Comment 2 Jiri Sedlacek 2012-10-05 15:02:30 UTC
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.
Comment 3 Jiri Sedlacek 2012-10-08 11:47:18 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/2d22c0a075d4.
Comment 4 Quality Engineering 2012-10-09 02:04:59 UTC
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
Comment 5 Jiri Sedlacek 2012-11-05 12:51:18 UTC
*** Bug 216302 has been marked as a duplicate of this bug. ***