You are not logged in.

#1 2024-08-10 20:17:17

enova
Member
Registered: 2023-11-04
Posts: 7

[SOLVED] Electron applications quickly hang/segfault on wayland

A while ago Vesktop, the official Discord program, and anything I run with

electron [...]/something.asar

don't output anything and sometimes eventually segfault and nothing happens. This only occurs if the relevant electron hints are set to auto or wayland. Under xwayland it works fine.
Electron 28-32 all have this problem. Electron 27 works but it's running with xwayland so that would be why it works.

If I enable `ELECTRON_ENABLE_LOGGING=1` I get this:

Discord 0.0.63
[26239:0810/150933.211279:WARNING:wayland_object.cc(164)] Binding to wl_seat version 8 but version 9 is available.
[26239:0810/150933.211817:WARNING:wayland_object.cc(164)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[26239:0810/150933.211885:WARNING:wayland_object.cc(164)] Binding to zwp_linux_dmabuf_v1 version 3 but version 5 is available.

And then nothing happens. I tried stracing vesktop for file access and the startup doesn't show anything not being found, and once the startup happens it just tries to access my cursor theme constantly until the process dies.

I tried removing ~/.config/discord (or vesktop) and it makes no difference.

I'm on hyprland, all AMD hardware, open source driver.
Has anyone else had this issue?

Last edited by enova (2024-08-10 21:58:37)

Offline

#2 2024-08-10 21:07:09

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

eventually segfault

Do you have a https://wiki.archlinux.org/title/Core_d … _core_dump ?

Offline

#3 2024-08-10 21:16:14

enova
Member
Registered: 2023-11-04
Posts: 7

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

To be clear it doesn't always segfault, but yes I do have a coredump.

https://privatebin.net/?0071b6f2a0e240f … FwJh9HqsGH

Offline

#4 2024-08-10 21:16:34

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

Offline

#5 2024-08-10 21:24:57

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

The trace lacks any debug symbols, but

                Stack trace of thread 19756:
                #0  0x000074bb79cb85f3 n/a (libc.so.6 + 0x595f3)
                #1  0x000074bb79cc1659 n/a (libc.so.6 + 0x62659)
                #2  0x000074bb79ce7724 n/a (libc.so.6 + 0x88724)
                #3  0x000074bb79cbde26 snprintf (libc.so.6 + 0x5ee26)
                #4  0x000059413af98474 n/a (electron + 0x71fc474)
                #5  0x000059413af9863f n/a (electron + 0x71fc63f)
                #6  0x000059413af9863f n/a (electron + 0x71fc63f)
                #7  0x000059413af9863f n/a (electron + 0x71fc63f)
                #8  0x000059413af9863f n/a (electron + 0x71fc63f)
                #9  0x000059413af9863f n/a (electron + 0x71fc63f)
                #10 0x000059413af9863f n/a (electron + 0x71fc63f)
                #11 0x000059413af9863f n/a (electron + 0x71fc63f)
                #12 0x000059413af9863f n/a (electron + 0x71fc63f)
                #13 0x000059413af9863f n/a (electron + 0x71fc63f)
                #14 0x000059413af9863f n/a (electron + 0x71fc63f)
                #15 0x000059413af9863f n/a (electron + 0x71fc63f)
                #16 0x000059413af9863f n/a (electron + 0x71fc63f)
                #17 0x000059413af9863f n/a (electron + 0x71fc63f)
                #18 0x000059413af9863f n/a (electron + 0x71fc63f)
                #19 0x000059413af9863f n/a (electron + 0x71fc63f)
                #20 0x000059413af9863f n/a (electron + 0x71fc63f)
                #21 0x000059413af9863f n/a (electron + 0x71fc63f)
                #22 0x000059413af9863f n/a (electron + 0x71fc63f)
                #23 0x000059413af9863f n/a (electron + 0x71fc63f)
                #24 0x000059413af9863f n/a (electron + 0x71fc63f)
                #25 0x000059413af9863f n/a (electron + 0x71fc63f)
                #26 0x000059413af9863f n/a (electron + 0x71fc63f)
                #27 0x000059413af9863f n/a (electron + 0x71fc63f)
                #28 0x000059413af9863f n/a (electron + 0x71fc63f)
                #29 0x000059413af9863f n/a (electron + 0x71fc63f)
                #30 0x000059413af9863f n/a (electron + 0x71fc63f)
                #31 0x000059413af9863f n/a (electron + 0x71fc63f)
                #32 0x000059413af9863f n/a (electron + 0x71fc63f)
                #33 0x000059413af9863f n/a (electron + 0x71fc63f)
                #34 0x000059413af9863f n/a (electron + 0x71fc63f)
                #35 0x000059413af9863f n/a (electron + 0x71fc63f)
                #36 0x000059413af9863f n/a (electron + 0x71fc63f)
                #37 0x000059413af9863f n/a (electron + 0x71fc63f)
                #38 0x000059413af9863f n/a (electron + 0x71fc63f)
                #39 0x000059413af9863f n/a (electron + 0x71fc63f)
                #40 0x000059413af9863f n/a (electron + 0x71fc63f)
                #41 0x000059413af9863f n/a (electron + 0x71fc63f)
                #42 0x000059413af9863f n/a (electron + 0x71fc63f)
                #43 0x000059413af9863f n/a (electron + 0x71fc63f)
                #44 0x000059413af9863f n/a (electron + 0x71fc63f)
                #45 0x000059413af9863f n/a (electron + 0x71fc63f)
                #46 0x000059413af9863f n/a (electron + 0x71fc63f)
                #47 0x000059413af9863f n/a (electron + 0x71fc63f)
                #48 0x000059413af9863f n/a (electron + 0x71fc63f)
                #49 0x000059413af9863f n/a (electron + 0x71fc63f)
                #50 0x000059413af9863f n/a (electron + 0x71fc63f)
                #51 0x000059413af9863f n/a (electron + 0x71fc63f)
                #52 0x000059413af9863f n/a (electron + 0x71fc63f)
                #53 0x000059413af9863f n/a (electron + 0x71fc63f)
                #54 0x000059413af9863f n/a (electron + 0x71fc63f)
                #55 0x000059413af9863f n/a (electron + 0x71fc63f)
                #56 0x000059413af9863f n/a (electron + 0x71fc63f)
                #57 0x000059413af9863f n/a (electron + 0x71fc63f)
                #58 0x000059413af9863f n/a (electron + 0x71fc63f)
                #59 0x000059413af9863f n/a (electron + 0x71fc63f)
                #60 0x000059413af9863f n/a (electron + 0x71fc63f)
                #61 0x000059413af9863f n/a (electron + 0x71fc63f)
                #62 0x000059413af9863f n/a (electron + 0x71fc63f)
                #63 0x000059413af9863f n/a (electron + 0x71fc63f)

seems trapped in some recursion. Which looks familiar.
https://bbs.archlinux.org/viewtopic.php … 9#p2084369

Edt: relevant sublink (so you don't have to read the entire thread): https://bbs.archlinux.org/viewtopic.php?id=282979

Last edited by seth (2024-08-10 21:27:12)

Offline

#6 2024-08-10 21:37:53

enova
Member
Registered: 2023-11-04
Posts: 7

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

Thank you! I did not fully understand what the actual problem was, but I ended up removing my local installation of breezex-black cursors and symlinking the system installation from breezex-cursor-theme, and now it works fine.

Offline

#7 2024-08-10 21:42:33

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] Electron applications quickly hang/segfault on wayland

The second link points towards a script that can be used to "complete" cursor themes (ie. add missing but commonly used names via symlinks to identical icons)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB