-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nightly (using electron 25.1.x) crashes on launch on wayland (sway) #1026
Comments
I suggest opening an issue at https://github.com/electron/electron |
Well there is already electron/electron#37531 which is kind of a catch-all issue for various wayland crashes on launch. I also linked to this (element-desktop) issue in the comments. Unfortunately, I cannot provoke the crash with https://github.com/electron/electron-quick-start or https://github.com/oli-moreau/electron-quick-start-wayland so I don't have a better "minimal test case" than launching element-desktop ... |
Element cranks up all the security & sandboxing settings, those may be related |
maybe this bugreport is also relevant or helps finding the root cause: ostreedev/ostree#2900 |
Un-maximizing the window makes the application work again for me: flathub/im.riot.Riot#376 (comment) |
This is another unrelated bug that happened at the same time. |
doesn't work for me on Sway |
@nidico does 1.11.34 works for you? |
Yes! Element stable 1.11.34 with Electron 25.1.0 doesn't crash when launched in wayland mode! Element-nightly 2023062901 with Electron 25.2.0 still crashes on launch in wayland mode. |
@nidico which DE/WM do you use? |
Sway 1.8.1 (edit: from Debian bookworm packages) |
Well on Sway it still crashes for me. I was able to open it once when removed folder in |
Here's how to workaround it on KDE (someone please confirm that on GNOME too) flathub/im.riot.Riot#376 (comment) and sway flathub/im.riot.Riot#376 (comment). Also looks like Signal has the same problem signalapp/Signal-Desktop#6247. |
this fixed it for me in the sway config: |
Thank you @Stunkymonkey, that workaround works for signal-desktop 6.28.0 too! |
Unfortunately this (setting a floating rule for Element/Signal) doesn't seem to workaround the crash on Hyprland. |
It looks like Electron 26 has fixed the issue. No more crashes for me. I've also experienced problems with tutanota but they also updated to 26 and it works flawlessly now. :) |
With electron 26, element-desktop runs OK for me, but it now segfaults when I close the window to exit. |
I didn't find any of the above solutions worked. However I did find that the issue was with how I launched apps with Sway. While I was having the problem my Sway config has:
I was seeing that I couldn't launch Signal Desktop from my app launcher, but I could run it via the command line. Eventually I simplified my Sway config to:
Now Signal desktop launches. I think it had to do with environment variables not being imported or something like that. |
Steps to reproduce
Launching
element-desktop-nightly
in wayland native mode on sway fails since around a week - most likely since 3d2006c (upgrades electron from24.x
to25.x
). Electron is now at25.1.0
.In order to reproduce, run:
Outcome
The application immediately crashes, the logs tell:
This issue is similar to #873, but doesn't require any fancy dual monitor config and also doesn't yield the same error message, therefore I filed a separate issue. Also, it is worse, as there is no workaround here (apart from running in xwayland mode).
Operating system
Debian Linux (Bookworm)
Application version
Element nightly 2023061901
How did you install the app?
element.io deb repository
Homeserver
matrix.org
Will you send logs?
No
The text was updated successfully, but these errors were encountered: