This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Crash on Linux on Start #23036
Copy link
Copy link
Open
Description
Prerequisites
- 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
start Atom
Steps to Reproduce
- open terminal
atom
Expected behavior:
Atom starts
Actual behavior:
drom@linux-sydi:~> /usr/bin/atom: line 190: 16684 Illegal instruction (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[16684:0924/230352.078726:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
--2021-09-24 23:03:52-- https://atom.io/crash_reports
Resolving atom.io (atom.io)... 18.205.222.128, 54.161.241.46, 52.202.168.65, ...
Connecting to atom.io (atom.io)|18.205.222.128|:443... connected.
HTTP request sent, awaiting response... 204 No Content
2021-09-24 23:03:53 (0.00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length
Failed to get crash dump id.
Report Id:
--2021-09-24 23:03:53-- https://atom.io/crash_reports
Resolving atom.io (atom.io)... 18.205.222.128, 54.161.241.46, 52.202.168.65, ...
Connecting to atom.io (atom.io)|18.205.222.128|:443... connected.
HTTP request sent, awaiting response... 204 No Content
2021-09-24 23:03:54 (0.00 B/s) - ‘/dev/fd/4’ saved [0]
Unexpected crash report id length
Failed to get crash dump id.
Report Id:
Reproduces how often:
every time
Versions
Atom : 1.58.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
Additional Information
uname -a
Linux linux-sydi 5.14.5-1-default #1 SMP Thu Sep 16 12:39:52 UTC 2021 (fdb6afd) x86_64 x86_64 x86_64 GNU/Linux
ldd --version ldd
ldd (GNU libc) 2.34
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Reacted by Leandro Hermida, Bollos00, Alexander Popov, Tomaqa, Rome Reginelli, Márton Lente, Alexandre Marchal, James Li, genygilles and Ben Leynen
Metadata
Metadata
Assignees
Labels
No labels
Activity
drom commentedon Sep 25, 2021
Maybe related to electron/electron#31113
[-]Crash on start[/-][+]Crash on Linux on Start[/+]drom commentedon Sep 26, 2021
Workaround:
atom --no-sandboxDeeDeeG commentedon Oct 10, 2021
After browsing microsoft/vscode#133593, I can understand what was going on here.
This had to do with a
glibcupdate. (bug: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468) Something to do with introducing a new syscall,clone3, which Chromium was incompatible with. (bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1244383) Electron's browser-y bits are from Chromium, so Electron was affected as well.This is patched in Chromium 93 or newer. (Electron 14 shipped with Chromium 93. So Electron 14 and newer natively have the fix.) The fix has been back-ported to Electron 13 as well: electron/electron#31091 (in Electron 13.5.0 and newer 13.x.)
Also: Ubuntu 12.10's
glibchas been patched to disable theclone3syscall, meaning even older versions of Electron should work now, at least on Ubuntu 12.10. (Maybe other Linux distros with glibc 2.34 or newer will do the same, disableclone3for now, to keep compatibility with older Electron apps?)For a fuller and more future-proof fix, Atom should eventually upgrade to Electron 13 or newer. (It feels pretty likely that distributions won't keep the
clone3syscall disabled forever just to support older, non-updated Electron apps.)thommierother commentedon Oct 25, 2021
This issue originally was triggered from a glibc upgrade and hits a number of electron-based apps, including element-desktop (matrix), vscode, ms teams, Discord - especially in combination with nvidia graphics. Most have already upgraded their embedded electron codebase and atom should do the same. Right now, the workaround switch is
atom --no-sandbox
See https://bugzilla.suse.com/show_bug.cgi?id=1191012 for reference
mattbit commentedon Nov 15, 2021
In my case, I can run atom with
atom --in-process-gpu. Maybe this is a better solution than disabling the sandbox?antonellocaroli commentedon Nov 18, 2021
I have the same error after updating the system, I use Gentoo linux.
atom --in-process-gpuseems to workweather-tracker commentedon Dec 27, 2021
i was getting that
i unistalled it from the gui packed manager and installed it with apt https://flight-manual.atom.io/getting-started/sections/installing-atom/#installing-atom-on-linux
then restart computer
i can launch atom with atom-nightly and get no errors from terminal
Pysis868 commentedon Jan 13, 2022
Now that I'm trying
atom-nightly --in-process-gpu1.61 and removed the bad document reference it was trying to open, it seems to be working for me now too....Works with Atom 1.59 too.
#23167 (comment)
AlexWayfer commentedon Feb 16, 2022
It happens for me after such Arch Linux updates (cut out) :
--in-process-gpuhelped.yochaigal commentedon Feb 16, 2022
Happening to me in Arch Linux as well.
Both --in-process-gpu
and
--no-sandbox
Allow it to open.
dhouck commentedon Feb 16, 2022
Yeah, Arch Linux updated glibc a few days ago after months of not. As far as I can tell, Atom is one of four applications there to use a version of Electron before 13.
Iʼm having issues with
--in-process-gpuwhere it will no longer recognize paths provided on the command line, which the same version of atom did before the glibc upgrade. The--no-sandboxoption does not have this issue.dhouck commentedon Feb 16, 2022
Looking into that with
strace, it looks like the--in-process-gpuversion never even attempts to read the file (no syscalls mention it exceptexecves passing the same parameters), while the samestracecommand with--no-sandboxshows a bunch of stat, open, and inotify calls.vuxeim commentedon Feb 17, 2022
After updating my Artix linux I was getting that same error on every atom launch. I confirm both
--no-sandboxand--in-process-gpuallows it to work.GeorgeZack commentedon Feb 21, 2022
Same for me. I uninstalled both Atom and Teams thinking they were broken, but this explains it. Atom works with either options included.
1 remaining item
puzzle9 commentedon Mar 2, 2022
/usr/share/applications/atom.desktopalerque commentedon Apr 7, 2022
See my comment on #23608, I think this is probably a duplicate issue and both can be closed.
genygilles commentedon May 2, 2022
Also started facing this issue with Ubuntu MATE 22.04 fresh install, atom 1.60 stable
hakro commentedon May 3, 2022
Facing this issue as well on Pop!_OS 22.04.
Atom 1.60.0 starts for a couple of seconds, and I can see its window, but then it crashes and vanishes.
Here are the logs :
Other Electron apps, like Postman, seem to be working fine.
Also
Atom/atom --no-sandboxworked fine.blueglyph commentedon May 27, 2022
Thanks for the heads-up. I'll switch to another editor and re-evaluate later, this is apparently an old problem so it could still take a while.
hermidalc commentedon Jun 1, 2022
Or this new issue with Atom on Fedora 36 which forces you to use
--no-sandbox:In Fedora 35
--no-sandboxor--in-process-gpuboth worked and solved the editor start crash problem. But now with Fedora 36 using--in-process-gputhe app starts but it crashes when editing settings and clicking on a setting with a drop-down menu... the menu won't show any items and then a second later the entire editor will crash. It doesn't crash every time you click on a setting drop-down but after a couple tries it will crash. When I changed startup to--no-sandboxit doesn't crash when displaying settings drop-down menus.AlexWayfer commentedon Jun 1, 2022
@raer0 yes, I agree with you. But I don't like VS Code, there are even no such features like "change font size for UI". And I love Atom. And it's difficult choice. I'm upset that there is no active maintainers from the community to keep it alive.
hermidalc commentedon Jun 1, 2022
I just installed VSCodium and VSCode to play with it and at first I thought the same, but all you have to do is
Ctrl +andCtrl -to change the UI zoom which changes the UI font size. Effectively the same as Atom UI font sizeGeorgeZack commentedon Jun 16, 2022
I refuse to use Microsoft programs if I can help it. If Atom is abondonware then that is a shame.
hermidalc commentedon Jun 16, 2022
Someone on another thread mentioned Electron-based Theia or you can try VSCodium
vmkalbskopf commentedon Aug 23, 2022
I am running the 1.61 beta, and this is still a problem.
idoleat commentedon Aug 23, 2022
I'm using 1.61 beta with glibc 2.36 on Arch Linux and atom works fine. What's your environment?