1. 程式人生 > >Eclipse啟動時顯示檢視日誌閃退

Eclipse啟動時顯示檢視日誌閃退

!ENTRY org.eclipse.ui.workbench 4 2 2017-03-24 13:07:24.891
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
org.eclipse.swt.SWTException: Device is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4361)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.widgets.Display.error(Display.java:1258)
	at org.eclipse.swt.widgets.Display.asyncExec(Display.java:709)
	at org.eclipse.cdt.codan.internal.ui.cxx.Startup.registerListeners(Startup.java:42)
	at org.eclipse.cdt.codan.internal.ui.cxx.Startup.earlyStartup(Startup.java:34)
	at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
	at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2412)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

若多次進入Eclipse均出現閃退,顯示檢視日誌彈框,本人出現報錯報文為上述報錯,出現該問題的原因是:由於專案沒有正常關閉而導致"workbench.xmi"中的"persistedState"標籤還保持在執行時的配置造成的。

解決辦法:找到<workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi"檔案刪掉,再重啟Eclipse。