FS#77074 - [element-desktop] Segfault when running with ozone-platform-hint=wayland

Attached to Project: Community Packages
Opened by Valentin (Valentin) - Tuesday, 10 January 2023, 10:36 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

I set `--ozone-platform-hint=wayland` in my electron config as described in https://wiki.archlinux.org/title/wayland#Configuration_file . When this option is set Element crashes a couple of seconds after startup, before displaying anything, with a segfault. Without this option it runs fine through XWayland. The option used to work until recently. Probably the switch to electron22 started showing the error.

Additional info:
* Might be experienced by people in https://github.com/vector-im/element-web/issues/23311
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:05 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/element.io/issues/1
Comment by freswa (frederik) - Tuesday, 10 January 2023, 10:42 GMT
Can confirm the issue. Last known good was 1.11.16.
Comment by Bruno Pagani (ArchangeGabriel) - Tuesday, 10 January 2023, 12:34 GMT
You should get backtraces as we now have debug symbols for electron.
Comment by freswa (frederik) - Tuesday, 10 January 2023, 12:42 GMT
Here we go
   bt.txt (7.2 KiB)
Comment by Celeste (Coelacanthus) - Thursday, 12 January 2023, 07:56 GMT
Can confirm this issue.
Some additional info:
with electron21 it won't crash (just sed electron22 in /usr/bin/element-desktop)
Comment by Celeste (Coelacanthus) - Thursday, 12 January 2023, 08:40 GMT
with electron22-bin in AUR, it crashes randomly but with another different backtrace https://pb.mgt.moe/nhgs
Comment by Celeste (Coelacanthus) - Thursday, 12 January 2023, 08:43 GMT
with electron22-bin in AUR, it crashes randomly but with another different backtrace https://pb.mgt.moe/nhgs

Edited: Oops, I send it twice. Sorry
Comment by Iyan (iyanmv) - Wednesday, 22 February 2023, 13:21 GMT
Is it possible to downgrade this to use electron 21 until the issue is fixed upstream (either electron or element)?
Comment by Bao Trinh (qubidt) - Friday, 31 March 2023, 00:15 GMT
Can confirm --ozone-platform-hint=wayland doesn't crash when using either community/electron21 or electron23-bin/electron24-bin from AUR. electron22 seems to be the only version affected
Comment by Iyan (iyanmv) - Wednesday, 03 May 2023, 06:56 GMT
This is still an issue with version 1.11.30-1
Comment by Iyan (iyanmv) - Tuesday, 23 May 2023, 09:11 GMT Comment by Iyan (iyanmv) - Tuesday, 23 May 2023, 09:12 GMT
Thanks Antonio!
Comment by Celeste (Coelacanthus) - Tuesday, 23 May 2023, 15:49 GMT
I tried 1.11.31-3, but segv remain. Same backtrace as well.
Comment by Celeste (Coelacanthus) - Saturday, 03 June 2023, 10:38 GMT
leting element-desktop to use electron24 from the testing repo makes it start successfully, but the IME doesn't work.
Using electron25 from the testing repo makes it work perfectly.

Loading...