Project: SWT
Bug 136633 Failed to execute runnable (java.lang.ArrayIndexOutOfBoundException) in debug mode
Reported: 2006-04-13 09:56:53 | Status: resolved fixed

Build id: I20060412-0847 To reproduce run any snippet in debug mode (i ran snippet229). Expand some variable names, click on some random variables and then click on variable 'this' a couple times, the exception will show. Failed to execute runnable(java.lang.ArrayIndexOutOfBoundException: -1) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: -1) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3037) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2751) 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:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) 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:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.swt.widgets.Tree.redrawItem(Tree.java:3024) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:263) at org.eclipse.swt.widgets.TreeItem.getBounds(TreeItem.java:800) at org.eclipse.swt.widgets.TreeItem.getBounds(TreeItem.java:797) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.isVisible(AsynchronousTreeViewer.java:880) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.nodeContainerChanged(AsynchronousTreeViewer.java:757) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.setIsContainer(AsynchronousTreeModel.java:268) at org.eclipse.debug.internal.ui.viewers.ContainerRequestMonitor.performUpdate(ContainerRequestMonitor.java:45) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:51) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 20 more

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Tree.java