I am running Eclipse Helios under Windows 7 and I am experiencing frequent periodic hangs. It seems to happen most of the time just after I select text and issue a "copy" command. This very often results in a 2-10 second hang where the UI is completely frozen. It eventually wakes up and continues as if nothing had happened. No errors are reported in the error log.
Every so often the hang is much longer, and Windows will flag the Eclipse window as "Not responding". This state can last for a minute or more, and again it eventually resumes without any kind of error.
We have observed similar - unreproducible - problems when pasting
(copying was always fast) and we even once had VisualVM attached to
Eclipse during such a blockage. Result: Eclipse does not produce
any load, I/O, GC or so during these annoying breaks.
As this happened only on the Vista installations of one particular
customer, we assumed that something external like the virus scanner,
some Windows or CheckPoint Device Control security feature or so
delays clipboard operations.
For unknown reasons, the problem seems to have stopped some time ago.
A new Eclipse version was not installed, but who knows what the
various Windows, Virus Scanner, ... updates constantly installed in
these enterprise managed Windows environments really do?
I have a colleague who has observed the same hang behavior in her Eclipse environment. In her case, she's using XP, but her Eclipse is configured pretty much identical to mine. Neither of us experience these hangs in any other text editor on our systems. I think I may try disabling some Eclipse plug-ins to try to track down the cause. Clearly something within Eclipse is interacting badly with something in the OS.
We even observed the issue with a plain vanilla Eclipse SDK. And by
the way, it did not happen all the times. There were good days and
bad days. And to make things even more complicated, the problem did
not even surface on all team members machines.
As we have an inhouse distribution of Eclipse and all developers are
using it, I am not certain that this is a systematic bug in Eclipse.
But we have not tracked it down because one day the problems went away
and I could therefore be wrong about that.
We've discovered that the problem appears to be less severe if the Windows 7 "Power" service is turned off. Unfortunately, turning this service all also disables all audio, so that's not exactly an ideal solution. Plus, turning off/on requires a system reboot.
One thing that puzzles me is that I have not observed these hangs with any other text editor accessing the same files.
Yes, the type of editor would make a difference, I agree. In this case I'm referring to the main Java editor. I tried some quick tests with the plain text editor in Eclipse and I didn't notice any particular slowdowns. Of course, the big advantage of an IDE is all of the language specific tools provided as you code, so I don't really want to program Java in the plain text editor.
I think my next test will be to migrate to Linux and see how Eclipses performs in that environment.
In my company we got the same problem with the copy and paste actions. We use mainly the Java Editor. We experienced smaller hangs since Eclipse Ganymede, but with the current Indigo version the hangs got unbearable.
I started Eclipse with a java console - always when eclipse hanged, the stacktrace shown, that eclipse opened some jar-files. So i removed all referenced libraries and the hangs disappeared, but this is no solution .
We also got hangs, when we dived through the code (Ctrl + click on a class name).
Btw.: In our case, every developer experiences these hangs!
We discovered that the hangs just appear in one project, the other projects in the same workspace wont cause hangs. The only differentiating factors are, that this projekt contains more referenced libraries and it contais graphical classes (swing).
Im experiencing the same problem. I have eclipse Indigo on Windows XP. Im also working with a lot of swing components. When doing Ctrl+C (copying), Ctrl+Space (autocompleting) or Ctrl+clicking an object (moving to class definition) eclipse hangs for a minute or so.
Its all very nice that we are sharing our problems and complaints here but is someone from the eclipse staff going to address this ? or is this like a AA support group ? its becoming impossible to work. I spend most of my time staring at the screen fogetting what i wanted to do.
Russell Bateman Messages: 3245 Registered: July 2009 Location: Provo, Utah, USA
On 5/14/2012 4:30 AM, Asaf Kinamoni wrote:
> Im experiencing the same problem. I have eclipse Indigo on Windows XP.
> Im also working with a lot of swing components. When doing Ctrl+C
> (copying), Ctrl+Space (autocompleting) or Ctrl+clicking an object
> (moving to class definition) eclipse hangs for a minute or so.
> Its all very nice that we are sharing our problems and complaints here
> but is someone from the eclipse staff going to address this ? or is this
> like a AA support group ? its becoming impossible to work. I spend most
> of my time staring at the screen fogetting what i wanted to do.
What Eclipse staff were you thinking of? Eclipse is free--developed by a
community of users. You can't expect the committers to shoulder
responsibility for your problems.
You haven't given enough information to diagnose much. Which editor
appears to hang? How long have you waited? Does this happen only on
source files consuming SWT? Have you tried describing this exact
behavior in the Eclipse SWT forum? Have you disabled one or more
validations that might be taking some time or consuming web resources
that are unreachable from your location?
Etc. You need to be more helpful if you want us to be helpful.
My eclipse indigo hangs occasionally when trying to open java files
eventhough any server not running, no files already opened. IDE hangs for around 2 mins. No errors in log, not sure which causing the issue.
OS: Vista Home Premium 64bit
Eclipse Platform: 32bit Indigo
Freddy Angel Messages: 4 Registered: April 2011 Location: Brisbane, Australia
Same problem here!
I have the latest Helios 3.7.2 with PDT, everything up to date. Hangs take place almost every time I select a piece of code and copy it (CTRL+C), as others have already said, Windows 7 - in my case - label the window as "Not Responding" and after some time (5 seconds to 3 minutes) it came back to life as normal.
In an attempt to find a solution, I create a new clean workspace and import my projects again but the problem persist. The only additional plugins I have installed are Subeclipe (SVN) and Aptana Studio.
Any idea that could lead to a solution to this problem will be appreciated.
Old post, but thought I would share in case anyone else stumbles on it.
I had this problem with a QNX incarnation of Eclipse called Momentics.
For me, disabling Hyperlinking fixed the delays. Yes it means I dont have hyperlinking but at least I can copy and paste.
Under Preferences->Editors->Text Editors->Hyperlinking.
For reference, this was for .h and .cpp files.
The issue is when you hit the Ctrl key it tries to resolve all of the known class names on the screen.
A similar issue occurs if you have auto-completion on. When editing C++ for example, I was experiencing similar delays when typing ".", "," or ":", basically whenever it looked up the "intellisense" database.
I was getting this on my old laptop, bought a new one, and it was fine for a while and now it has come back, its infuriating and its taking about 10 times longer to do any coding than normal.
About 1 second after I stop typing it hangs (actually it appears to be the Java SE that is the "problem" I just typed in "xxx" and then waited for a second, and in task manager the Java SE Binary creeped up to 76% CPU showed as "not responding" then back down to 0% at which point I was able to type again!!
I have recorded a quick video to demonstrate whats going on, my battery is about to die, so there is a warning about that at the end, but other wise you can see the pause that happens as I am trying to type "int i=0;" and then change that to "int i=15;" its really causing me pain!! LOL
From our experience, this issue happens a lot because while performing "ctrl+..." you are pressing mouse left key. This means in Java/C++ and other editor to perform navigation to the selection. In some cases, especially in C++ it could get eclipse stuck while eclipse is trying to perform navigation. Could you please see if this issue is solved if you disable Window->Perefernces->General->Editors->Text Editors->Hyperlinking ?
In our case it solved the problem. And instead of using CTRL+mouse left button, we are using F3.