Run Pycharm CE on RPi gives insufficient memory for the JRE

Hi all :)

This is my first post here. As I just started to learn Python and in the same time the PyCharm CE IDE, I wanted to install it on a Raspberry Pi with Raspbian GNU/Linux 11 (bullseye) with 4GB of RAM. As I saw it is possible I tried it. But I do not manage to use it as it crashes systematically sometimes immediately and sometimes after a while.

I tested multiple PyCharm versions v2023.2, 2022.3.3 with JRE OpenJDK 17.0.7 with no success.

I also tested in forcing the JVM and the Java options with for example :

$ JAVA_TOOL_OPTIONS="-Xmx512M -Xms512M" JAVA_HOME=/usr/lib/jvm/java-17-openjdk-armhf/ /data/noinstall/pycharm-community-2022.3.3/bin/pycharm.sh &

but with no more success !

In short it is unusable !

Is it really possible to install it on a RPi or must I turn to another EDI ?

With adelphity

lnj

0

Noboby can help me ? More explanations ?

0
Hi, if you start the IDE with `-XX:ErrorFile=` VM option, it should generate the crash dump. You can share it here to have somewhere to start.

Also, consider trying the Professional version, which has the SSH interpreter (https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html), so you can install it on your desktop, and run the code on the Pi device remotely.
0

Thank you for your help :)

Hi, if you start the IDE with `-XX:ErrorFile=` VM option, it should generate the crash dump. You can share it here to have somewhere to start.

I do not managed to log what happened with JVM (no such file or directory). I tried the following command (maybe it is not the good usage) :

root@raspberrypi:~# JAVA_OPTS="-XX:ErrorFile=/root/pycharm.log" JAVA_HOME=/usr/lib/jvm/java-17-openjdk-armhf/ /data/noinstall/pycharm-community-2023.2/bin/pycharm.sh &
root@raspberrypi:~# ls -l /root/pc.log
ls: cannot access '/root/pc.log': No such file or directory

What is wrong ?

0
Is it pycharm.log or pc.log? Your example shows different file names. 

See this StackOverflow post about using the option: https://stackoverflow.com/q/22618582/10895914
And documentation: https://www.oracle.com/java/technologies/javase/vmoptions-jsp.html#DebuggingOptions
0

Sorry, indeed pycharm.log was not the real file as I named it for clarity of the message (pc.log making no sense) and forgot to apply the change elsewhere.

So yes VM parameter -XX:ErrorFile seems not working so I can not post what happened.

0

请先登录再写评论。