状态处理期间发生 Eclipse 错误

状态处理期间发生 Eclipse 错误

我在运行 Manjaro Linux 的笔记本电脑上使用 Eclipse IDE 2018-12 没有任何问题。过了一段时间,我所做的事情就是更新我的系统。我更新到 Eclipse IDE 2019-03,希望它能解决我的问题。我在 stackoverflow 上看到有人在将 WindowBuilder 添加到 .java 时遇到同样的问题,但我的情况并非如此。这是我的日志:

!SESSION 2019-02-21 12:42:53.973 

-----------------------------------------------
eclipse.buildId=4.10.0.I20181206-0815
java.version=1.8.0_202
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.core.resources 2 10035 2019-02-21 12:43:14.772
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!SESSION 2019-03-23 21:00:12.584 -----------------------------------------------
eclipse.buildId=4.11.0.I20190307-0500
java.version=1.8.0_212
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ja_JP
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.core 1 0 2019-03-23 21:00:39.209
!MESSAGE Using Apache MINA sshd as ssh client.

!ENTRY org.eclipse.ui 4 0 2019-03-23 21:00:45.878
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
    at org.eclipse.swt.SWT.error(SWT.java:4725)
    at org.eclipse.swt.SWT.error(SWT.java:4614)
    at org.eclipse.swt.SWT.error(SWT.java:4585)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:530)
    at org.eclipse.swt.widgets.Control.drawBackground(Control.java:219)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:6751)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:6035)
    at org.eclipse.swt.internal.gtk.GTK._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.GTK.gtk_main_do_event(GTK.java:4135)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1407)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1584)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4577)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1449)

答案1

查看了日志之后,我明白了也许 eclipse 不支持多语言、非英语或 Linux 区域设置实现。

因此,我将系统恢复为美国英语,Eclipse IDE 现在运行良好。

相关内容