简体   繁体   English

将“ ctrl + space”用于Android自动完成弹出窗口时,Eclipse冻结

[英]Eclipse freezes when using “ctrl+space” for Android autocomplete popup

Last week I faced a problem of windows activation and my windows start slow down. 上周,我遇到了Windows激活问题,并且Windows启动速度变慢。 After I solved that problem, windows run normally as before but I got Errors in Eclipse for developing android applications. 解决完该问题后,Windows可以像以前一样正常运行,但是在开发Android应用程序时出现Eclipse错误。

Everything is OK in Eclipse and I'm using "ctrl+space" in Java Projects is fine, Autocomplete popup is shown and working properly. 在Eclipse中一切正常,我在Java Projects中使用“ ctrl + space”很好,显示了“自动完成”弹出窗口,并且工作正常。

But, when I use "ctrl+space" in Android project, autocomplete popup show with several options and eclipse suddenly freeze for a couple of minutes(sometimes more than 3 or 4 minutes). 但是,当我在Android项目中使用“ ctrl + space”时,带有几个选项的自动完成弹出式显示和日食会突然冻结几分钟(有时超过3或4分钟)。 After that I can choose the first option from the popup by hitting enter, but scroll down or choose another option, it's freeze again and wait for another several minutes. 之后,我可以通过按Enter键从弹出菜单中选择第一个选项,但向下滚动或选择另一个选项,它将再次冻结,并等待几分钟。

Here is my environment. 这是我的环境。

  • Windows 7 (64bit) Windows 7(64位)

  • Eclipse Juno - build id - 20120614-1722 Eclipse Juno-版本号-20120614-1722

  • ADT 22.6.0.v201403010043 ADT 22.6.0.v201403010043

  • JDK-7u51 x64 JDK-7u51 x64

Here is Eclipse.ini file. 这是Eclipse.ini文件。

-startup -启动

plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar plugins / org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

--launcher.library --launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 插件/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813

-product -产品

org.eclipse.epp.package.jee.product org.eclipse.epp.package.jee.product

--launcher.defaultAction --launcher.defaultAction

openFile 打开文件

--launcher.XXMaxPermSize --launcher.XXMaxPermSize

512M 512M

-showsplash -showsplash

org.eclipse.platform org.eclipse.platform

--launcher.XXMaxPermSize --launcher.XXMaxPermSize

256m 256m

--launcher.defaultAction --launcher.defaultAction

openFile 打开文件

-startup -启动

D:\\Android\\Eclipse\\eclipse\\plugins\\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar D:\\ Android \\ Eclipse \\ eclipse \\ plugins \\ org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

--launcher.library --launcher.library

D:\\Android\\Eclipse\\eclipse\\plugin\\org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 D:\\ Android \\ Eclipse \\ eclipse \\ plugin \\ org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813

-vmargs -vmargs

-Dosgi.requiredJavaVersion=1.5 -Dosgi.requiredJavaVersion = 1.5

-Dhelp.lucene.tokenizer=standard -Dhelp.lucene.tokenizer =标准

-Xms1024m -Xms1024m

-Xmx1024m -Xmx1024m

My problem is similar to 我的问题类似于

  1. Eclipse freezes on android related autocomplete Eclipse冻结与Android相关的自动完成功能

  2. eclipse freezes when "android.R.attr" is selected from autocomplete popup 从自动完成弹出窗口中选择“ android.R.attr”时,eclipse冻结

But I'm using the same Eclipse on my desktop and laptop. 但是我在台式机和笔记本电脑上使用的是相同的Eclipse。 Laptop run normally on Android and working fine. 笔记本电脑可以在Android上正常运行,并且运行良好。 The only problem is on my desktop. 唯一的问题是在我的桌面上。 So, upgrading to another Eclipse is not the best option to solve (just my opinion). 因此,升级到另一个Eclipse并不是解决的最佳选择(只是我的看法)。 Because I've tried latest Eclipse (Juno), but problem still happened. 因为我尝试了最新的Eclipse(Juno),但是问题仍然发生。

I think, some program or file is missing after I repaired windows activation which is something like Eclipse Juno - Constant crash when highlighting anything . 我认为,修复Windows激活后某些程序或文件丢失了,这类似于Eclipse Juno-高亮显示任何东西时会崩溃 Then I update my graphic driver, testing html files, everything work like charm.But that time, I uninstalled some software from my system as Blue Stack , ASUS Smart Doctor , Cheat Engine , GTalk and others... (maybe 7 or 8. don't remember all). 然后我更新了图形驱动程序,测试了html文件,所有功能都像魅力一样工作。但是那个时候,我从系统中卸载了一些软件,例如Blue StackASUS Smart DoctorCheat EngineGTalk (可能是7或8。不记得所有)。

I have no idea which program is blocking or making lag of popping up android autocomplete. 我不知道哪个程序阻止了android自动完成功能的弹出或延迟。 I'm using only English Language and not install any other language in my computer, which is like Content Assist (Ctrl + Space) Is Not Working – Eclipse . 我仅使用英语,而没有在计算机中安装任何其他语言,就像Content Assist(Ctrl + Space)不起作用– Eclipse一样 Because I can use "ctrl+space" in java projects. 因为我可以在Java项目中使用“ ctrl + space”。

Another thing is I cannot hover or highlight on anything in every Projects. 另一件事是我无法在每个项目中的任何内容上悬停或突出显示。 Java projects, I can use "ctrl+space" and choose any options from autocomplete popup but cannot hover on some variable, eclipse crash. 在Java项目中,我可以使用“ ctrl + space”并从自动完成弹出窗口中选择任何选项,但是不能将鼠标悬停在某些变量,eclipse崩溃上。 Android projects, both "ctrl+space" and hover on something cannot use, eclipse hang. android项目,“ ctrl + space”和悬停在无法使用的东西上,eclipse挂起。

Can anyone suggest me for my problem. 谁能建议我解决我的问题。

I have had the exact same issue with my Eclipse. 我的Eclipse遇到了完全相同的问题。 You can start by increasing XXMaxPermSize , though there is the possibility that it could make Eclipse unstable. 您可以从增加XXMaxPermSize开始,尽管有可能使Eclipse不稳定。 I haven't had a problem personally, but it came up in the documentation. 我个人没有问题,但是在文档中出现了。 Usually you have to find the balance between MaxPermSize and the Xms value. 通常,您必须在MaxPermSizeXms值之间找到平衡。

The one thing I see that should be changed right away is that your Xms and Xmx are the same. 我认为应该立即更改的一件事是您的XmsXmx相同。 Due to the way the JVM works, they should never be set to the same value. 由于JVM的工作方式,永远不要将它们设置为相同的值。 I suggest either halving Xms or doubling Xmx and see what it does. 我建议将Xms减半或Xmx加倍,然后看看它能做什么。

Another thing you can try is run it with the -clean argument. 您可以尝试的另一件事是使用-clean参数运行它。 You can add it in the .ini or you can put it after the file name under "target" in your shortcut properties. 您可以将其添加到.ini中,也可以将其放在快捷方式属性中“目标”下的文件名之后。

Finally, I solved it! 最后,我解决了!

Mozila firefox was crashed (I don't know how it's happening). Mozila Firefox崩溃了(我不知道它是怎么回事)。 Chrome is my default browser and I tried html files by chrome, that reason why I don't know about crashed Mozila. Chrome是我的默认浏览器,我尝试使用chrome浏览html文件,因此我不了解崩溃的Mozila。 After reinstalled the latest version (Mozila 29 beta) I remember all my working environments as before. 重新安装最新版本(Mozila 29 beta)后,我记得我以前所有的工作环境。

Honestly, I didn't know Android is connected with Mozila (Maybe there is a setting to change or no setting to change). 老实说,我不知道Android是否与Mozila连接(也许有设置要更改,或者没有设置要更改)。 Start from now, I'm gona protect and taking care of Mozila as my son. 从现在开始,我要保护自己,并要作为儿子照顾Mozila。 :D :D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM