Summary: | [Workbench] Eclipse refuses to run twice in succession; have to install a new workspace | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Caspian Rychlik-Prince <cprince> |
Component: | UI | Assignee: | Nick Edgar <n.a.edgar> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | darin.eclipse |
Version: | 2.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Caspian Rychlik-Prince
2003-02-04 18:20:51 EST
Moving to JDT Core for comment. Which actual build is the stack trace corresponding to ? Did you trying using a different JRE to launch Eclipse on ? I20030107 and later I tried I20030129 After this went wrong a few times I tried using M3 - which had worked fine since its release - and that failed to start up too. The problems only occur when I import these new Java projects I'm working on. (Is there any metadata I could send you which might help you diagnose the troubles without having to send you a pile of source code?) I've only used JDK1.4.1_01 with Eclipse - don't have any others. I will try the latest integration build released today (5 Feb 2003) and see if that's cured it. Cas :) We need steps to reproduce. (Of course I can't use the 5/2 build because it's got a big red cross next to it). The only steps I can think of to reproduce the error are: Start Eclipse Edit away for a few days Close Eclipse Attempt to re-open Eclipse Today Eclipse crashed with a NPE in its innards and deleted my entire source tree for the project I had selected - saved only by CVS, only lost a day's work. You might want to file this under another bug but I suspect it's releated: !ENTRY org.eclipse.ui 4 4 Feb 05, 2003 18:47:53.233 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Feb 05, 2003 18:47:53.233 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchWindow$12.shellActivated(WorkbenchWindow.java:1 462) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:157) 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.Widget.sendEvent(Widget.java:861) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1246) at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:1139) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2755) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1218) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2198) at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method) at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:508) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:369) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:470) at org.eclipse.jface.window.Window.close(Window.java:223) at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:727) at org.eclipse.jface.dialogs.MessageDialog.buttonPressed(MessageDialog.java:141) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87) 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:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.jface.window.Window.runEventLoop(Window.java:561) at org.eclipse.jface.window.Window.open(Window.java:541) at org.eclipse.jface.dialogs.MessageDialog.openQuestion(MessageDialog.java:318) at org.eclipse.ui.internal.Workbench$4.handleException(Workbench.java:308) at org.eclipse.core.internal.runtime.InternalPlatform.handleException(InternalPlatf orm.java:448) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:869 ) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:294) at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:272) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:434) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65) at org.eclipse.ui.internal.Workbench.close(Workbench.java:432) at org.eclipse.ui.internal.Workbench.close(Workbench.java:424) at org.eclipse.ui.internal.Workbench.close(Workbench.java:418) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:335) at org.eclipse.ui.internal.WorkbenchWindow.access$3(WorkbenchWindow.java:328) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:384) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:382) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:482) at org.eclipse.jface.window.ApplicationWindow.handleShellCloseEvent(ApplicationWind ow.java:215) at org.eclipse.jface.window.Window$2.shellClosed(Window.java:433) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:152) 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.Widget.sendEvent(Widget.java:861) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:845) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1258) at org.eclipse.swt.widgets.Shell.WM_CLOSE(Shell.java:1148) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2758) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1218) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2198) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1287) at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:73) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:392) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2832) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1218) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2198) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1287) at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:73) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:392) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2832) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1218) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2198) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1292) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1408) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1240) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1223) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:84 5) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a: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) Cas :) You crash might be a bug in SWT. Your latest problem is in Eclipse/UI. Move to Platform/UI for investigation. Would it be possible you run out of memory? Do you use the parameter -Xmx ? Which build were you using when you got the NPE (last exception)? WRT the original problem, Eclipse not restarting, no, I tried all manner of command line arguments (most permutations of -server, -mx256m, -ms256m, -Xincgc, -Xconcgc, -Xint and -Xbatch). The crash might occur in different places but the end result is always the same; JVM terminated, exit code 1. I suspect that blaming the SWT is a red-herring here - I am more inclined to think that some workspace files are corrupted during execution and cause subsequent failure. I will try to reproduce the error and zip my workspace up for you to have a look at. Now using the 6/2 integration build. Cas :) We have two very important problem here. 1 - Eclipse is crashing; 2 - You lost data (src folder) If you could try reproducing them you be very helpfull. The NPE in WorkbenchWindow has been fixed. Darin, have you seen this EXCEPTION_ACCESS_VIOLATION in 1.4.1_01 before? I/We have seen exception access violations on that VM (I'm not sure if it was the exact same one). However, we have not come up with reproduceable test cases that cause the problem. Not able to reproduce this, therefore we have no fix candidate for 2.1. Note: Xmx256M (or whatever value you like) must be the last command line arguement, otherwise it is ignored. Is this still a problem? Or do the latest release/integration builds work properly now? No response. Closing as WORKSFORME. |