-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes when opening a file or creating new project #542
Comments
Exact same issue on Popos 22.04 LTS. |
@FakeShemp Any progress or can I run pycharm anyway? |
I don't know what causes it and I don't have this issue myself so I wouldn't know what to do. |
@FakeShemp Okay I am trying to troubleshooting it via reinstall , I will keep you update further |
@FakeShemp No uninstalling and reinstalling ,complete data wipe out . Nothing solves the issue . can you take a look into this ? because I am using a AMD cpu. |
I can confirm this problem. Also on PopOS 22.04 LTS |
I can trigger this crash when opening a project if it has a README.md file. Judging by how the crash message involves Chromium's sandbox, and that JetBrains Runtime includes the Chromium Embedding Framework, I'm going to hazard a guess and say markdown rendering seems to make use of a Chromium WebView, which leads to a crash since it finds the sandbox invalid. Maybe Zypak could help here? |
I can confirm that the crashes are related to README files as outlined by @Technohacker. Further, all Jetbrain Products within a Flatpak are affected. Native installations of those IDEs (native as in: "not through Flatpak are not showing the same behavior). The crash is reproducible on Rider, PyCharm as well as IntelliJ (that's all IDEs I have tried). Tests are conducted with a clean installation of Fedora 39 Workstation. Minimal reproduction is to create any project with a README in the projects root directory. When loading the project, the IDE will try to render the Markdown file and crash the whole process. When the README is manually deleted, the project loads just fine without crash. This narrows it down to the Chromium WebView. Further, it might be that only AMD CPUs are affected. I was not able to reproduce it on a laptop with a Intel I5 (however using Fedora 38 instead of 39 as above). I try to give it a shot with Fedora 39 Workstation on the Intel machine to see whether it actually has to do with CPU vendor, or whether it's just a difference between Fedora 38 and 39. |
Hi, I can confirm this bug on Ubuntu 23.10 with Gnome 44, using an older ThinkPad equipped with an Intel i5-6200U CPU. The project is locally stored on a dedicated ZFS dataset owned by my user. Initially, I suspected this might be the root cause, but by setting "filesystem=home" in Flatseal I could access the project. When launching PyCharm as Edit:
|
This error is caused by PyCharm's built-in Electron, which is used for rendering Markdown/HTML, akin to WebKitGTK in Eclipse. Electron, in general, does not work in Flatpak, as Flatpak prevents namespace cloning, which Electron uses for sandboxing. The only way to prevent PyCharm from crashing upon opening e.g. a Markdown file is by disabling sandboxing for Electron. This can be done manually over the Registry (before creating a new project or opening any folders, although, like previously said, PyCharm should only crash when the Chromium driver is invoked) or by injecting a Everything worked fine for me after disabling sandboxing over the Registry. |
I can confirm this worked for me on Pop!_OS 22.04 |
Well actually the error is quite ease to fix. Watch the last line of the error msg: "[0713/123922.873959:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /app/pycharm/jbr/lib/chrome-sandbox is owned by root and has mode 4755." you have to change the ownership and access rights of this file "/app/pycharm/jbr/lib/chrome-sandbox" Hope I could help |
This work for me on ubuntu 24.04 and standalone pycharm installation PyCharm 2024.1.1 (Professional Edition)
Build #PY-241.15989.155, built on April 29, 2024
Licensed to Enrique Villadoniga
Subscription is active until May 24, 2024.
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.8.0-31-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 4002M
Cores: 16
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
ru.sadv1r.ansible-vault-editor-idea-plugin (1.21)
name.kropp.intellij.makefile (241.14494.150)
String Manipulation (9.13.0)
dev.meanmail.plugin.nginx-intellij-plugin (2022.1.1)
ru.adelf.idea.dotenv (2024.1)
Current Desktop: ubuntu:GNOME |
This means the app can't be used at all. Here is the log:
The text was updated successfully, but these errors were encountered: