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.
AIOOB Excepthing after Modify profiling from CPU to Memory. Steps: 1. start the app with CPU entire 2. open live results 3. modify profiling to Memory This exception can be thrown: java.lang.ArrayIndexOutOfBoundsException: 6349 at com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.addTimeForNode (CPUCallGraphBuilder.java:811) at com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.calculateFlatProfileForAl lThreads(CPUCallGraphBuilder.java:748) at com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.createFlatProfileForAllTh reads(CPUCallGraphBuilder.java:117) at com.sun.tools.profiler.ui.cpu.LiveFlatProfilePanel.updateLiveResults (LiveFlatProfilePanel.java:54) [catch] at org.netbeans.modules.profiler.LiveResultsWindow$5$1.run (LiveResultsWindow.java:398) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
It seems that Live results updating in general does not work during modify profiling, modifying from memory to CPU throws similar exception: java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.tools.profiler.ui.memory.MemoryResultsPanel.sortResultsByClassName (MemoryResultsPanel.java:477) at com.sun.tools.profiler.ui.memory.AllocResultsPanel.getResultsSortedByClassName (AllocResultsPanel.java:450) at com.sun.tools.profiler.ui.memory.AllocResultsPanel.getResultsSortedByAllocObjSiz e(AllocResultsPanel.java:407) at com.sun.tools.profiler.ui.memory.AllocResultsPanel.sortResults (AllocResultsPanel.java:207) at com.sun.tools.profiler.ui.memory.AllocResultsPanel.getResultsTable (AllocResultsPanel.java:291) at com.sun.tools.profiler.ui.memory.MemoryResultsPanel.prepareResults (MemoryResultsPanel.java:201) at com.sun.tools.profiler.ui.memory.LiveAllocResultsPanel.updateLiveResults (LiveAllocResultsPanel.java:108) [catch] at org.netbeans.modules.profiler.LiveResultsWindow$5$1.run (LiveResultsWindow.java:398) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1032) at java.awt.Dialog$2.run(Dialog.java:1078) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1076) at org.netbeans.core.windows.services.NbPresenter.superShow (NbPresenter.java:810) at org.netbeans.core.windows.services.NbPresenter.doShow (NbPresenter.java:853) at org.netbeans.core.windows.services.NbPresenter.run (NbPresenter.java:841) at org.openide.util.Mutex.doEventAccess(Mutex.java:1146) at org.openide.util.Mutex.readAccess(Mutex.java:183) at org.netbeans.core.windows.services.NbPresenter.show (NbPresenter.java:826) at java.awt.Component.show(Component.java:1406) at java.awt.Component.setVisible(Component.java:1359) at java.awt.Window.setVisible(Window.java:695) at java.awt.Dialog.setVisible(Dialog.java:972) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog (DialogDisplayerImpl.java:159) at org.netbeans.core.windows.services.DialogDisplayerImpl.notify (DialogDisplayerImpl.java:174) at org.netbeans.modules.profiler.ui.ProfilerDialogs.notify (ProfilerDialogs.java:89) at org.netbeans.modules.profiler.NetBeansProfiler$6.run (NetBeansProfiler.java:977) at org.netbeans.modules.profiler.utils.IDEUtils.runInEventDispatchThread (IDEUtils.java:83) at org.netbeans.modules.profiler.NetBeansProfiler.displayWarning (NetBeansProfiler.java:974) at org.netbeans.modules.profiler.NetBeansProfiler.displayWarningAboutEntireAppProfi ling(NetBeansProfiler.java:1634) at org.netbeans.modules.profiler.NetBeansProfiler.modifyCurrentProfiling (NetBeansProfiler.java:844) at org.netbeans.modules.profiler.actions.ProfilingSupport.modifyProfiling (ProfilingSupport.java:435) at org.netbeans.modules.profiler.actions.ModifyProfilingAction.performAction (ModifyProfilingAction.java:39) at org.openide.util.actions.CallableSystemAction$1.run (CallableSystemAction.java:94) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction (ActionsBridge.java:47) at org.openide.util.actions.CallableSystemAction.actionPerformed (CallableSystemAction.java:90) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1957) at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2278) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:377) at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java:232) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java:234) at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5955) at javax.swing.JComponent.processMouseEvent(JComponent.java:3285) at org.openide.awt.ToolbarButton.processMouseEvent (ToolbarButton.java:33) at java.awt.Component.processEvent(Component.java:5720) at java.awt.Container.processEvent(Container.java:1960) at java.awt.Component.dispatchEventImpl(Component.java:4365) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Component.dispatchEvent(Component.java:4195) at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:4222) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3886) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3816) at java.awt.Container.dispatchEventImpl(Container.java:2004) at java.awt.Window.dispatchEventImpl(Window.java:2210) at java.awt.Component.dispatchEvent(Component.java:4195) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Fixed in M12, live results are suspended during modify profiling
Verification of old issues.
Closing old issues
Reverting to original Target Milestone value changed by mistake. Sorry for inconvenience.