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 221850

Summary: IndexOutOfBoundsException: Index: 4, Tab count: 4
Product: profiler Reporter: Petr Cyhelsky <cyhelsky>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: RESOLVED FIXED    
Severity: normal Keywords: VISUALVM
Priority: P2    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 194843
Attachments: stacktrace

Description Petr Cyhelsky 2012-11-09 17:17:18 UTC
Build: NetBeans IDE Dev (Build 201211050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b03, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b09
OS: Linux

User Comments:
cyhelsky: clicking on select all  while viewing stacktrace from npss snapshot




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 4, Tab count: 4
   at javax.swing.JTabbedPane.checkIndex(JTabbedPane.java:1768)
   at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:589)
   at org.netbeans.lib.profiler.ui.ResultsView.selectView(ResultsView.java:201)
   at org.netbeans.modules.profiler.CPUSnapshotPanel.setState(CPUSnapshotPanel.java:1225)
   at org.netbeans.modules.profiler.SnapshotResultsWindow.setState(SnapshotResultsWindow.java:363)
   at org.netbeans.modules.profiler.snaptracer.impl.TracerView.addContents(TracerView.java:294)
Comment 1 Petr Cyhelsky 2012-11-09 17:17:21 UTC
Created attachment 127500 [details]
stacktrace
Comment 2 Petr Cyhelsky 2012-11-09 17:39:10 UTC
Steps to reproduce: Open some npss snapshot -> create new "subtree" or "backtraces" tab -> click into timeline to go to the stacktrace -> Try to go back to "call tree" tab (either by selecting interval or clicking on "select all" button) -> exception occurs and there is no way now how to get back to call tree except for closing the snapshot altogether and reopening it.
Comment 3 Jiri Sedlacek 2012-11-09 18:43:47 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/d9f0d1c94d2d.
Comment 4 Quality Engineering 2012-11-15 02:45:11 UTC
Integrated into 'main-golden', will be available in build *201211150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d9f0d1c94d2d
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #221850 - only persist the default tabs