-
Notifications
You must be signed in to change notification settings - Fork 328
Description
Steps to reproduce
NVIDIA found a bug in Chromium/Electron, where it selects the incorrect GPU on Wayland on multi-GPU systems where the different GPUs are from different brands.
It then does some weird mixture of using the OpenGL Driver from another GPU while trying to output on another GPU, which crashes the NVIDIA driver and crashes the Linux kernel, depending on what NVIDIA driver the user has. NVIDIA hardened the recent 580.82.07 driver (released a few days ago) to no longer crash the kernel. But most people are on distros with older drivers and are still affected by the crash. And even with the fixed driver, there's no way to launch Element until Electron is updated to a fixed version.
It's only fixable by updating Electron to version 38 (or newer).
- Workaround commands to force old versions of Electron to use the correct GPU (and it has more details about the bug): Wayland socket crashes desktop on dual GPU (iGPU + dGPU) systems where dGPU is primary output flathub/im.riot.Riot#542 (comment)
- Crash logs (ignore the unrelated dbus errors; that's from the Flatpak sandbox disabling dbus access):
[3:0905/005001.502373:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
/home/johnny/.var/app/im.riot.Riot/config/Element exists: yes
/home/johnny/.var/app/im.riot.Riot/config/Riot exists: no
(node:3) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `element-desktop --trace-deprecation ...` to show where the warning was created)
Loading app config: /app/Element/resources/webapp.asar/config.json
Loading local config: /home/johnny/.var/app/im.riot.Riot/config/Element/config.json
Skipping nonexistent file: /home/johnny/.var/app/im.riot.Riot/config/Element/config.json
[3:0905/005002.122139:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:0905/005002.122168:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Reached Electron ready state
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Opening main window
Ensuring storage is ready
Using storage mode 'encrypted' with backend 'plaintext'
(node:3) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
[3:0905/005002.300348:ERROR:ui/events/platform/wayland/wayland_event_watcher.cc:47] libwayland: [destroyed object]: error 7: failed to import supplied dmabufs: Could not bind the given EGLImage to a CoglTexture2D
Outcome
System crash.
Operating system
Linux
Application version
Element version: 1.11.110 Crypto version: Rust SDK 0.13.0 (f64839e), Vodozemac 0.9.0
How did you install the app?
Flathub
Homeserver
matrix.org
Will you send logs?
No