PyCharm doesn't start when no profile exists


#1

Is this issue known? @JetBrains

Starting which Version 2019.2 PyCharm doesn’t start on ubuntu when no profile (PyCharmXX2019.1) exists.
PyCharm stops without any error message.

I’ve tested it with:
Ubuntu 16.04.6 LTS and 18.04.2 LTS

and for
PyCharm Community 2019.2/stable and 2019.3/edge
PyCharm Professional 2019.2/stabe and 2019.3/edge

With Version 2019.1/stable I don’t see this problem.

Ones a profile exists the new versions are working without any problem.

Regards
Lothar


#2

Hi Lothar @lweddewer

We didn’t receive such complains and unfortunately can’t reproduce this.
Could you please provide log files - how to is described here

Regards


#3

Hi @JetBrains,

I’ll try. :blush:

This is the entry in the idea.log:

2019-10-08 07:45:02,918 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-10-08 07:45:02,973 [ 55] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 42 ms
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - IDE: PyCharm (build #PY-192.6817.19, 25 Sep 2019 07:55)
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - OS: Linux (4.15.0-64-generic, amd64)
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - JRE: 11.0.4+10-b304.69 (JetBrains s.r.o)
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - JVM: 11.0.4+10-b304.69 (OpenJDK 64-Bit Server VM)
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:
CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.
attach.allowAttachSelf -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tool
s.attach.tmp.only=true -XX:ErrorFile=/home/lweddewer/java_error_in_PYCHARM_%p.log -XX:HeapDumpPath=/home/lweddewer/java_error_in_PYCHARM.hprof -Didea.paths.selector=PyCharm2019.2 -Djb.vmOptionsFile=/
home/lweddewer/.PyCharm2019.2/config/pycharm64.vmoptions -Didea.platform.prefix=Python
2019-10-08 07:45:03,015 [ 97] INFO - #com.intellij.idea.Main - charsets: JNU=UTF-8 file=UTF-8
2019-10-08 07:45:05,366 [ 2448] INFO - plication.impl.ApplicationImpl - CPU cores: 24; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@47fad5e5[Running, parallelism = 23, size = 0, act
ive = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@5fedd5d
2019-10-08 07:45:05,414 [ 2496] INFO - llij.openapi.wm.impl.X11UiUtil - _NET protocol is not supported
2019-10-08 07:45:05,415 [ 2497] INFO - #com.intellij.idea.Main - WM detected: null
2019-10-08 07:45:06,557 [ 3639] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2019-10-08 07:45:06,562 [ 3644] INFO - org.jetbrains.io.BuiltInServer - web server stopped

It’s running on a VM (KVM on ubuntu).

The logentries repeat every time trying to start.

That are the files in the PyCharm profile after the unsuccessful trying:

lweddewer:~/.PyCharm2019.2
.:
total 16
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxr-xr-x 25 lweddewer lweddewer 4096 Oct 9 11:30 …/
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 config/
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 8 07:45 system/

./config:
total 36
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 ./
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 7 15:17 …/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 codestyles/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 inspection/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 options/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 plugins/
-rw-rw-r-- 1 lweddewer lweddewer 0 Oct 7 15:17 port.lock
-rw-rw-r-- 1 lweddewer lweddewer 534 Oct 7 15:16 pycharm64.vmoptions
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 tasks/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 workspace/

./config/codestyles:
total 12
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 44 Oct 1 14:40 Default.xml

./config/inspection:
total 12
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 77 Oct 7 15:16 Default.xml

./config/options:
total 72
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 138 Oct 1 14:40 colors.scheme.xml
-rw-rw-r-- 1 lweddewer lweddewer 117 Oct 1 14:40 debugger.xml
-rw-rw-r-- 1 lweddewer lweddewer 366 Oct 7 15:16 dimensions.xml
-rw-rw-r-- 1 lweddewer lweddewer 194 Oct 1 14:40 editor.codeinsight.xml
-rw-rw-r-- 1 lweddewer lweddewer 236 Oct 1 14:40 filetypes.xml
-rw-rw-r-- 1 lweddewer lweddewer 134 Oct 7 15:16 ide.general.xml
-rw-rw-r-- 1 lweddewer lweddewer 136 Oct 1 14:40 laf.xml
-rw-rw-r-- 1 lweddewer lweddewer 1029 Oct 7 15:17 other.xml
-rw-rw-r-- 1 lweddewer lweddewer 1126 Oct 7 15:16 recentProjectDirectories.xml
-rw-rw-r-- 1 lweddewer lweddewer 8640 Oct 7 15:17 textmate_os.xml
-rw-rw-r-- 1 lweddewer lweddewer 210 Oct 7 15:17 updates.xml
-rw-rw-r-- 1 lweddewer lweddewer 4456 Oct 1 14:40 usage.statistics.xml
-rw-rw-r-- 1 lweddewer lweddewer 1039 Oct 7 15:17 window.manager.xml

./config/plugins:
total 2728
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 2544244 Oct 7 15:16 availables.xml
-rw-rw-r-- 1 lweddewer lweddewer 40 Oct 7 15:16 availables.xml.etag
-rw-rw-r-- 1 lweddewer lweddewer 233216 Oct 7 15:16 extensions.xml

./config/tasks:
total 16
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 139 Oct 7 15:16 rfs_netflow_service.contexts.zip
-rw-rw-r-- 1 lweddewer lweddewer 139 Oct 7 15:16 rfs_netflow_service.tasks.zip

./config/workspace:
total 12
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 8 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 1925 Oct 7 15:17 1ReRWwFObjGn53aUrieiu4E47FX.xml

./system:
total 16
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 8 07:45 ./
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 7 15:17 …/
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 log/
-rw-rw-r-- 1 lweddewer lweddewer 0 Oct 7 15:17 port.lock
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 8 07:45 tmp/

./system/log:
total 40
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 7 15:17 ./
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 8 07:45 …/
-rw-rw-r-- 1 lweddewer lweddewer 26333 Oct 8 07:45 idea.log

./system/tmp:
total 8
drwxrwxr-x 2 lweddewer lweddewer 4096 Oct 8 07:45 ./
drwxrwxr-x 4 lweddewer lweddewer 4096 Oct 8 07:45 …/
lweddewer:~/.PyCharm2019.2$

Hopfully that gives you an idea what the cause may be.

Regards
Lothar


#4

Hi,
I’m working with Lothar on this.
An important note about our use-case is that we’re running X11-Remoting across ssh.

I can reproduce this 100% following these steps:
Start with a freshly installed & updated Ubuntu 18.04 LTS, based on Canonical’s current CloudImage. Connect via SSH enabling X11-Forwarding.

Install python and default-jdk to pull in all dependencies (there’s at least libxrender1 that PyCharm depends on without checking for it during the snap install)

$ sudo apt install python python3 default-jdk

Install pycharm:

$ sudo snap install pycharm-community --classic

Start pycharm:

$ pycharm-community
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Oct 21, 2019 10:29:43 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Oct 21, 2019 10:29:43 AM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /home/ubuntu/.java/.userPrefs/prefs.xml

The loading splashscreen shows up, then the EULA-window shows for half a second, before the IDE shuts down without any further explanations (see logs posted by Lothar).