pycharm-community fails to open a python project it previously created/edited without issue. [0105/120300.421883:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye. /usr/bin/pycharm-community: line 229: 1499 Trace/breakpoint trap (core dumped) "$JAVA_BIN" -classpath "$CLASSPATH" ${VM_OPTIONS} "-XX:ErrorFile=$HOME/java_error_in_pycharm_%p.log" "-XX:HeapDumpPath=$HOME/java_error_in_pycharm_.hprof" "-Didea.vendor.name=${PRODUCT_VENDOR}" "-Didea.paths.selector=${PATHS_SELECTOR}" "-Djb.vmOptionsFile=$VM_OPTIONS_FILE" ${IDE_PROPERTIES_PROPERTY} -Didea.platform.prefix=PyCharmCore com.intellij.idea.Main "$@" Note: using the bundled jdk. Using the suggestion for CLion from here: https://youtrack.jetbrains.com/issue/IDEA-248140#focus=Comments-27-4622080.0-0 > cd /opt/pycharm-community/jbr/lib > sudo chmod +x jcef_helper chrome-sandbox jexec jspawnhelper pycharm starts/opens the project as expected: $ 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. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent) WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2021-01-05 12:16:18,406 [ 364] WARN - llij.ide.plugins.PluginManager - Resource bundle redefinition for plugin 'com.jetbrains.pycharm.community.customization'. Old value: messages.ActionsBundle, new value: messages.PyBundle 2021-01-05 12:16:20,029 [ 1987] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij] 2021-01-05 12:16:20,035 [ 1993] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: com.intellij] 2021-01-05 12:16:20,035 [ 1993] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: com.intellij] 2021-01-05 12:16:20,035 [ 1993] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij] 2021-01-05 12:16:20,083 [ 2041] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: org.jetbrains.plugins.github] 2021-01-05 12:16:20,095 [ 2053] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: PythonCore] 2021-01-05 12:16:20,096 [ 2054] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: PythonCore] ... 2021-01-05 12:16:35,042 [ 17000] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:35,322 [ 17280] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:35,564 [ 17522] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:35,806 [ 17764] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:36,080 [ 18038] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:36,299 [ 18257] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:36,511 [ 18469] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:36,729 [ 18687] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:36,947 [ 18905] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:37,225 [ 19183] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 3 2021-01-05 12:16:37,225 [ 19183] WARN - api.vfs.impl.local.FileWatcher - File watcher failed repeatedly and is disabled 2021-01-05 12:17:33,155 [ 75113] WARN - .skeletons.PySkeletonRefresher - Some skeletons failed to generate 2021-01-05 12:17:33,155 [ 75113] WARN - .skeletons.PySkeletonRefresher - gps.packet Reproducible: Sometimes Steps to Reproduce: 1.Close an existing project (if open) 2.Open a previously opened project. 3.Observe crash in the console pycharm was run from.
Additional way to test this: 1. Create a project 2. Ensure Markdown plugin is enabled in File > Settings 3. Create a markdown file inside the project By default IDE should try to open it and crash.
Created attachment 683098 [details, diff] proposed patch to dev-util/pycharm ebuilds If bundled-jdk is used, toggles +x flag on certain binaries in /opt/pycharm-professional/jbr/lib.
Comment on attachment 683098 [details, diff] proposed patch to dev-util/pycharm ebuilds >diff --git a/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >index c3b7f5777..f35407c71 100644 >--- a/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >+++ b/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >@@ -30,6 +30,9 @@ src_install() { > doins -r * > > if use bundled-jdk; then >+ for filename in jcef_helper chrome-sandbox jexec jspawnhelper; do >+ fperms a+x /opt/pycharm-professional/jbr/lib/"${filename}" >+ done > fperms -R a+x /opt/pycharm-professional/jbr/bin/ > else > rm -r "${D}"/opt/pycharm-professional/jbr/ || die
Created attachment 683113 [details, diff] proposed patch to dev-util/pycharm ebuilds with patchelf After the original patch, scanelf started complaining: scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:$ORIGIN' in /var/tmp/portage/dev-util/pycharm-professional-2020.3/image/opt/pycharm-professional/jbr/lib/libjcef.so scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:$ORIGIN' in /var/tmp/portage/dev-util/pycharm-professional-2020.3/image/opt/pycharm-professional/jbr/lib/jcef_helper This patch adds DEPEND for patchelf (EAPI is 6, so no BDEPEND) and uses patchelf to replace DT_RPATH with just "$ORIGIN". The IDE seems to work fine afterwards, but I am not sure if it's up to the ebuild to patch this.
PullRequest https://github.com/gentoo/gentoo/pull/21499 to fix this problem
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68efb6ec1f063f6451c24b21af0abfc165f3f5e commit b68efb6ec1f063f6451c24b21af0abfc165f3f5e Author: INODE64 <ffelix@inode64.com> AuthorDate: 2021-07-01 13:47:55 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2021-07-17 13:51:35 +0000 Massive update for dev-util/pycharm-professional and dev-util/pycharm-community * Fix rpath_security_checks * Fix crash when opening a markdown * Remove files from other architectures * Include missing deps * Use wrapper * Include recommended fs.inotify.max_user_watches Closes: https://bugs.gentoo.org/798765 https://bugs.gentoo.org/798762 https://bugs.gentoo.org/795258 https://bugs.gentoo.org/792516 https://bugs.gentoo.org/792459 https://bugs.gentoo.org/792393 https://bugs.gentoo.org/787536 https://bugs.gentoo.org/763879 https://bugs.gentoo.org/733058 https://bugs.gentoo.org/733042 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: INODE64 <ffelix@inode64.com> Closes: https://github.com/gentoo/gentoo/pull/21499 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> .../pycharm-community-2021.1.2.ebuild | 101 ++++++++++++++++---- .../pycharm-professional-2021.1.2.ebuild | 103 +++++++++++++++++---- 2 files changed, 167 insertions(+), 37 deletions(-)