electron: Electron apps freeze on linux 5.x kernel
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
- Electron Version: really not sure. It seems to affect every app using electron that I have tried so far (vscode, signal-desktop, slack, etc.)
- Operating System:
- linux slackware64-current, kernel 5.4.2
- Last Known Working Electron version:
- on linux kernel 4.x
Expected Behavior
a functional app
Actual Behavior
applications freeze in about 5-10 minutes
To Reproduce
just open them. even leave them running in the background
Additional Information
I discovered thread https://forum.manjaro.org/t/electron-apps-crashing-randomly/81717/17
which indicates that adding --disable-gpu is a workaround.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 22
- Comments: 35 (3 by maintainers)
I had the electron freezing issue on my laptop with intel graphics using arch linux. I could use electron apps only with the
--disable-gpuflag.Switching from the
xf86-video-inteldriver to the kernel’smodesettingdriver solved the issue. Electron apps now run stable on my machine, even without the--disbale-gpuflag.I have read that “xf86-video-intel’s development has stalled for a long time, and many intel developers are instead actively improving the modesetting driver”… I think ditching the
xf86-video-inteldriver was the right solution for me.My harware:
I guess a lot of people who run into this issue might be using the
xf86-video-inteldriver.Disabling GPU/acceleration is obviously is not a good solution. Installing dunst as suggested workaround in many places doesn’t help.
It was working perfectly for years, and now VSCode, all browsers and everything periodically freezes. Maybe someone was able to get rid of this bug?
right. I figured there is something nuanced, otherwise this would’ve been a bigger blocker, or more quickly noticed. since it seems possibly GPU related, here’s the video info on the card in the machine I’m personally experiencing this:
In addition to what @vbatts described in his
--disable-gpuworkaround, one can also disable it this way:"disable-hardware-acceleration": truein Preferences: Configure Runtime ArgumentsThe issue is still present on following configuration:
All electron apps freeze (Spotify, Signal, VSCode…). More often when they are in the background, but sometimes when they are in use as well.
It is not occurring with kernel v4.9
Yes, exactly Arch + kernel 5.5.x. Electron v8 doesn’t seem to be affected, so https://github.com/electron/electron/issues/22291 might be related one.
https://github.com/vladimiry/ElectronMail/issues/253 https://github.com/vladimiry/ElectronMail/issues/252 (Electron 7.1.10, kernel 5.5.3-arch1-1 and 5.5.2-zen2-2-zen) https://github.com/vladimiry/ElectronMail/issues/250 (Electron 7.1.10, kernel 5.5.3-arch1-1)
Upgrading Electron v7 => v8 helped with resolving above-listed issues (252 and 250).
yes, the joplin gui is affected as well for me. Even on 5.4.20. While passing
--disable-gpuhelps many of the other electron apps, something in joplin swallows that flag getting passed to the electron runtime. so that workaround is not feasible currently.