element-hq / element-desktop

A glossy Matrix collaboration client for desktop.
https://element.io
GNU Affero General Public License v3.0
1.14k stars 260 forks source link

Element Desktop doesn't open on Ubuntu 24.04 with Wayland #1893

Open thebalaa opened 1 week ago

thebalaa commented 1 week ago

Steps to reproduce

Install Element Desktop following the instructions from the website on a clean Ubuntu 24.04 system (with default Wayland window manager)

Outcome

Element will not open, no electron window is displayed

What did you expect?

Element Desktop to work after being installed via Ubuntu instructions on element.io

What happened instead?

Launching element results in nothing happening, running it from the command line results in:

[23918:0925/163545.936714:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[23918:0925/163545.936756:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)

See also https://github.com/electron/electron/issues/41082

Operating system

Ubuntu Linux 24.04

Application version

Element Desktop 1.11.78

How did you install the app?

Instructions from website (add apt sources) apt install element-desktop

Homeserver

NA

Will you send logs?

Yes

thebalaa commented 1 week ago

I was able to work around this issue by switching my Ubuntu system from Wayland to X11 by editing /etc/gdm3/custom.conf and un-commenting out the line

WaylandEnable=false

After reboot element desktop works as expected. My system has an older AMD Graphics card R390 (open source driver) which may be contributing to the issue.