No sabe dónde publicar esto: es necesario que haya un hilo genérico "Eclipse colgantes"!
Mi problema fue Eclipse colgado (en Windows) después de un tiempo que va desde unos pocos minutos hasta unos minutos después de la puesta en marcha.
Al mirar el archivo de registro, "workspace.metadata.log", solo me apuntó en la dirección incorrecta (eliminando los complementos aleatorios señalados por seguimientos de pila).
me habría ahorrado un montón de problemas mirando primero eventvwr, ya que resultó ser un problema de permisos en:
"%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache"
Aquí está el error que aparece en eventvwr:
taskhost (2404) WebCacheLocal: An attempt to open the file
"C:\Users\Malcolm.Boekhoff\AppData\Local\Microsoft\Windows\WebCache\V01.chk"
for read/write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
Específicamente, comprobar los permisos en el archivo "V01.log":
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T
Fix añadiendo a sí mismo con pleno acceso:
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T /Q /C /GRANT "%USERDOMAIN%\%USERNAME%:F"
Más información:
Aquí está la lista embarazosa de la pérdida de tiempo que he intentado gracias a Google.Ninguno de ellos trabajó:
- Disable: "Code Recommendations"
- Disable: "General"."Notifications" (used to be under "Mylyn")
- Disable: "Install/Update"."Automatic Updates"
- Disable: "Java"."Code Coverage"
- Disable: "News": "Preferences"."General"
- Remove the "org.eclipse.rse.*.jar" files, except for "org.eclipse.rse.shells.ui_3.0.500.201403271554.jar", from the "plugins" directory.
- Remove all maven jars
- Remove all gradle jars
- Specify: "-Declipse.log.level=ALL" in VM args (I think I forgot to also specify "-debug")
- etc.
Si alguien está interesado, aquí está mi línea de comandos Eclipse:
start "eclipse" /max "c:\eclipse-jee-oxygen-1a-win32-x86_64\eclipse\eclipse" -nosplash -clean -consoleLog -debug -data "c:\eclipse-jee-oxygen-1a-win32-x86_64\workspace" -product "org.eclipse.epp.package.jee.product" -vm "c:/Program Files/Java/jdk1.8.0_121/bin/java" "-vmargs" "-Declipse.log.level=ALL" "-Xmx2048m"
Aquí está el registro de la consola de Java que se ve cuando se utiliza "bin/java" (como se arriba) en lugar de "bin/javaw":
Install location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/
Configuration file:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/config.ini loaded
Configuration location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/
Framework located:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
eclipse.properties not found
Framework classpath:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
Debug options:
file:/c:/mcb/religare/work/.options not found
Time to load bundles: 32
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry aft
er the state location is initialized.
Starting application: 5075
org.eclipse.m2e.logback.configuration: Logback config file: C:\eclipse-jee-oxygen-1a-win32-x86_64\workspace\.metadata\.plugins\org.eclipse.m2e.logback.configura
tion\logback.1.8.2.20171007-0217.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://1008.fwk985397764:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://1008.fwk985397764:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
org.eclipse.m2e.logback.configuration: Initializing logback
Application Started: 10507
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt t
o set focus during set focus for: [email protected]375 |
Además, el uso de "debug", se obtiene un archivo, "trace.log" en el directorio .metadata (pero ningún archivo ".log", incluso con "TODOS"):
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]375 |
| main | 2017-10-20 13:09:47.775 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
| main | 2017-10-20 13:09:49.555 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
¿Podría usted pl. ¿Dime más? Me enfrenta a un problema similar, pero no estoy seguro de dónde encontrar ese directorio de sesiones que ha mencionado. – shrini1000
He actualizado mi respuesta para incluir algunos detalles más sobre mi problema y detalles sobre cómo solucionarlo. Espero que ayude. –
@EricG por favor dígame dónde puedo encontrar el directorio mi eclipse se cuelga una y otra vez –