Eclipse 未处理的事件循环异常,不再处理 Windows 7
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19330665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Unhandled event loop exception, no more handles Windows 7
提问by user2873159
My Eclipse is used to develop Android Apps. It worked fine until one day, a Unhandled event loop exception is prompt. The log is shown below.
我的 Eclipse 用于开发 Android 应用程序。直到有一天,它工作正常,提示未处理的事件循环异常。日志如下所示。
To trigger the error prompt, just unfocus the text editor in eclipse and focus it again, then the prompt is triggered, For example, click on the Package explorer (Red circle) and click on the code (Green circle) in Main.java in Eclipse. (.xml are the same).
要触发错误提示,只需在eclipse中取消焦点文本编辑器重新聚焦,然后触发提示,例如点击Package explorer(红色圆圈)并点击Main.java中的代码(绿色圆圈)蚀。(.xml 是相同的)。
But, if I unfocus the code by clicking Package Explorer (Red circle) then click on the title of the code (Blue circle) and then click on the code (Green circle), the error will not be prompted.
但是,如果我通过单击Package Explorer(红色圆圈)然后单击代码标题(蓝色圆圈)然后单击代码(绿色圆圈)来取消对代码的关注,则不会提示错误。
P.S. the Android app can be compiled and work fine in the device by using the Eclipse. But the error prompt is very annoying.
PS Android 应用程序可以通过使用 Eclipse 编译并在设备中正常工作。但是错误提示很烦人。
![enter image description here][1]
![在此处输入图像描述][1]
I have tried:
我试过了:
Download the new ADT (Eclipse) form android developer and unzip it, not working, still no more handles
Download Eclipse Standard 4.3.1 and unzip it, not working
Restart computer, Restart Eclipse. Not working
Create a new account of Windows 7 and use the new account to open the same eclipse (throw error in the old account) with same workspace, It works. No exception is throw.
I tried to replace the C:\oldUser.android with C:\oldUser.android, old user still exception
Change the default editors in Preferences > General > Editors > File Association > *.xml and Android Manifest, not working
Reset Perspective in Eclipse, not working
Change workspace and use new workspace, not working
下载新的ADT(Eclipse)表单android developer并解压,不工作,仍然没有更多句柄
下载 Eclipse Standard 4.3.1 并解压,不工作
重启电脑,重启Eclipse。不工作
创建一个 Windows 7 的新帐户,并使用新帐户在相同的工作区中打开相同的 eclipse(在旧帐户中抛出错误),它可以工作。throw 也不例外。
我试图用 C:\oldUser.android 替换 C:\oldUser.android,老用户仍然异常
在 Preferences > General > Editors > File Association > *.xml 和 Android Manifest 中更改默认编辑器,不起作用
在 Eclipse 中重置透视图,不起作用
更改工作区并使用新工作区,不起作用
I want to use the old user account to open Eclipse properly. It is weird. Please help. Thank you very much!!
我想使用旧用户帐户正确打开 Eclipse。真奇怪。请帮忙。非常感谢!!
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Control.createHandle(Control.java:704)
at org.eclipse.swt.widgets.Label.createHandle(Label.java:199)
at org.eclipse.swt.widgets.Control.createWidget(Control.java:744)
at org.eclipse.swt.widgets.Control.<init>(Control.java:112)
at org.eclipse.swt.widgets.Label.<init>(Label.java:101)
at org.eclipse.ui.texteditor.StatusLineContributionItem.fill(StatusLineContributionItem.java:182)
at org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:59)
at org.eclipse.jface.action.StatusLineManager.update(StatusLineManager.java:327)
at org.eclipse.ui.internal.WorkbenchPage.updateActivations(WorkbenchPage.java:265)
at org.eclipse.ui.internal.WorkbenchPage.access(WorkbenchPage.java:243)
at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:172)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.run(PartServiceImpl.java:193)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:191)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:596)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:549)
at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:105)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.handleEvent(ContributedPartRenderer.java:61)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1447)
at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2328)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4572)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:3129)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3753)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Session Data:
Framework arguments: -product com.android.ide.eclipse.adt.package.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.product
回答by joey leavell
----- Display Fusion FIX -----
----- 显示融合修复 -----
- Open Display Fusion settings page
- Click compatibility tab
- Add "Eclipse.exe"
- Check "Disable TitleBar Buttons (this application only), "Disable Application Hooks (this application only)", and "Use Process file icon on DisplayFusion taskbar, not window icon"
- 打开 Display Fusion 设置页面
- 单击兼容性选项卡
- 添加“Eclipse.exe”
- 选中“禁用标题栏按钮(仅限此应用程序)、禁用应用程序挂钩(仅限此应用程序)”和“在 DisplayFusion 任务栏上使用进程文件图标,而不是窗口图标”
This fix seemed to work for me, the most likely cause for the fix is the "Disable Application Hooks (this application only)", but the 3 worked for me so I have no need to test it further
此修复程序似乎对我有用,修复的最可能原因是“禁用应用程序挂钩(仅限此应用程序)”,但 3 对我有用,因此我无需进一步测试
回答by greg-449
This is an Eclipse bug, described here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=402983
这是一个 Eclipse 错误,描述如下:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=402983
回答by Rorudo
You have to disable nView Desktop Manager. right click on desktop -> "nView Desktop Manager" -> press "Disable" button
您必须禁用 nView 桌面管理器。右键单击桌面->“nView 桌面管理器”-> 按“禁用”按钮
回答by Evilripper
Same problem here! :( It seems someone resolved this issue installing all windows updates. A workaround is use another editor for example (it worked for me): http://download.eclipse.org/windowbuilder/WB/release/R201309271200/4.3/I found this information on stackeroverflow: Eclipse Bug: Unhandled event loop exception No more handles
同样的问题在这里!:( 似乎有人在安装所有 Windows 更新时解决了这个问题。解决方法是使用另一个编辑器(它对我有用):http: //download.eclipse.org/windowbuilder/WB/release/R201309271200/4.3/我发现stackeroverflow 上的这些信息:Eclipse Bug: Unhandled event loop exception No more handles
Update: I installed all windows update and now eclipse Works fine with the default java editor and the issue disappeared.
更新:我安装了所有 Windows 更新,现在 eclipse 使用默认的 java 编辑器可以正常工作,问题消失了。
回答by Florian
I deinstalled Logitech SetPoint Software This solved this issue for me
我卸载了罗技 SetPoint 软件这为我解决了这个问题
回答by raggnic
This bug has bothered me for quite a while.
这个bug困扰了我很久。
I have a nvidia GPU, and if nView is enabled it happens all the time. Try to disable it.
我有一个 nvidia GPU,如果启用了 nView,它就会一直发生。尝试禁用它。
回答by inor
I just closed the perspective i was working in (and a few others), closed Eclipse, then restarted Eclipse and that solved the problem (i could open all the perspectives i needed after that)
我刚刚关闭了我正在使用的透视图(以及其他一些透视图),关闭了 Eclipse,然后重新启动了 Eclipse 并解决了问题(之后我可以打开我需要的所有透视图)
回答by Invincible_cooler
First of all, Eclipse team should fix it up. but It takes time.
首先,Eclipse 团队应该修复它。但这需要时间。
Just do system rollback if it occurs after some program installed. A
如果在安装某些程序后发生系统回滚,请执行系统回滚。一种