来自调试器的 Eclipse 超时错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22360362/
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 Timeout Error from the debugger?
提问by Kristy Welsh
I am using Eclipse to develop Android apps. Things seem to run along smoothly while I'm debugging and then Eclipse seems to hang up - a "Not Responding" error. I looked in the log files and I get this timeout error every 3 seconds. Anyone else seen this?
我正在使用 Eclipse 开发 Android 应用程序。当我调试时,事情似乎进展顺利,然后 Eclipse 似乎挂断了 - “无响应”错误。我查看了日志文件,每 3 秒就会收到一次超时错误。还有人看到这个吗?
I have to keep restarting my machine.
我必须不断重新启动我的机器。
!ENTRY org.eclipse.jdt.debug 4 125 2014-03-12 10:18:19.417
!MESSAGE Internal error logged from JDI Debug:
!STACK 0
org.eclipse.jdi.TimeoutException: Timeout occurred while waiting for packet 12963.
at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:186)
at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:197)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:191)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:226)
at org.eclipse.jdi.internal.VirtualMachineImpl.classesBySignature(VirtualMachineImpl.java:638)
at org.eclipse.jdi.internal.VirtualMachineImpl.classesByName(VirtualMachineImpl.java:667)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.jdiClassesByName(JDIDebugTarget.java:1596)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.filterUnloadedTypes(JavaHotCodeReplaceManager.java:348)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.notifyUnsupportedHCR(JavaHotCodeReplaceManager.java:379)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.run(JavaHotCodeReplaceManager.java:322)
at org.eclipse.debug.core.DebugPlugin$AsynchRunner.run(DebugPlugin.java:1068)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.DebugPlugin$AsynchRunner.async(DebugPlugin.java:1051)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:405)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!SESSION 2014-03-12 10:30:21.771 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
采纳答案by Kristy Welsh
You need to run -clean, then use Task Manager (in Windows) to stop adb.exe. Once you do this, things run smoothly.
您需要运行 -clean,然后使用任务管理器(在 Windows 中)来停止 adb.exe。一旦你这样做了,事情就会顺利进行。
回答by Mohammad Nurdin
I suggest you clean up your eclipse using terminal
我建议你使用终端清理你的日食
Mine directory
我的目录
cd /Applications/eclipse_juno/Eclipse.app/Contents/MacOS
Clean command
清理命令
./eclipse -clean
OR
或者
Open up eclipse.ini in your eclipse folder.
打开 eclipse 文件夹中的 eclipse.ini。
Change this line
改变这一行
-Xms512m
-Xmx1024m
into this
进入这个
-Xms768m
-Xmx768m
eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=192m
-Xms768m
-Xmx768m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
If still happen, restart your machine.
如果仍然发生,请重新启动机器。
http://blog.revivalx.com/2014/03/15/your-eclipse-always-crash-how-to-fix-and-enhance-to-do-list/
http://blog.revivalx.com/2014/03/15/your-eclipse-always-crash-how-to-fix-and-enhance-to-do-list/
回答by Emran Hamza
You can increase a value of debugging time out in Eclipse.
您可以在 Eclipse 中增加调试超时值。
Go to Window/Preferences. In the Java/Debug you'll see Debugger Time out parameter.
转到窗口/首选项。在 Java/Debug 中,您将看到 Debugger Time out 参数。
回答by Manish Dodiya
Unselect Window->Preferences->Java->Debug, "Suspend execution on uncaught exceptions"
取消选择 Window->Preferences->Java->Debug, "Suspend execution on uncaught exceptions"
回答by Ram Chhabra
Try this for eclipse
试试这个用于日食
Menu -> Run-> Remove All BreakPoints
菜单 -> 运行 -> 删除所有断点