Project: Eclipse_Platform_UI
Bug 18152 OutOfMemory error and NPE in editor
Reported: 2002-05-29 08:42:43 | Status: resolved fixed

When running a project with F1 I get an OutOfMemoryError. This happens after the project is loaded, and then I try to open one of the java projects files in the editor. This does not happen when using M5. log lines ******************** !SESSION maj 29, 2002 14:32:11.324 --------------------------------------------- java.version=1.3.1_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Command-line arguments: -os win32 -ws win32 -arch x86 -feature org.eclipse.platform -install file:C:/download/eclipse/eclipse-SDK-20020528- win32/eclipse/ !ENTRY org.eclipse.core.runtime 2 1 maj 29, 2002 14:32:11.334 !MESSAGE Problems encountered loading the plug-in registry. !SUBENTRY 1 org.eclipse.core.runtime 2 1 maj 29, 2002 14:32:11.334 !MESSAGE Unknown extension point org.eclipse.debug.ui.launchConfigurationShortcuts specified in plug-in org.eclipse.pde.ui. !SESSION maj 29, 2002 14:32:30.932 --------------------------------------------- java.version=1.3.1_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Command-line arguments: -os win32 -ws win32 -arch x86 -feature org.eclipse.platform -install file:C:/download/eclipse/eclipse-SDK-20020528- win32/eclipse/ !ENTRY org.eclipse.core.resources 1 4 maj 29, 2002 14:32:30.932 !MESSAGE Unable to find Action Set: org.eclipse.jdt.debug.ui.JDTLaunchActionSet !ENTRY org.eclipse.core.resources 1 4 maj 29, 2002 14:32:30.962 !MESSAGE Unable to find Action Set: org.eclipse.jdt.junit.JUnitLaunchActionSet !ENTRY org.eclipse.core.resources 1 4 maj 29, 2002 14:33:07.716 !MESSAGE Reference action not found: additions !ENTRY org.eclipse.core.resources 1 4 maj 29, 2002 14:35:35.912 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 maj 29, 2002 14:35:35.922 !MESSAGE java.lang.OutOfMemoryError !STACK 0 java.lang.OutOfMemoryError <<no stack trace available>> !ENTRY org.eclipse.ui 4 2 maj 29, 2002 14:35:54.219 !MESSAGE Problems occurred when invoking code from plug-in: org.eclipse.ui. !STACK 0 java.lang.NullPointerException at org.eclipse.jface.text.contentassist.ContentAssistant.uninstall (ContentAssistant.java:924) at org.eclipse.jface.text.source.SourceViewer.handleDispose (SourceViewer.java:309) at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionSourceViewer.handleDis pose(JavaCorrectionSourceViewer.java:80) at org.eclipse.jface.text.TextViewer$1.widgetDisposed (TextViewer.java:847) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:96) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:846) at org.eclipse.swt.widgets.Widget.releaseWidget(Widget.java:735) at org.eclipse.swt.widgets.Control.releaseWidget(Control.java:1383) at org.eclipse.swt.widgets.Scrollable.releaseWidget(Scrollable.java:187) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:322) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:112) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:112) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:314) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:321) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:112) at org.eclipse.swt.widgets.Decorations.releaseWidget (Decorations.java:644) at org.eclipse.swt.widgets.Shell.releaseWidget(Shell.java:629) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:355) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:407) at org.eclipse.jface.window.Window.close(Window.java:220) at org.eclipse.jface.window.ApplicationWindow.close (ApplicationWindow.java:188) at org.eclipse.ui.internal.WorkbenchWindow.hardClose (WorkbenchWindow.java:849) at org.eclipse.ui.internal.WorkbenchWindow.busyClose (WorkbenchWindow.java:320) at org.eclipse.ui.internal.WorkbenchWindow.access$3 (WorkbenchWindow.java:309) at org.eclipse.ui.internal.WorkbenchWindow$2.run (WorkbenchWindow.java:365) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.close (WorkbenchWindow.java:363) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:103) at org.eclipse.ui.internal.Workbench$2.run(Workbench.java:199) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:802) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:170) at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:148) at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:288) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.Workbench.close(Workbench.java:286) at org.eclipse.ui.internal.ExceptionHandler.closeWorkbench (ExceptionHandler.java:109) at org.eclipse.ui.internal.ExceptionHandler.handleException (ExceptionHandler.java:94) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1088) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:200) at org.eclipse.core.launcher.Main.run(Main.java:643) at org.eclipse.core.launcher.Main.main(Main.java:476)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace Text/org/eclipse/jface/text/contentassist/ContentAssistant.java