-1

So lately, after a full year working with Eclipse without any big issue, Eclipse gets stuck at any mundane task like building a project, cleaning the workspace, restarting or publishing tomcat or even inputting some text (not even saving the file, just typing the text on screen).

Example of what happened today after booting the pc and opening Eclipse:

1

I battled with this for a day lookup up threads, installing/uninstalling stuff and finally ended creating a whole new workspace, copy pasting the old project (and then importing them) into the new workspace.
This lets me develop for half a day, until it happens again and I have to repeat the process, losing a couple more minutes.

What could be causing this?
I tried changin the memory properties of the eclipse.ini and it seems like nothing changes.
I also changed from OpenJDK 1.8 to Oracle JDK 1.8.
In my workspace, there's a .metadata folder that contains various eclipse plugins, and a .log and .lock file. The .lock is always blank and the .log never seems to tell what caused the problem.

Another example of Eclipse getting stuck. This one is after re deploying.

Notice how there's no text on the progress bar:

2

Screenshot of memory usage:

3

Nimantha
  • 5,793
  • 5
  • 23
  • 56
cabapek
  • 1
  • 2
  • are you using any themes sometimes themes also cause problems – deadshot Jul 09 '20 at 06:46
  • I had the "Light" theme, changed it to 'Classic'. I have been using 'Light' theme since I started using Eclipse (1 year ago) so I guess its not that. But then again, I have changed nothing else from Eclipse and here I am :) – cabapek Jul 09 '20 at 07:20
  • which os are you using and how much ram your system have? – deadshot Jul 09 '20 at 07:21
  • I'm on a win64 machine with CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90Ghz .250GHz and 8GB of RAM. This is my eclipse.ini (for Xms /XmX) -XX:+UseG1GC -XX:+UseStringDeduplication -Xms2048m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=512m Sorry for terrible formatting. – cabapek Jul 09 '20 at 07:27
  • did you try this [how-to-run-eclipse-in-clean-mode](https://stackoverflow.com/questions/2030064/how-to-run-eclipse-in-clean-mode-what-happens-if-we-do-so) – deadshot Jul 09 '20 at 08:41
  • Yes, I did try to run eclipse with the -clean command (both by executing the .exe with paramter, and changing the .ini file) and it still got stuck after an hour or two – cabapek Jul 09 '20 at 08:59
  • Does the project you are opening is small one or multi module project? – deadshot Jul 09 '20 at 09:03
  • Check `Window -> Show View -> Error Log` to see if that prints any error info you could try searching on too – DuncG Jul 09 '20 at 09:06
  • That's _Eclipse IDE for Enterprise Java Developers 2020-06_, right? Have you installed additional plugins? If the UI freezes, enable _UI Responsiveness Monitoring_ (in the preferences in _General_). – howlger Jul 09 '20 at 09:06
  • @cabapek this will help https://stackoverflow.com/questions/844759/eclipse-stuck-when-building-workspace – deadshot Jul 09 '20 at 09:14
  • First of all thanks you all for the replies. I am using Eclipse 2019-06, but I actually downloaded Eclipse 2020-06 a week ago to see if that was the problem, and Eclipse 2020 kept getting stuck. I have checked the Show View --> Error log (and also the .metadata/.log) when it gets stuck, and there's no errors prior to getting stucked (the last entry of the log is quite a few minutes earlier). If it happens again Il edit the main post to include the logs. The only plugin I had installed was EGIT, that I uninstalled a few days ago (yet the problems persist) – cabapek Jul 09 '20 at 09:40
  • @cabapek EGit is built into _Eclipse IDE for Enterprise Java Developers 2020-06_. It might that there are cycles in building the projects by the project builders. It would therefore be important to know how the projects are interdependent and what their nature is (what is in the `.project` files?). – howlger Jul 09 '20 at 12:14

0 Answers0