Eclipse hangs at startup

I was working on my Macbook when the battery ran out. Now Eclipse refuses to start, getting stuck on the "Download Workbench". Stop chart below - press ^ C after a minute or so to hang.

~/Downloads/eclipse$ ./Eclipse.app/Contents/MacOS/eclipse -clean -debug -consolelog Start VM: -Dosgi.requiredJavaVersion=1.5 -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Xms40m -Xmx256m -XX:MaxPermSize=256m -Dorg.eclipse.swt.internal.carbon.smallFonts -clean -Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os macosx -ws carbon -arch x86 -showsplash -launcher /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/eclipse -name Eclipse --launcher.library /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731/eclipse_1115.so -startup /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -clean -debug -consolelog -vm /System/Library/Frameworks/JavaVM.framework -vmargs -Dosgi.requiredJavaVersion=1.5 -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Xms40m -Xmx256m -XX:MaxPermSize=256m -Dorg.eclipse.swt.internal.carbon.smallFonts -clean -Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar Install location: file:/Users/admin/Downloads/eclipse/ Configuration file: file:/Users/admin/Downloads/eclipse/configuration/config.ini loaded Configuration location: file:/Users/admin/Downloads/eclipse/configuration/ Framework located: file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar Framework classpath: file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar Splash location: /Users/admin/Downloads/eclipse/plugins/org.eclipse.platform_3.3.101.v200902111700/splash.bmp Debug options: file:/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/.options not found Time to load bundles: 16 Starting application: 3649 !SESSION 2011-08-30 18:03:17.958 ----------------------------------------------- eclipse.buildId=M20090211-1700 java.version=1.6.0_26 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US Command-line arguments: -os macosx -ws carbon -arch x86 -clean -debug -consolelog !ENTRY org.eclipse.core.resources 2 10035 2011-08-30 18:03:22.073 !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. !ENTRY org.tigris.subversion.clientadapter.javahl 1 0 2011-08-30 18:03:22.782 !MESSAGE Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path java.library.path = .:/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java ^C Exception in thread "Thread-1" org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:3777) at org.eclipse.swt.SWT.error(SWT.java:3695) at org.eclipse.swt.SWT.error(SWT.java:3666) at org.eclipse.swt.widgets.Widget.error(Widget.java:681) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:341) at org.eclipse.swt.widgets.Shell.getShells(Shell.java:885) at org.eclipse.swt.widgets.Shell.kEventWindowHidden(Shell.java:1213) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2044) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4171) at org.eclipse.equinox.launcher.JNIBridge._takedown_splash(Native Method) at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:110) at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863) at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:106) 

Any ideas? I think I will try to install JavaHL if there are no other suggestions. Eclipse always complained about it, but it always started earlier.

+6
source share
8 answers

Yup, JavaHL was likely cuprite as it solved the problem. It is still strange that Eclipse has never hung before for this reason, but after the accident it did.

+2
source

The procedure shown at http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/ worked for me

  • cd.metadata / .plugins
  • mv org.eclipse.core.resources org.eclipse.core.resources.bak
  • Launch eclipse. (It should show an error message or an empty workspace because no projects were found.)
  • Close all tabs of open editors.
  • Close the eclipse.
  • rm -rf org.eclipse.core.resources (Delete the newly created directory.)
  • mv org.eclipse.core.resources.bak / org.eclipse.core.resources (Restore original directory.)
  • Launch eclipse and get started. :-)
+11
source

Most solutions delete or modify metadata, unfortunately, this often removes SVN and library information from projects, which are a major waste of time.

I found a command line switch (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=389738 ) that clears any saved state (open windows, etc.) that usually cause a startup hang: -clearPersistedState.

Now I use a number of options:

  • In the terminal, enter <eclipse dir>/eclipse -clean -refresh -debug -consolelog -clearPersistedState
  • Open the workspace that is causing the problem.
  • Wait until the eclipse is fully launched and ready, then close it and run it again normally

This always solves startup problems for me.

+9
source

Instead of creating a new workspace, simply delete the .metadata folder, which is inside your workspace folder. This will allow you to load the workspace and simply re-import all the projects and settings into it - this will save you some time. Another thing you can check before you do this, or before you re-create the workspace: look at the .log file (which is located in this folder. Metadata) for information that may highlight the cause of the problem a little.

+4
source

As Tonnie says, the comments, creating a new workspace did the trick for me.

0
source

I often run into this problem. Not sure about the reason.

Deleting my workspace works, but I don't like to set it all up again. Once I solved this, when I moved my workspace to another location, launched Eclipse and uninstalled a few plugins that I no longer needed. Then I deleted the newly created workspace and transferred the old one.

I assume that you can try without deleting anything and do not help.

0
source

I had the same problem, if you follow the link, I will explain what I did

Eclipse Luna Hanging when loading debug configuration

It seems that the .Lock file was not properly closed in the .metadata folder and did not allow eclipse to start working with the workbench.

delete the .metadata folder and then just re-import the project, this should make it work again.

0
source

In one case, I had to delete the file .metadata/.plugins/org.eclipse.core.resources/11.snap

This file was the only non-hidden file in the org.eclipse.core.resources folder.

Thus, everything in the workspace was saved.

0
source

Source: https://habr.com/ru/post/896271/


All Articles