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.
Created attachment 122955 [details] Snapshot that produce the exception Starting from NB 7.2 it is impossible to display snapshot created on fly and cannot load snapshots created in NB 7.1.2. Following exception is produced in both cases: java.lang.ArrayIndexOutOfBoundsException: 396 at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.get5Bytes(CPUCCTContainer.java:511) at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.getSelfTime1ForNodeOfs(CPUCCTContainer.java:246) at org.netbeans.lib.profiler.results.cpu.PrestimeCPUCCTNodeBacked.setSelfTimeNode(PrestimeCPUCCTNodeBacked.java:245) at org.netbeans.lib.profiler.results.cpu.PrestimeCPUCCTNodeBacked.getChildren(PrestimeCPUCCTNodeBacked.java:188) at org.netbeans.lib.profiler.results.cpu.PrestimeCPUCCTNodeBacked.getNChildren(PrestimeCPUCCTNodeBacked.java:257) at org.netbeans.lib.profiler.ui.components.treetable.AbstractTreeTableModel.isLeaf(AbstractTreeTableModel.java:173) at org.netbeans.lib.profiler.ui.components.treetable.ExtendedTreeTableModel.isLeaf(ExtendedTreeTableModel.java:133) at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2784) at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1359) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1495) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1287) at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:983) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:181) at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1695) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeExpanded(BasicTreeUI.java:3783) at javax.swing.JTree.fireTreeExpanded(JTree.java:2754) at javax.swing.JTree.setExpandedState(JTree.java:3614) at javax.swing.JTree.expandPath(JTree.java:2202) See attached snapshot file as example. After quick investigation it seems that bug is somewhere in the method PrestimeCPUCCTNodeBacked.setSelfTimeNode: it should not try to invoke container.getSelfTime1ForNodeOfs(ofs) if CPUCCTContainer.collectingTwoTimeStamps flag is false. Please, note that this is showstopper for ME SDK product.
Regression, caused by http://hg.netbeans.org/profiler-main/rev/0ba6412dadf9 which implements Bug 55485.
Fixed in profiler-main: http://hg.netbeans.org/profiler-main/rev/ab1013604687.
Petře please make sure the fix gets into the closest patch release.
Verified in profiler-main.
Integrated into 'main-golden', will be available in build *201208170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ab1013604687 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #216627 - do not read SelfTime1 when not collecting two timestamps
Transplanted to release72 branch as d6750fe9b909.
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/d6750fe9b909 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #216627 - do not read SelfTime1 when not collecting two timestamps (transplanted from ab1013604687b30232a72d0165e835193c9e2d26)
(In reply to comment #4) > Verified in profiler-main.
Verified with NB 7.2.1 and 7.3. The issue is resolved. Closed.