Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm freezing whole computer on Ubuntu

Tags:

pycharm

freeze

I am running PyCharm 5 with JDK 8 on a Ubunto 15.10. The problem is that Ubuntu comes with 3 different Python versions and when I am prompted to select the correct interpreter version in PyCharm the whole computer simply freezes. Has anyone seen something similar?

like image 658
Ev. Avatar asked Nov 20 '15 10:11

Ev.


People also ask

How do I unfreeze my Ubuntu desktop?

You can make the shortcut Ctrl + Alt + Delete open the System Monitor, with which you can kill any unresponsive applications.

What is causing Ubuntu to freeze?

If you are running Ubuntu and your system randomly crashes, you may be running out of memory. Low memory could be caused by opening more applications or data files than will fit in the memory you have installed. If that is the problem, do not open so much at one time or upgrade to more memory on your computer.

Why PyCharm is not opening in Ubuntu?

Fixed: broken desktop entry (launcher) for PyCharm in Ubuntu Follow. Sometimes a desktop entry (launcher) for PyCharm gets broken as a result of upgrading your Ubuntu Linux system, or updating PyCharm. and use Tools > Create Desktop Entry to create a new, working desktop entry.


1 Answers

To answer the question: yes, exactly the same behaviour but with OpenJDK 7 and OpenJDK 8. It freezes the UI; the computer can be accessed eg via SSH so you can kill the PyCharm Java process. I have not been able to investigate further (instead I went back to my old machine, OS X, on which PyCharm is bundled with a Java interpreter).

EDIT with workaround: change the UI Theme in the Settings. In the Settings dialog, under Appearance & Behaviour > Appearance change Theme from 'GTK+' to 'Intellij'. I saved this change, restarted PyCharm, and I am not seeing the freeze. Bug reports on Ubuntu Launchpad and bugs.debian.org suggest problems with GTK+ and OpenJDK, for example:

https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798131

like image 78
Ben Weiner Avatar answered Oct 19 '22 01:10

Ben Weiner