Community
Participate
Working Groups
I have been using Eclipse for a year or so now; but in the last 5 days it has been malfunctioning severely. I currently use the latest Integration build since M4 refused to compile any code with inner classes in it. Just recently the integration builds (all since M4) started to go wrong. After I exit Eclipse and subsequently try to start it up again, the JVM exits leaving me with a Hotspot log file (one such attached at the bottom of this message). I have been using JDK1.4.1_01 since it was released without trouble. No other applications cause any problem on my system; in fact, Eclipse was fine until the other day, too. I have re-installed Eclipse only for it to subsequently crash again. I have scandisked my system - nothing occurred but interestingly the problem was fixed, once - and reinstalled Windows XP Pro, and the JDK. I have tried the server VM (crashes in a different place). I have installed service pack 1 on XP. M3 recently started to exhibit the same behaviour. The only thing that has changed in my system recently is that I have some new Java projects in the workspace which I wasn't working on before. Other info: P3-M 1.2GHz, 512Mb RAM, Nvidia GeForce 2 Go (Dell Inspiron 8100), XP Pro, Genetate-RMI-1.3.0 plugin installed ------------------------------------------------------------------- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F53C89 Function=RtlQueryInformationActivationContext+0x76B Library=C:\WINDOWS\System32\ntdll.dll Current Java thread: at org.eclipse.jdt.core.JavaCore.startup(JavaCore.java:2905) at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:7 05) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:867 ) at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(Pl uginDescriptor.java:717) at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDesc riptor.java:188) - locked <02F8C658> (a org.eclipse.core.internal.plugins.PluginDescriptor) at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLo ader.java:114) at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf (PluginClassLoader.java:192) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(Del egatingURLClassLoader.java:499) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC lassLoader.java:891) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLCl assLoader.java:885) at org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass (DelegatingURLClassLoader.java:93) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(D elegatingURLClassLoader.java:563) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC lassLoader.java:899) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC lassLoader.java:871) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) - locked <02A60000> (a org.eclipse.core.internal.plugins.PluginClassLoader) at org.eclipse.jdt.internal.ui.JavaPlugin.registerAdapters(JavaPlugin.java:391) at org.eclipse.jdt.internal.ui.JavaPlugin.startup(JavaPlugin.java:237) at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:7 05) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:867 ) at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(Pl uginDescriptor.java:717) at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDesc riptor.java:188) - locked <02FAD040> (a org.eclipse.core.internal.plugins.PluginDescriptor) at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLo ader.java:114) at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf (PluginClassLoader.java:192) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(Del egatingURLClassLoader.java:499) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC lassLoader.java:891) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC lassLoader.java:871) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(Plu ginDescriptor.java:130) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(Plu ginDescriptor.java:167) at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension (ConfigurationElement.java:103) at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:163) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:160 ) at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.java:647) 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.EditorManager.createPart(EditorManager.java:645) at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:632) at org.eclipse.ui.internal.EditorManager.access$6(EditorManager.java:626) at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.java:886) 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.EditorManager.busyRestoreEditor(EditorManager.java:833) at org.eclipse.ui.internal.EditorManager$6.run(EditorManager.java:826) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65) at org.eclipse.ui.internal.EditorManager.restoreEditor(EditorManager.java:822) at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:727) at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2194) at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1133) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1101) at org.eclipse.ui.internal.Workbench.access$9(Workbench.java:1061) at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:979) 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.openPreviousWorkbenchState(Workbench.java:931) at org.eclipse.ui.internal.Workbench.init(Workbench.java:707) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1211) 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) Dynamic libraries: 0x00400000 - 0x00406000 C:\WINDOWS\system32\javaw.exe 0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll 0x77E60000 - 0x77F45000 C:\WINDOWS\system32\kernel32.dll 0x77DD0000 - 0x77E5B000 C:\WINDOWS\system32\ADVAPI32.dll 0x77CC0000 - 0x77D35000 C:\WINDOWS\system32\RPCRT4.dll 0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll 0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll 0x76390000 - 0x763AA000 C:\WINDOWS\System32\IMM32.DLL 0x629C0000 - 0x629C8000 C:\WINDOWS\system32\LPK.DLL 0x72FA0000 - 0x72FFA000 C:\WINDOWS\system32\USP10.dll 0x6D330000 - 0x6D45A000 C:\Program Files\Java\j2re1.4.1_01\bin\client\jvm.dll 0x76B40000 - 0x76B6C000 C:\WINDOWS\system32\WINMM.dll 0x6D1D0000 - 0x6D1D7000 C:\Program Files\Java\j2re1.4.1_01\bin\hpi.dll 0x6D300000 - 0x6D30D000 C:\Program Files\Java\j2re1.4.1_01\bin\verify.dll 0x6D210000 - 0x6D229000 C:\Program Files\Java\j2re1.4.1_01\bin\java.dll 0x6D320000 - 0x6D32D000 C:\Program Files\Java\j2re1.4.1_01\bin\zip.dll 0x10000000 - 0x10007000 C:\Program Files\eclipse\plugins\org.eclipse.core.resources.win32_2.1.0\os\win32\x86\core_2 _0_5.dll 0x0B380000 - 0x0B3C7000 C:\Program Files\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86\swt-win32-2126.dl l 0x771B0000 - 0x772CA000 C:\WINDOWS\system32\ole32.dll 0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.dll 0x763B0000 - 0x763F5000 C:\WINDOWS\system32\comdlg32.dll 0x772D0000 - 0x77333000 C:\WINDOWS\system32\SHLWAPI.dll 0x773D0000 - 0x77BC4000 C:\WINDOWS\system32\SHELL32.dll 0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll 0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6. 0.0.0_x-ww_1382d70a\comctl32.dll 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\system32\uxtheme.dll 0x60000000 - 0x6004C000 C:\WINDOWS\System32\MSCTF.dll 0x74C80000 - 0x74CAC000 C:\WINDOWS\system32\oleacc.dll 0x76080000 - 0x760E1000 C:\WINDOWS\system32\MSVCP60.dll 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll 0x6D510000 - 0x6D58C000 C:\WINDOWS\system32\DBGHELP.dll 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll 0x76BF0000 - 0x76BFB000 C:\WINDOWS\system32\PSAPI.DLL Local Time = Mon Feb 03 16:42:09 2003 Elapsed Time = 8 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode) #
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.