Electron applications all crash upon launch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned |
Bug Description
Just a few weeks ago, I noticed the .deb version of Visual Studio Code crashing upon launch. I also noticed Element (matrix client) also would crash. The only thing these applications have in common is electron. I was hoping this would get noticed by someone and that the issue would be figured out, but I guess that person had to be me.
Erroneously-filed bug 1943568 exhibits the same issues. Experimenting with Visual Studio Code provided this:
[347381:
[347419:
[main 2021-09-
[347381:
[347381:
[347381:
[347490:
[347381:
[347495:
[347381:
[347499:
[347381:
[347511:
[347381:
[347515:
[347381:
[347519:
[347381:
[347381:
Server response:
Server response:
Illegal instruction (core dumped)
Atom provided this:
[347834:
Unexpected crash report id length
Failed to get crash dump id.
Report Id:
Unexpected crash report id length
Failed to get crash dump id.
Report Id:
Illegal instruction (core dumped)
When either application was provided "--no-sandbox" at the command line, they would run normally. However, Element does not pass that via command line, so I was unable to use the workaround for that.
Upon investigating the runtime dependencies for Element, Atom, and VSCode, the one thing they had in common was libgtk-3-0, and the date of 2021-09-03 for publishing coincides with the time in which these errors started to appear.
Another workaround, other than the "--no-sandbox" usage, is to use the snap version of the apps if available, or flatpak. These provide their own versions of these dependencies, which tells me these .deb-based applications are affected by libgtk-3-0.
Granted, those applications are not in the Ubuntu repository, however, many people (including myself) rely on those to function correctly. It would be very bad if Electron apps failed to function when 21.10 is released.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: libgtk-3-0 3.24.30-1ubuntu1
ProcVersionSign
Uname: Linux 5.13.0-
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu69
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Tue Sep 21 13:25:17 2021
InstallationDate: Installed on 2021-03-20 (184 days ago)
InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 (20210320)
SourcePackage: gtk+3.0
UpgradeStatus: Upgraded to impish on 2021-06-13 (100 days ago)
tags: | added: fr-1740 |
tags: | removed: rls-ii-incoming |
Changed in glibc (Ubuntu Impish): | |
milestone: | none → ubuntu-21.10 |
I suspect these may be related:
https:/ /github. com/electron/ electron/ pull/30893 "fix: crash when launching app with systemd v249"
https:/ /github. com/microsoft/ vscode/ issues/ 132609 "Electron 14+ required? Potential systemd 249 / nVidia issue"
Electron patch backported from Chromium:
https:/ /github. com/electron/ electron/ commit/ 1d531f29eeb8392 195262bea038abe d75fb51b8c
https:/ /bugs.chromium. org/p/chromium/ issues/ detail? id=1221442
Also, have you considered this could be caused by a recent Electron update that has made its way into these applications?
https:/ /www.electronjs .org/releases/ stable
Electron Sandboxing Overview
https:/ /www.electronjs .org/docs/ tutorial/ sandbox