Community
Participate
Working Groups
I am not sure how to reproduce the issue here. I imported some plugins and extracted the source, some as binary plugins. I created a project, I created a package 'org', then I create a package 'org.junit.help' I then attempted to create a class, I named the class 'My JUNIT" (I understand this is not a valid name) then hit Browse to search the super class The progress monitor shows indexing classes, it went up to 0 then the progress monitor showed 'searching 620 classes'. The dialog didn't move for 5 minutes. The dialog was responsive as cancel, stopped the search Then a dialog opened saying an error occured ***************** !SESSION Mar 10, 2003 09:58:27.375 -------------------------------------------- - java.version=1.4.1 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -Xmx2048M -install file:D:/rc2/eclipse/ !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:27.375 !MESSAGE Missing project nature extension for org.eclipse.emf.codegen.jet.IJETNature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:29.171 !MESSAGE Missing project nature extension for org.eclipse.emf.codegen.jet.IJETNature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:39.171 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:39.921 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:40.265 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:41.187 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:41.531 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:42.531 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:43.15 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:44.46 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:44.375 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:45.203 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:45.515 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:46.375 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:46.734 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:48.125 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:49.31 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 09:58:51.375 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.core.resources 1 2 Mar 10, 2003 10:03:18.250 !MESSAGE Missing project nature extension for org.eclipse.team.cvs.core.cvsnature. !ENTRY org.eclipse.pde.ui 4 0 Mar 10, 2003 10:08:30.250 !MESSAGE java.lang.OutOfMemoryError !STACK 0 java.lang.OutOfMemoryError !SESSION Mar 10, 2003 10:34:19.500 -------------------------------------------- - java.version=1.4.1 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -Xmx2048M -install file:D:/rc2/eclipse/ !ENTRY org.eclipse.jdt.core 4 4 Mar 10, 2003 10:34:19.500 !MESSAGE Background Indexer Crash Recovery !STACK 0 java.lang.OutOfMemoryError !ENTRY org.eclipse.ui 4 4 Mar 10, 2003 10:34:35.765 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Mar 10, 2003 10:34:35.781 !MESSAGE java.lang.OutOfMemoryError !STACK 0 java.lang.OutOfMemoryError !ENTRY org.eclipse.core.runtime 4 2 Mar 10, 2003 10:35:45.15 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.core.search.processing.JobManager.discardJobs (JobManager.java:124) at org.eclipse.jdt.internal.core.search.processing.JobManager.shutdown (JobManager.java:405) at org.eclipse.jdt.internal.core.search.indexing.IndexManager.shutdown (IndexManager.java:533) at org.eclipse.jdt.internal.core.JavaModelManager.shutdown (JavaModelManager.java:1549) at org.eclipse.jdt.core.JavaCore.shutdown(JavaCore.java:3004) at org.eclipse.core.internal.plugins.PluginRegistry$2.run (PluginRegistry.java:283) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:867) at org.eclipse.core.internal.plugins.PluginRegistry$1.visit (PluginRegistry.java:296) at org.eclipse.core.internal.plugins.PluginRegistry.accept (PluginRegistry.java:55) at org.eclipse.core.internal.plugins.PluginRegistry.shutdownPlugins (PluginRegistry.java:299) at org.eclipse.core.internal.plugins.PluginRegistry.shutdown (PluginRegistry.java:265) at org.eclipse.core.internal.runtime.InternalPlatform.loaderShutdown (InternalPlatform.java:517) 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.internal.boot.InternalBootLoader.shutdown (InternalBootLoader.java:979) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:850) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) !SESSION Mar 10, 2003 10:44:34.500 -------------------------------------------- - java.version=1.4.1 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -Xmx512M -install file:D:/rc2/eclipse/ !ENTRY org.eclipse.jdt.core 4 4 Mar 10, 2003 10:44:34.500 !MESSAGE Background Indexer Crash Recovery !STACK 0 java.lang.OutOfMemoryError !ENTRY org.eclipse.jdt.core 4 4 Mar 10, 2003 10:49:05.31 !MESSAGE Background Indexer Crash Recovery !STACK 0 java.lang.OutOfMemoryError !ENTRY org.eclipse.jdt.ui 4 10001 Mar 10, 2003 11:03:33.203 !MESSAGE Internal Error !STACK 0 java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:277) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752) !ENTRY org.eclipse.ui 4 4 Mar 10, 2003 11:03:33.953 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Mar 10, 2003 11:03:33.968 !MESSAGE java.lang.OutOfMemoryError !STACK 0 java.lang.OutOfMemoryError !ENTRY org.eclipse.ui.workbench 4 2 Mar 10, 2003 11:03:35.593 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 java.lang.NullPointerException at org.eclipse.swt.widgets.Table.releaseWidget(Table.java:1085) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:711) at org.eclipse.swt.widgets.Composite.releaseChildren (Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:363) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:711) at org.eclipse.swt.widgets.Composite.releaseChildren (Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:363) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:711) at org.eclipse.swt.widgets.Composite.releaseChildren (Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:363) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:711) at org.eclipse.swt.widgets.Composite.releaseChildren (Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:363) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:711) at org.eclipse.swt.widgets.Composite.releaseChildren (Composite.java:315) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:363) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:114) at org.eclipse.swt.widgets.Decorations.releaseWidget (Decorations.java:611) at org.eclipse.swt.widgets.Shell.releaseWidget(Shell.java:707) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:368) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:470) at org.eclipse.jface.window.Window.close(Window.java:238) at org.eclipse.jface.window.ApplicationWindow.close (ApplicationWindow.java:223) at org.eclipse.ui.internal.WorkbenchWindow.hardClose (WorkbenchWindow.java:1131) at org.eclipse.ui.internal.WorkbenchWindow.busyClose (WorkbenchWindow.java:384) at org.eclipse.ui.internal.WorkbenchWindow.access$0 (WorkbenchWindow.java:367) at org.eclipse.ui.internal.WorkbenchWindow$2.run (WorkbenchWindow.java:479) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:65) at org.eclipse.ui.internal.WorkbenchWindow.close (WorkbenchWindow.java:477) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:102) at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:334) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:331) at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:287) at org.eclipse.ui.internal.Workbench$8.run(Workbench.java:450) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:65) at org.eclipse.ui.internal.Workbench.close(Workbench.java:448) at org.eclipse.ui.internal.ExceptionHandler.closeWorkbench (ExceptionHandler.java:102) at org.eclipse.ui.internal.ExceptionHandler.handleException (ExceptionHandler.java:87) at org.eclipse.jface.window.Window.runEventLoop(Window.java:580) at org.eclipse.jface.window.Window.open(Window.java:557) at org.eclipse.jdt.internal.ui.wizards.AbstractOpenWizardAction.run (AbstractOpenWizardAction.java:153) at org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction.run (NewTypeDropDownAction.java:69) at org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction.run (NewTypeDropDownAction.java:100) at org.eclipse.ui.internal.PluginAction.runWithEvent (PluginAction.java:251) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent (WWinPluginAction.java:207) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1777) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1485) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1400) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1383) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) !ENTRY org.eclipse.ui 4 4 Mar 10, 2003 11:04:33.203 !MESSAGE Problems saving workspace !ENTRY org.eclipse.ui 4 1 Mar 10, 2003 11:04:33.218 !MESSAGE Problems occurred while trying to save the state of the workbench. !SUBENTRY 1 org.eclipse.ui 4 1 Mar 10, 2003 11:04:33.218 !MESSAGE Internal Error !STACK 0 java.lang.OutOfMemoryError !SESSION ---------------------------------------------------------------------- !ENTRY org.eclipse.core.launcher 4 0 Mar 10, 2003 11:04:36.109 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.OutOfMemoryError *********** I believe I started the search at 10:35 am
You're getting OutOfMemoryErrors. Start eclipse.exe with -vmArgs -Xmx256Mb (and increase as needed). Let us know if this fixes the problem.
You use -Xmx512M in your command line, but you should use -vmargs -Xmx512M.
Ok to close?
nope as I see two NPE in the log and I didn't get the OutOfMemory message on this one... I agree it may be caused by the OutOfMemory though :-)
You do have OutOfMemoryError prior to NPE. Please try your test case with -vmargs -Xmx256M or more from a fresh workspace.
I understand there is a OutOfMemory :-) My point is that, as a user, I didn't get the notification that an OutOfMemory occured (thus I was surprised that the dialog freezes) As an 'expert' user, looking at the log, I saw two NPE. so: 1) I agree that if OutOfMemory doesn't occur, the NPE may not occur but 2) If they occur, user will open bug. If we cannot prevent the OutOfMemory (and I think we can't) we should at least prevent the NPE, and maybe notify the user. At lest have in the log only OutOfMemory, and no NPE... no ?
The problem is that the behavior is unpredictable after a OutOfMemoryError. Therefore the state of object might be unknown. If it is not easy to report an OutOfMemoryError because it might not be possible to open a dialog without getting another OutOfMemoryError. It is a little like a snake eating its own tail. If increasing the heap size fixes this problem, I think this is the best we can do.
ok, fair enough :-)
Closed.
Updated milestone.