Community
Participate
Working Groups
Build: 2001-12-06, Win2000. Sorry, I have very little information to go on. I was working away, and I got a very generic "Internal Error" dialog... it gave no interesting information (check log). When I clicked OK on that dialog, the VM immediately exited. I believe making a selection in the packages view was my last action before death happened. I also had several java editors open. I'm logging the bug here because at first glance "LinkedPositionUI.getMinimumLocation" seems to be the offending code. The log contained only the following stack trace: Log: Tue Dec 11 16:49:49 EST 2001 4 org.eclipse.ui 0 Index out of bounds java.lang.IllegalArgumentException: Index out of bounds at org.eclipse.swt.SWT.error(SWT.java:1873) at org.eclipse.swt.custom.StyledText.getLocationAtOffset(StyledText.java(Compiled Code)) at org.eclipse.swt.custom.StyledText.getLocationAtOffset(StyledText.java(Compiled Code)) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.getMinimumLocation(Linked PositionUI.java:323) at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.paintControl(LinkedPositi onUI.java:307) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java(Compiled Code)) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:758) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:82 0) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)
I've logged the crash as a separate bug (bug 6825), because I believe JDT wasn't at fault in the whole UI crashing here. This bug report is thus only about the illegal argument exception. I have updated the summary accordingly.
Ok, I managed to reproduce it: 1) Switch on "Show Source of SelectedElement Only 2) Select a method in outline. 3) Use an 'active' template. 4) Switch to another method/field in outline.
fixed > 20011220 The 'active template' mode is now left when the 'active' part is outside the visible region.
*** Bug 7168 has been marked as a duplicate of this bug. ***