This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSv4.2.4 ArrayIndexOutOfBoundsException



Hi Folks

C6472, CCSv4.2.4

I had several "Single Time" plots active but when I started a Dual Time it gives me an error message

Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

The error log shows

java.lang.ArrayIndexOutOfBoundsException: 0
    at com.ti.dvt.util.SolutionHelper.connectView2Solution(SolutionHelper.java:1771)
    at com.ti.dvt.util.SolutionHelper.partVisible(SolutionHelper.java:2019)
    at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
    at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
    at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
    at org.eclipse.ui.internal.WWinPartService$1.partVisible(WWinPartService.java:60)
    at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
    at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
    at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
    at org.eclipse.ui.internal.WorkbenchPagePartList.firePartVisible(WorkbenchPagePartList.java:67)
    at org.eclipse.ui.internal.PartList.partVisible(PartList.java:269)
    at org.eclipse.ui.internal.PartList.access$2(PartList.java:258)
    at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:44)
    at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:346)
    at org.eclipse.ui.internal.WorkbenchPartReference.fireVisibilityChange(WorkbenchPartReference.java:507)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:295)
    at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
    at org.eclipse.ui.internal.PerspectiveHelper.bringPartToTop(PerspectiveHelper.java:396)
    at org.eclipse.ui.internal.Perspective.bringToTop(Perspective.java:177)
    at org.eclipse.ui.internal.WorkbenchPage.internalBringToTop(WorkbenchPage.java:757)
    at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:587)
    at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1008)
    at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:989)
    at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)
    at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3497)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3494)
    at com.ti.util.ui.PartManager.showView(PartManager.java:228)
    at com.ti.dvt.graph.visualization.views.GraphPropertiesModalView.showSolutionViews(GraphPropertiesModalView.java:525)
    at com.ti.dvt.graph.visualization.views.GraphPropertiesModalView$3.widgetSelected(GraphPropertiesModalView.java:339)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:996)
    at org.eclipse.core.launcher.Main.main(Main.java:971)

I tried closing the dual time and opening another dual time. Same problem.

I tried different addresses. Same problem.

After I rebooted CCS, I started a Dual time plot and it worked fine with the same address.

Maybe the problem was having to many plots active.

Weird.

 

  • Eddie,

    Thanks for reporting this. I will try to spawn several graphs and see if I can see the same behaviour here. I will get back to this thread if I get any meaningful conclusions.

    Regards,

    Rafael

  • Hi

    It happened again. This time I only had the Image analyzer opened when I opened the dual time. So the issue can't be having too many single time graphs open.

    I restarted CCS, used the same address in dual plot, and its fine now.

    If it helps, the boxes I am changing are below (I've also tried using absolute addresses like 0xE000000 when it fails and the problem is still present)

    Cheers