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 240751 - IndexOutOfBoundsException: Index: 676, Size: 676
Summary: IndexOutOfBoundsException: Index: 676, Size: 676
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2014-01-21 10:55 UTC by Jiri Skrivanek
Modified: 2014-06-23 12:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206794


Attachments
stacktrace (3.23 KB, text/plain)
2014-01-21 10:55 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-01-21 10:55:07 UTC
Build: NetBeans IDE Dev (Build 201401200001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123
OS: Windows 7

User Comments:
jskrivanek: My steps:
- create Anagram sample project
-  Invoke Profile -> Profile Project... action. Select Memory -> Analyze Memory -> Advanced (Instrumented).
- check all check boxes and click "Run".
- Go to Live Results. Sort results by "Class Name" ascending. Scroll to the first class from package "sun.awt", right-click and choose Stop Profiling Classes bellow this line action.
- Right-click again and choose Stop Profiling this Class.
- double-click "Live Bytes [%]" table header and exception appeared




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 676, Size: 676
   at java.util.ArrayList.RangeCheck(ArrayList.java:638)
   at java.util.ArrayList.get(ArrayList.java:414)
   at org.netbeans.lib.profiler.ui.memory.LivenessResultsPanel.computeValueAt(LivenessResultsPanel.java:468)
   at org.netbeans.lib.profiler.ui.memory.LivenessResultsPanel$1.getValueAt(LivenessResultsPanel.java:371)
   at org.netbeans.lib.profiler.ui.components.table.ExtendedTableModel.getValueAt(ExtendedTableModel.java:133)
   at javax.swing.JTable.getValueAt(JTable.java:2719)
Comment 1 Jiri Skrivanek 2014-01-21 10:55:09 UTC
Created attachment 144187 [details]
stacktrace
Comment 2 Tomas Hurka 2014-02-11 12:46:04 UTC
Fixed in profiler-main.

changeset:   271339:e204acab7721
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Feb 11 13:42:08 2014 +0100
summary:     bugfix #240751, clear selection before action; select new one after the action is done
Comment 3 Quality Engineering 2014-02-13 02:44:36 UTC
Integrated into 'main-silver', will be available in build *201402130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e204acab7721
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #240751, clear selection before action; select new one after the action is done