org.eclipse.swt.SWTError: No more handles解决方法

最近两天eclipse莫名其妙出现如题所示问题 ,以下是详细的错误日志:

org.eclipse.swt.SWTError: No more handles
    at org.eclipse.swt.SWT.error(SWT.java:4517)
    at org.eclipse.swt.SWT.error(SWT.java:4406)
    at org.eclipse.swt.SWT.error(SWT.java:4377)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
    at org.eclipse.swt.widgets.Control.createHandle(Control.java:703)
    at org.eclipse.swt.widgets.Label.createHandle(Label.java:199)
    at org.eclipse.swt.widgets.Control.createWidget(Control.java:743)
    at org.eclipse.swt.widgets.Control.(Control.java:111)
    at org.eclipse.swt.widgets.Label.(Label.java:101)
    at org.eclipse.ui.texteditor.StatusLineContributionItem.fill(StatusLineContributionItem.java:182)
    at org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:58)
    at org.eclipse.jface.action.StatusLineManager.update(StatusLineManager.java:290)
    at org.eclipse.ui.internal.WorkbenchPage.updateActivations(WorkbenchPage.java:305)
    at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:283)
    at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:201)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:245)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:242)
    ......

观察了下出现异常的原因,发现只要鼠标焦点离开代码编辑器,鼠标再点击编辑器,就会出现以上情况。可以断定,这肯定跟editor有关。

然后百度了几种解决方案,试了但都不凑效。最后,联系度娘说的可能是快捷键跟其他软件有冲突,第一反应猜想是杀毒软件的问题,就试着把360安全卫士关掉,问题解决了~~~后来再次启动360,也不会出现以上的异常了~

你可能感兴趣的:(eclipse)