I did a fresh install of Ubuntu 16.04 (64 bit, 4.4.0-31-generic) and downloaded the eclipse neon installer and installed eclipse (not as root) in the ~/opt/ directory I created. Eclipse works fine and I am programming in Java, but after a little while (sometimes a few minutes, sometimes 30 minutes) eclipse suddenly crashes. My mouse moves but I can't click anything anywhere. About 10 seconds later the mouse also crashes and stops moving and the computer becomes unresponsive, and which point I have to hold the power button to turn off the laptop and start it up again.

Any ideas what this might be or possible fixes? I've tried reinstalling eclipse (by removing the installation directory and reinstalling), I've redownloaded the installer again also but no luck. I haven't experienced this problem with other applications yet so I'm presuming it's an eclipse problem.

I've installed openjdk-8-jre and openjdk-8-jdk.

EDIT: Apparently it's been marked as a duplicate question as what to do when Ubuntu crashes, but this issue has been arising while using eclipse. I'm not asking what I should do when it crashes, I'm asking what I should do to stop it crashing in the first place.

  • I have 16 GB of RAM, so that shouldn't be an issue. – Billy Jan 26 '17 at 20:33
  • 1
    I'm aware Eclipse Neon did have an issue with unresponsive shortcuts with GTK3. It would be worth testing to see if Eclipse with GTK3 is the issue here. You can launch Eclipse using GTK2 with SWT_GTK3=0 ./eclipse just to see if there's any difference. – gsxruk Jan 27 '17 at 13:37
  • 1
    @gsxruk, thanks for the suggestion. It appears to be working now. I'll continue using it tomorrow and if I don't have a crash I'll write it as an answer and accept – Billy Jan 27 '17 at 22:21
  • @Billy Good to hear. You'll have to flag for moderator intervention to add a new answer as the question has now been set as a "duplicate". Also, it would be worth adding a bug report with eclipse if you find this is the issue. – gsxruk Jan 28 '17 at 9:55
  • I just had a random crash (no eclipse) when starting up from suspend that might be related. It's the first time it's happened without eclipse so I'll hold out. I've updated the kernel to 4.6 (I've read of problems related to intel graphics). Let's see what happens now... – Billy Jan 28 '17 at 12:32

try add this to eclipse.ini:

-XX:MaxPermSize=768m -Dorg.eclipse.swt.browser.DefaultType=mozilla

work for me!

  • Welcome to Ask Ubuntu. You could improve this answer by explaining why these settings would help the problem. :) – chaskes Feb 11 '17 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.