Bug 5460 - Internal error when VM argument -mx: is too low
Summary: Internal error when VM argument -mx: is too low
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-02 07:29 EST by Dani Megert CLA
Modified: 2001-11-05 10:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2001-11-02 07:29:23 EST
Build: 20011101
JRE:   J9

1. Set the max memory VM argument on UIMain to a very small number: -mx:30
2. Launch UIMain
==> Dialog pops up:
    Title:   Internal Error
    Message: An internal error has occurred. 0. See error log for more details.
The following is in the log:

Log: Fri Nov 02 13:28:43 GMT+01:00 2001
4 org.eclipse.ui 0 0
java.lang.ArrayIndexOutOfBoundsException: 0
	at 
org.eclipse.debug.internal.core.ListenerList.add(ListenerList.java:67)
	at 
org.eclipse.debug.internal.core.InputStreamMonitor.addListener(InputStreamMonito
r.java:62)
	at 
org.eclipse.debug.internal.ui.ConsoleDocument.startReading(ConsoleDocument.java:
156)
	at 
org.eclipse.debug.internal.ui.DebugUIPlugin$5.run(DebugUIPlugin.java:1146)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:121)
	at 
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:18)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1593)
	at 
org.eclipse.debug.internal.ui.DebugUIPlugin.launchRegistered(DebugUIPlugin.java:
1140)
	at 
org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:115)
	at 
org.eclipse.debug.internal.core.LaunchManager.registerLaunch(LaunchManager.java:
215)
	at 
org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate$2.run(JavaA
pplicationLauncherDelegate.java:203)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:121)
	at 
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:18)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1593)
	at 
org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.registerLau
nch(JavaApplicationLauncherDelegate.java:201)
	at 
org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.doLaunch(Ja
vaApplicationLauncherDelegate.java:191)
	at 
org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launchEleme
nt(JavaApplicationLauncherDelegate.java:81)
	at 
org.eclipse.jdt.internal.ui.launcher.JavaApplicationLauncherDelegate.launch(Java
ApplicationLauncherDelegate.java:93)
	at org.eclipse.debug.internal.core.Launcher.launch(Launcher.java:104)
	at 
org.eclipse.debug.internal.ui.ExecutionAction$1.run(ExecutionAction.java:72)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at 
org.eclipse.debug.internal.ui.ExecutionAction.run(ExecutionAction.java:66)
	at 
org.eclipse.debug.internal.ui.LaunchDropDownAction.run(LaunchDropDownAction.java
:71)
	at org.eclipse.ui.internal.PluginAction.run(PluginAction.java:125)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:451)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont
ributionItem.java:407)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContribu
tionItem.java:361)
	at 
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.
java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio
nContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:712)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:695)
	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.UIMain.main(UIMain.java:52)
Comment 1 Darin Swanson CLA 2001-11-05 10:11:10 EST
I don't think this has anything to do with the -mx argument.  I introduced a 
bug into our listener list after the code review fixes.  The bug has been fixed 
in the current head stream (did not correctly grow the list if the size was 
zero).

Please verify
Comment 2 Darin Wright CLA 2001-11-05 10:18:35 EST
Verified.