Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
349 views
in Technique[技术] by (71.8m points)

eclipse - STS 4.8.0 on Ubuntu 16.04 Import dialog error "Unhandled event loop"

Click on Import to use code templates in STS at Windows -> Preferences -> Java -> Code Style -> Formatter, an error pops up about "Unhandled event loop exception", suggesting to exit the workbench

Kindly suggest a way to resolve:

Environment details:

eclipse.buildId=4.8.0.202009151856-RELEASE java.version=14.0.2 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.springframework.boot.ide.branding.sts4 Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.springframework.boot.ide.branding.sts4

Error details: Unhandled event loop exception

org.eclipse.swt.SWTError: No more handles at org.eclipse.swt.SWT.error(SWT.java:4895) at org.eclipse.swt.SWT.error(SWT.java:4784) at org.eclipse.swt.SWT.error(SWT.java:4755) at org.eclipse.swt.widgets.Dialog.error(Dialog.java:202) at org.eclipse.swt.widgets.FileDialog.openNativeChooserDialog(FileDialog.java:345) at org.eclipse.swt.widgets.FileDialog.open(FileDialog.java:329) at org.eclipse.ui.texteditor.templates.TemplatePreferencePage.import_(TemplatePreferencePage.java:1224) at org.eclipse.ui.texteditor.templates.TemplatePreferencePage.lambda$8(TemplatePreferencePage.java:949) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5745) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5013) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4507) at org.eclipse.jface.window.Window.runEventLoop(Window.java:823) at org.eclipse.jface.window.Window.open(Window.java:799) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:474) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:579) at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5745) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5013) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4507) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) 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:551) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153)

Attempts to resolve referring similar questions did not help:

  1. Tried to update ~./profile with export GTK_IM_MODULE=ibus

  2. Increase Xmx

-Xms256m -Xmx8192m

question from:https://stackoverflow.com/questions/65879483/sts-4-8-0-on-ubuntu-16-04-import-dialog-error-unhandled-event-loop

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...