Non sai da dove pubblicare questo: ci deve essere un filo generico "Eclipse Hanging"!
Il mio problema era Eclipse sospeso (su Windows) dopo un intervallo di tempo che va da pochi minuti a pochi minuti dopo l'avvio.
L'esame del file di registro "workspace.metadata.log", mi ha indirizzato solo nella direzione sbagliata (rimuovendo i plug-in casuali indicati dalle tracce dello stack ).
avrei potuto salvare me stesso un sacco di problemi, cercando prima a eventvwr, perché si è rivelato essere un problema di autorizzazioni in:
"%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache"
Qui è l'errore che compare nel 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).
in particolare, controllare i permessi sul file "V01.log":
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T
Fix con l'aggiunta di soli con accesso completo:
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T /Q /C /GRANT "%USERDOMAIN%\%USERNAME%:F"
Ulteriori approfondimenti:
Ecco l'elenco imbarazzante di perdite di tempo che ho provato grazie a Google.Nessuno di loro ha lavorato:
- 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.
Se qualcuno è interessato, ecco la mia eclissi riga di comando:
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"
Ecco il log della console Java che si vede quando si utilizza "bin/java" (come sopra) invece di "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 |
Inoltre, l'utilizzo di "-debug", si ottiene un file, "trace.log" nella directory .metadata (ma nessun file "log", anche con "TUTTI"):
# !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 |
Potrebbe pl. Dimmi di più? Sto affrontando un problema simile ma non sono sicuro su dove trovare la directory delle sessioni che hai menzionato. – shrini1000
Ho aggiornato la mia risposta per includere altri dettagli sul mio problema e le specifiche su come risolverlo. Spero possa aiutare. –
@EricG per favore dimmi dove posso trovare la directory la mia eclissi si blocca ancora e ancora –