afrog
afrog copied to clipboard
[Arch Linux] GPU process isn't usable
Prerequisites
- [x] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When starting up atom, it crashes with a fatal error
Steps to Reproduce
- Run
atom
,atom --safe
, oratom --disable-gpu
Expected behavior:
Atom starts successfully.
Actual behavior:
Atom crashes with a GPU error:
/usr/bin/atom: line 86: 5746 Illegal instruction (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[...]
[5746:0215/121832.223620:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
[...]
Reproduces how often:
100%
Versions
❯ atom --version
Atom : 1.58.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
❯ apm --version
apm 2.6.4
npm 6.14.9
node 17.3.1 x64
atom 1.58.0
python 3.10.2
git 2.35.1
OS: Arch Linux x86_64 Kernel: 5.16.9-arch1-1
Experiencing the same problem.
I found an old issue where they used atom --in-progress-gpu
or atom --no-sandbox
as a temporary solution, but i have no clue what those do, so I can't really recommend using them.
Yeah, it seems related to a recently updated package, but I haven't figured out which one yet, here are some that I think might be the cause:
[2022-02-14T08:23:41-0700] [ALPM] upgraded npm (8.4.1-1 -> 8.5.0-1)
[2022-02-14T21:07:22-0700] [ALPM] upgraded glibc (2.33-5 -> 2.35-2)
[2022-02-14T21:07:24-0700] [ALPM] upgraded gcc-libs (11.1.0-3 -> 11.2.0-3)
[2022-02-14T21:07:36-0700] [ALPM] upgraded nodejs (17.3.0-1 -> 17.3.1-1)
I was unable to get it stably working using only --in-progress-gpu
, using both (I.E. atom --in-progress-gpu --no-sandbox
) does seem to work and I will have to use it until a proper fix can be made.
Can confirm that this is in fact an issue. I also am using arch. It appears that this may be caused by depreciated electron renderer modules? The terminal output during the crash says to see this issue. I assume the depreciated renderer modules cause that "GPU process isn't usable." warning. Sadly, I am not familiar enough with node or electron to fix this issue.
This happens to me on slackware-current with glibc 2.35. Launches with --no-sandbox.
Same on Manjaro
Same issue on Artix.
I've noticed the same issue after updating Manjaro:
After running atom --safe
/usr/bin/atom: line 86: 12151 Illegal instruction (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1 (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/pathwatcher/build/Release/pathwatcher.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/oniguruma/build/Release/onig_scanner.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/superstring/build/Release/superstring.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/@atom/nsfw/build/Release/nsfw.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. (node:12211) Electron: Loading non-context-aware native module in renderer: '/usr/lib/atom/node_modules/git-utils/build/Release/git.node'. This is deprecated, see https://github.com/electron/electron/issues/18397. [12151:0228/185626.154074:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye. --2022-02-28 18:56:26-- https://atom.io/crash_reports SSL_INIT Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 18.205.222.128, 52.202.168.65, 54.161.241.46, ... Connecting to atom.io (atom.io)|18.205.222.128|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-02-28 18:56:28 (0.00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id: --2022-02-28 18:56:28-- https://atom.io/crash_reports SSL_INIT Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 18.205.222.128, 52.202.168.65, 54.161.241.46, ... Connecting to atom.io (atom.io)|18.205.222.128|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-02-28 18:56:31 (0.00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id:
If I use atom --in-process-gpu
it works fine.
Having same issue when starting atom with atom
or with atom --disable-gpu
. I can only get it to start with atom --in-process-gpu
Duplicate of https://bugzilla.suse.com/show_bug.cgi?id=1191012?
Edit: #23036
Also on Slackware Current with this issue, atom --no-sandbox
makes it work. It also seems to be affecting Microsoft Teams (same symptoms, same fix), so it might not be Atom-specific?
This happens too in openSUSE Tumbleweed. As noted above, the same problem and the same solution happens with MS Teams. Very probably not Atom specific.
atom --no-sandbox fixes it on gentoo too
Issue is not from atom but from electron (or some library used by it). I had the same issue with an electron app I've built, and solution was the same as mentioned, to start it with the arguments. The arguments are a workaround if you ask me, still looking for an alternative, but the workaround is better than nothing though.
Is there an issue for it open on the Electron repository? If not, it's probably best that one's opened there instead of us spamming the Atom devs. =)
I agree. That's why I commented previously, to confirm from my end too that it's not an atom issue.
I believe this is/was an Electron issue. Since the report is on Atom 1.58.0 / Electron 9 and the current Arch packaging is 1.61.0beta0 / Electron 11 and I cannot reproduce this, I suggest this issue is likely not relevant to this repository and can be closed.
This issue still very much persists for me on the newest version for Arch. Interestingly though I think it only happens on my desktop but not on my laptop (I still have to check that) which have a very similar setup.
@Lithimlin Can you confirm what --version
shows for atom
and apm
now? Also are you sure you aren't just a victim of the nvidia/electron issue linked above?
Can you confirm what
--version
shows foratom
andapm
now?
❯ atom --version
Atom : 1.58.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
❯ apm --version
apm 2.6.5
npm 6.14.9
node 16.14.2 x64
atom 1.58.0
python 3.10.4
git 2.35.1
Also are you sure you aren't just a victim of the https://github.com/atom/atom/issues/23608#issuecomment-1057661196?
Quite the contrary, I'm sure that that's the issue since my laptop doesn't have an nvidia graphics card.
I am already using the --nosandbox --in-progress-gpu
workaround but that's all that is: A workaround. Not a solution to the problem. Do correct me if I'm seeing this wrong.
As the Electron bug tracker says:
I agree, most apps obviously upgraded their electron codebase now. For atom, the --no-sandbox switch is still required.
However, this does seem to be a duplicate of #23036 after all, so feel free to close this one.
@Lithimlin You are still using outdated packages. Per my comment above the current official Atom package in Arch Linux is 1.61.0-beta0
. We know the 1.58.0 package was broken, only reports of the current packages are eligible for bug fixes. We packaged the beta on Arch Linux because even the 1.60.0 stable release used Electron 9 which is EOL and we are dropping it from the distro.
I'm just confused as to why on my Laptop, the beta seems to be in the regular community package while on my desktop, it's a separate AUR package.
@Lithimlin Because you installed different packages. The [community] package is atom
and currently at version 1.61.0-beta0 like I said. The [AUR] package you probably have installed there is atom-editor-beta-bin
and also at the same version as of this moment. You are welcome to use either, but they are completely different. The [community] package will do things like use the Arch system Electron package, the Arch apm package, etc. The AUR package is just a binary blob with all of that bundled inside however upstream builds it. Pick your poison.
Again as the Arch Linux maintainer for the [community] package I'd like to reiterate that this whole issue is not an upstream Atom Editor issue and this issue can be closed. If you have trouble with the Arch packaging please use Arch Linux's bug tracker (or the AUR comments if you are using the AUR pakcage). Otherwise this issue tracker should be used for issues with the actual editor, not the distro packaging.
Same issue on centos9 stream. Using --in-process-gpu fixes it.
Same on Pop!_OS 22.04, --in-process-gpu
and --no-sandbox
both fix. Worked peachy back on 21.10
Same on Pop!_OS 22.04,
--in-process-gpu
and--no-sandbox
both fix. Worked peachy back on 21.10
Are using these arguments going to matter at all? I am having this same issue in Pop!_OS 22.04 and they are the only way I can run Atom. I need to use it for a course and just want to make sure I will be fine running it like this. Thanks.
Same on Pop!_OS 22.04,
--in-process-gpu
and--no-sandbox
both fix. Worked peachy back on 21.10Are using these arguments going to matter at all? I am having this same issue in Pop!_OS 22.04 and they are the only way I can run Atom. I need to use it for a course and just want to make sure I will be fine running it like this. Thanks.
For your use case it likely will not matter at all, Drawing performance and cpu usage is affected if I am correct.
So is Atom officially deprecated in favor of VS Code?
Or does Github just wanna let it fade into obscurity because people can't launch it?
So is Atom officially deprecated in favor of VS Code?
Or does Github just wanna let it fade into obscurity because people can't launch it?
? It works fine, so long as you start it with --no-sandbox. I believe the beta version is using the patched version of electron, as well.
Same issue on Manjaro in a VirtualBox VM. The crash reporter itself doesn't seem able to transmit the information and crashes.
While it may be an Electron issue, I have no idea how it's implemented, and I have no issue with other Electron applications in the same environment, so I'll post the details here. IMO it's up to the dev to know whether it needs to be reported to Electron by them with details on how it's used in this application.
For example, Code - OSS runs fine, but I see it relies on electron17, not electron9. Chromium works fine.
atom --no-sandbox
is the only workaround I could try that allows Atom to run.
Versions:
System: Linux manj 5.15.32-1-MANJARO #1 SMP PREEMPT Mon Mar 28 09:16:36 UTC 2022 x86_64 GNU/Linux Graphics: Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.19.0.0 Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: vmware unloaded: modesetting gpu: vmwgfx resolution: 1493x822~60Hz
Atom downloaded from here, version 1.60.0-amd64. Same problem with the Manjaro's repository version which is stuck at 1.58 at the moment.
Atom : 1.60.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1
or
Atom : 1.58.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1
Feedback on the console of version 1.60:
[1169:0512/143250.331533:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye. --2022-05-12 14:32:50-- https://atom.io/crash_reports Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 20.119.16.4 Connecting to atom.io (atom.io)|20.119.16.4|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-05-12 14:32:52 (0,00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id: --2022-05-12 14:32:52-- https://atom.io/crash_reports Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 20.119.16.4 Connecting to atom.io (atom.io)|20.119.16.4|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-05-12 14:32:53 (0,00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id: Illegal instruction (core dumped)
Feedback on the console of version 1.58: (the repetition below is not a copy/paste mistake on my part)
/usr/bin/atom: line 86: 2002 Illegal instruction (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1 [2002:0512/145355.377070:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye. --2022-05-12 14:53:55-- https://atom.io/crash_reports Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 20.119.16.4 Connecting to atom.io (atom.io)|20.119.16.4|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-05-12 14:53:56 (0,00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id: --2022-05-12 14:53:56-- https://atom.io/crash_reports Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving atom.io (atom.io)... 20.119.16.4 Connecting to atom.io (atom.io)|20.119.16.4|:443... connected. HTTP request sent, awaiting response... 204 No Content 2022-05-12 14:53:57 (0,00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length Failed to get crash dump id. Report Id:
Interestingly, I see that after installing Atom, an "Electron" was added to the menu. Code - OSS added one of its own too.
If I launch electron9, I get the same issue. If I launch electron17, it's fine. So a change in the dependencies seem to be necessary indeed.
(node:1290) UnhandledPromiseRejectionWarning: Error: Image could not be created from /usr/share/pixmaps/electron.png at createWindow (/usr/lib/electron9/resources/default_app.asar/default_app.js:57:18) at async exports.loadFile (/usr/lib/electron9/resources/default_app.asar/default_app.js:83:18) (node:1290) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1290) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [1290:0512/152349.482221:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye. Trace/breakpoint trap (core dumped)