Bug 6824 - SWT "out of bounds" exception when clicking in packages view
Summary: SWT "out of bounds" exception when clicking in packages view
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 7168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-11 16:59 EST by John Arthorne CLA
Modified: 2002-04-09 09:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2001-12-11 16:59:10 EST
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)
Comment 1 John Arthorne CLA 2001-12-11 17:14:38 EST
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.
Comment 2 Claude Knaus CLA 2001-12-20 07:42:06 EST
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.

Comment 3 Claude Knaus CLA 2001-12-21 08:16:05 EST
fixed > 20011220

The 'active template' mode is now left when the 'active' part is outside the
visible region.
Comment 4 Claude Knaus CLA 2002-04-09 09:05:29 EDT
*** Bug 7168 has been marked as a duplicate of this bug. ***