You are not logged in.

#1 2025-01-21 05:46:04

TexRecon
Member
Registered: 2025-01-21
Posts: 4

[SOLVED]Cant get electron apps working on wayland

Here are my specs:
OS: Arch Linux x86_64
Kernel: Linux 6.12.6-arch1-1
Shell: bash 5.2.37
WM: Hyprland (Wayland)
Terminal: kitty 0.38.1
CPU: AMD Ryzen 7 PRO 8840U w/ Radeon 780M Graphics (16) @ 5.13 GHz
GPU: AMD Phoenix3 [Integrated]

When i try to run certain electron apps I am met with:

Segmentation fault (core dumped)

for some apps like chromium running with the flag

--ozone-platform=wayland

will work but for other apps like unityhub and standard-notes and many others it will open for a few seconds and then crash, or not open at all and just give me the segmentation fault.

Last edited by TexRecon (2025-01-23 18:00:01)

Offline

#2 2025-01-21 08:46:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,142

Re: [SOLVED]Cant get electron apps working on wayland

Install xorg-xwayland. Not all electron apps will bundle a new enough electron version that will have a working platform=wayland switch and even if so, if they haven't tested against it they might rely on functionality that works differently between the backends.

should xorg-xwayland be installed and started, post the contents of the coredump: https://wiki.archlinux.org/title/Core_d … _core_dump

Offline

#3 2025-01-21 18:30:59

TexRecon
Member
Registered: 2025-01-21
Posts: 4

Re: [SOLVED]Cant get electron apps working on wayland

Here is the output of ps aux | grep Xwayland to show that its running

 Tex          898  0.0  0.4 1243936 155808 tty1   Sl+  10:47   0:01 Xwayland :0 -rootless -core -listenfd 52 -listenfd 53 -displayfd 81 -wm 78

and here is the coredump for unityHub:

           PID: 43635 (unityhub-bin)
           UID: 1000 (Tex)
           PID: 43635 (unityhub-bin)
           PID: 43635 (unityhub-bin)
           UID: 1000 (Tex)
           GID: 1000 (Tex)
        Signal: 11 (SEGV)
     Timestamp: Tue 2025-01-21 12:13:02 CST (42s ago)
  Command Line: $'/opt/unityhub/unityhub-bin '
    Executable: /opt/unityhub/unityhub-bin
 Control Group: /user.slice/user-1000.slice/user@1000.service/kitty-6752-0.scope
          Unit: user@1000.service
     User Unit: kitty-6752-0.scope
         Slice: user-1000.slice
     Owner UID: 1000 (Tex)
       Boot ID: 18b38a89ce70480fb73e818c8719f73c
    Machine ID: 120ef7d5db194a999de7e50362069cfa
      Hostname: BlueyCorp
       Storage: /var/lib/systemd/coredump/core.unityhub-bin.1000.18b38a89ce70480fb73e818c8719f73c.43635.1737483182>
  Size on Disk: 19.4M
       Message: Process 43635 (unityhub-bin) of user 1000 dumped core.
                
                Stack trace of thread 43650:
                #0  0x00007123a7d5371a realpath (libc.so.6 + 0x3e71a)
                #1  0x000065115794d0aa n/a (n/a + 0x0)
                #2  0x00006511588b14d8 n/a (n/a + 0x0)
                #3  0x00006511588b18fc n/a (n/a + 0x0)
                #4  0x00006511588b18fc n/a (n/a + 0x0)
                #5  0x00006511588b18fc n/a (n/a + 0x0)
                #6  0x00006511588b18fc n/a (n/a + 0x0)
                #7  0x00006511588b18fc n/a (n/a + 0x0)
                #8  0x00006511588b18fc n/a (n/a + 0x0)
                #9  0x00006511588b18fc n/a (n/a + 0x0)
                #10 0x00006511588b18fc n/a (n/a + 0x0)
                #11 0x00006511588b18fc n/a (n/a + 0x0)
                #12 0x00006511588b18fc n/a (n/a + 0x0)
                #13 0x00006511588b18fc n/a (n/a + 0x0)
                #14 0x00006511588b18fc n/a (n/a + 0x0)
                #15 0x00006511588b18fc n/a (n/a + 0x0)
                #16 0x00006511588b18fc n/a (n/a + 0x0)
                #17 0x00006511588b18fc n/a (n/a + 0x0)
                #18 0x00006511588b18fc n/a (n/a + 0x0)
                #19 0x00006511588b18fc n/a (n/a + 0x0)
                #20 0x00006511588b18fc n/a (n/a + 0x0)
                #21 0x00006511588b18fc n/a (n/a + 0x0)
                #22 0x00006511588b18fc n/a (n/a + 0x0)
                #23 0x00006511588b18fc n/a (n/a + 0x0)
                #24 0x00006511588b18fc n/a (n/a + 0x0)
                #25 0x00006511588b18fc n/a (n/a + 0x0)
                #26 0x00006511588b18fc n/a (n/a + 0x0)
                #27 0x00006511588b18fc n/a (n/a + 0x0)
                #28 0x00006511588b18fc n/a (n/a + 0x0)
                #29 0x00006511588b18fc n/a (n/a + 0x0)
                #30 0x00006511588b18fc n/a (n/a + 0x0)
                #31 0x00006511588b18fc n/a (n/a + 0x0)
                #32 0x00006511588b18fc n/a (n/a + 0x0)
                #33 0x00006511588b18fc n/a (n/a + 0x0)
                #34 0x00006511588b18fc n/a (n/a + 0x0)
                #35 0x00006511588b18fc n/a (n/a + 0x0)
                #36 0x00006511588b18fc n/a (n/a + 0x0)
                #37 0x00006511588b18fc n/a (n/a + 0x0)
                #38 0x00006511588b18fc n/a (n/a + 0x0)
                #39 0x00006511588b18fc n/a (n/a + 0x0)
                #40 0x00006511588b18fc n/a (n/a + 0x0)
                #41 0x00006511588b18fc n/a (n/a + 0x0)
                #42 0x00006511588b18fc n/a (n/a + 0x0)
                #43 0x00006511588b18fc n/a (n/a + 0x0)
                #44 0x00006511588b18fc n/a (n/a + 0x0)
                #45 0x00006511588b18fc n/a (n/a + 0x0)
                #46 0x00006511588b18fc n/a (n/a + 0x0)
                #47 0x00006511588b18fc n/a (n/a + 0x0)
                #48 0x00006511588b18fc n/a (n/a + 0x0)
                #49 0x00006511588b18fc n/a (n/a + 0x0)
                #50 0x00006511588b18fc n/a (n/a + 0x0)
                #51 0x00006511588b18fc n/a (n/a + 0x0)
                #52 0x00006511588b18fc n/a (n/a + 0x0)
                #53 0x00006511588b18fc n/a (n/a + 0x0)
                #54 0x00006511588b18fc n/a (n/a + 0x0)
                #55 0x00006511588b18fc n/a (n/a + 0x0)
                #56 0x00006511588b18fc n/a (n/a + 0x0)
                #57 0x00006511588b18fc n/a (n/a + 0x0)
                #58 0x00006511588b18fc n/a (n/a + 0x0)
                #59 0x00006511588b18fc n/a (n/a + 0x0)
                #60 0x00006511588b18fc n/a (n/a + 0x0)
                #61 0x00006511588b18fc n/a (n/a + 0x0)
                #62 0x00006511588b18fc n/a (n/a + 0x0)
                #63 0x00006511588b18fc n/a (n/a + 0x0)
                
                Stack trace of thread 43635:
                #0  0x00006511545982cc n/a (n/a + 0x0)
                #1  0x0000651157966700 n/a (n/a + 0x0)
                #2  0x000065115586a0f9 n/a (n/a + 0x0)
                #3  0x000065115581741e n/a (n/a + 0x0)
                #4  0x00006511558765b0 n/a (n/a + 0x0)
                #5  0x0000651155876947 n/a (n/a + 0x0)
                #6  0x000065115580500a n/a (n/a + 0x0)
                #7  0x0000651155804adf n/a (n/a + 0x0)
                #8  0x0000651155919e24 n/a (n/a + 0x0)
                #9  0x0000651155daa9b4 n/a (n/a + 0x0)
                #10 0x00006510dff17338 n/a (n/a + 0x0)
                #11 0x00006510dffcd09e n/a (n/a + 0x0)
                #12 0x00006510dfe8b82c n/a (n/a + 0x0)
                #13 0x00006510dfe8b82c n/a (n/a + 0x0)
                #14 0x00006510c00efac6 n/a (n/a + 0x0)
                #15 0x00006510dfe8b82c n/a (n/a + 0x0)
                #16 0x00006510c00e843c n/a (n/a + 0x0)
                #17 0x00006510c01131f3 n/a (n/a + 0x0)
                #18 0x00006510dfe8b82c n/a (n/a + 0x0)
                #19 0x00006510c00e843c n/a (n/a + 0x0)
                #20 0x00006510c01131f3 n/a (n/a + 0x0)
                #21 0x00006510c021cc8e n/a (n/a + 0x0)
                #22 0x00006510dfe89e5c n/a (n/a + 0x0)
                #23 0x00006510dfe89b87 n/a (n/a + 0x0)
                #24 0x00006511558e89fc n/a (n/a + 0x0)
                #25 0x00006511558e8293 n/a (n/a + 0x0)
                #26 0x00006511557ccd5b n/a (n/a + 0x0)
                #26 0x00006511557ccd5b n/a (n/a + 0x0)
           PID: 43635 (unityhub-bin)
           UID: 1000 (Tex)
           GID: 1000 (Tex)
        Signal: 11 (SEGV)
     Timestamp: Tue 2025-01-21 12:13:02 CST (42s ago)
  Command Line: $'/opt/unityhub/unityhub-bin '
    Executable: /opt/unityhub/unityhub-bin
 Control Group: /user.slice/user-1000.slice/user@1000.service/kitty-6752-0.scope
          Unit: user@1000.service
     User Unit: kitty-6752-0.scope
         Slice: user-1000.slice
     Owner UID: 1000 (Tex)
       Boot ID: 18b38a89ce70480fb73e818c8719f73c
    Machine ID: 120ef7d5db194a999de7e50362069cfa
      Hostname: BlueyCorp
       Storage: /var/lib/systemd/coredump/core.unityhub-bin.1000.18b38a89ce70480fb73e818c8719f73c.43635.1737483182>
  Size on Disk: 19.4M
       Message: Process 43635 (unityhub-bin) of user 1000 dumped core.
                
                Stack trace of thread 43650:
                #0  0x00007123a7d5371a realpath (libc.so.6 + 0x3e71a)
                #1  0x000065115794d0aa n/a (n/a + 0x0)
                #2  0x00006511588b14d8 n/a (n/a + 0x0)
                #3  0x00006511588b18fc n/a (n/a + 0x0)
                #4  0x00006511588b18fc n/a (n/a + 0x0)
                #5  0x00006511588b18fc n/a (n/a + 0x0)
                #6  0x00006511588b18fc n/a (n/a + 0x0)
                #7  0x00006511588b18fc n/a (n/a + 0x0)
                #8  0x00006511588b18fc n/a (n/a + 0x0)
                #9  0x00006511588b18fc n/a (n/a + 0x0)
                #10 0x00006511588b18fc n/a (n/a + 0x0)

and here is the coredump for Standard-Notes:

coredumpctl info 50213
           PID: 50213 (electron)
           UID: 1000 (Tex)
           GID: 1000 (Tex)
        Signal: 11 (SEGV)
     Timestamp: Tue 2025-01-21 12:28:21 CST (1min 20s ago)
  Command Line: $'/usr/lib/electron31/electron /usr/lib/standard-notes/app.asar'
    Executable: /usr/lib/electron31/electron
 Control Group: /user.slice/user-1000.slice/user@1000.service/kitty-6752-0.scope
          Unit: user@1000.service
     User Unit: kitty-6752-0.scope
         Slice: user-1000.slice
     Owner UID: 1000 (Tex)
       Boot ID: 18b38a89ce70480fb73e818c8719f73c
    Machine ID: 120ef7d5db194a999de7e50362069cfa
      Hostname: BlueyCorp
       Storage: /var/lib/systemd/coredump/core.electron.1000.18b38a89ce70480fb73e818c8719f73c.50213.17374841010000>
  Size on Disk: 25.6M
       Message: Process 50213 (electron) of user 1000 dumped core.
                
                Stack trace of thread 50222:
                #0  0x00007899be0eb71a realpath (libc.so.6 + 0x3e71a)
                #1  0x00005883136eac9e n/a (n/a + 0x0)
                #2  0x00005883146116d0 n/a (n/a + 0x0)
                #3  0x0000588314611c5b n/a (n/a + 0x0)
                #4  0x0000588314611c5b n/a (n/a + 0x0)
                #5  0x0000588314611c5b n/a (n/a + 0x0)
                #6  0x0000588314611c5b n/a (n/a + 0x0)
                #7  0x0000588314611c5b n/a (n/a + 0x0)
                #8  0x0000588314611c5b n/a (n/a + 0x0)
                #9  0x0000588314611c5b n/a (n/a + 0x0)
                #10 0x0000588314611c5b n/a (n/a + 0x0)
                #11 0x0000588314611c5b n/a (n/a + 0x0)
                #12 0x0000588314611c5b n/a (n/a + 0x0)
                #13 0x0000588314611c5b n/a (n/a + 0x0)
                #14 0x0000588314611c5b n/a (n/a + 0x0)
                #15 0x0000588314611c5b n/a (n/a + 0x0)
                #16 0x0000588314611c5b n/a (n/a + 0x0)
                #17 0x0000588314611c5b n/a (n/a + 0x0)
                #18 0x0000588314611c5b n/a (n/a + 0x0)
                #19 0x0000588314611c5b n/a (n/a + 0x0)
                #20 0x0000588314611c5b n/a (n/a + 0x0)
                #21 0x0000588314611c5b n/a (n/a + 0x0)
                #22 0x0000588314611c5b n/a (n/a + 0x0)
                #23 0x0000588314611c5b n/a (n/a + 0x0)
                #24 0x0000588314611c5b n/a (n/a + 0x0)
                #25 0x0000588314611c5b n/a (n/a + 0x0)
                #26 0x0000588314611c5b n/a (n/a + 0x0)
                #27 0x0000588314611c5b n/a (n/a + 0x0)
                #28 0x0000588314611c5b n/a (n/a + 0x0)
                #29 0x0000588314611c5b n/a (n/a + 0x0)
                #30 0x0000588314611c5b n/a (n/a + 0x0)
                #31 0x0000588314611c5b n/a (n/a + 0x0)
                #32 0x0000588314611c5b n/a (n/a + 0x0)
                #33 0x0000588314611c5b n/a (n/a + 0x0)
                #34 0x0000588314611c5b n/a (n/a + 0x0)
                #35 0x0000588314611c5b n/a (n/a + 0x0)
                #36 0x0000588314611c5b n/a (n/a + 0x0)
                #37 0x0000588314611c5b n/a (n/a + 0x0)
                #38 0x0000588314611c5b n/a (n/a + 0x0)
                #39 0x0000588314611c5b n/a (n/a + 0x0)
                #40 0x0000588314611c5b n/a (n/a + 0x0)
                #41 0x0000588314611c5b n/a (n/a + 0x0)
                #42 0x0000588314611c5b n/a (n/a + 0x0)
                #43 0x0000588314611c5b n/a (n/a + 0x0)
                #44 0x0000588314611c5b n/a (n/a + 0x0)
                #45 0x0000588314611c5b n/a (n/a + 0x0)
                #46 0x0000588314611c5b n/a (n/a + 0x0)
                #47 0x0000588314611c5b n/a (n/a + 0x0)
                #48 0x0000588314611c5b n/a (n/a + 0x0)
                #49 0x0000588314611c5b n/a (n/a + 0x0)
                #50 0x0000588314611c5b n/a (n/a + 0x0)
                #51 0x0000588314611c5b n/a (n/a + 0x0)
                #52 0x0000588314611c5b n/a (n/a + 0x0)
                #53 0x0000588314611c5b n/a (n/a + 0x0)
                #54 0x0000588314611c5b n/a (n/a + 0x0)
                #55 0x0000588314611c5b n/a (n/a + 0x0)
                #56 0x0000588314611c5b n/a (n/a + 0x0)
                #57 0x0000588314611c5b n/a (n/a + 0x0)
                #58 0x0000588314611c5b n/a (n/a + 0x0)
                #59 0x0000588314611c5b n/a (n/a + 0x0)
                #60 0x0000588314611c5b n/a (n/a + 0x0)
                #61 0x0000588314611c5b n/a (n/a + 0x0)
                #62 0x0000588314611c5b n/a (n/a + 0x0)
                #63 0x0000588314611c5b n/a (n/a + 0x0)
                
                Stack trace of thread 50226:
                #0  0x00007899be1b8355 __open64 (libc.so.6 + 0x10b355)
                #1  0x00007899be137a9f _IO_file_open (libc.so.6 + 0x8aa9f)
                #2  0x00007899be137c55 _IO_file_fopen (libc.so.6 + 0x8ac55)
                #3  0x00007899be12bea8 n/a (libc.so.6 + 0x7eea8)
                #4  0x00005883136edf30 n/a (n/a + 0x0)
                #5  0x00005883136e28c0 n/a (n/a + 0x0)
                #6  0x00005883146119d7 n/a (n/a + 0x0)
                #7  0x0000588314611c5b n/a (n/a + 0x0)
                #8  0x0000588314611c5b n/a (n/a + 0x0)
                #9  0x0000588314611c5b n/a (n/a + 0x0)
                #10 0x0000588314611c5b n/a (n/a + 0x0)
                #11 0x0000588314611c5b n/a (n/a + 0x0)
                #12 0x0000588314611c5b n/a (n/a + 0x0)
                #13 0x0000588314611c5b n/a (n/a + 0x0)
                #14 0x0000588314611c5b n/a (n/a + 0x0)
                #15 0x0000588314611c5b n/a (n/a + 0x0)
                #16 0x0000588314611c5b n/a (n/a + 0x0)
                #17 0x0000588314611c5b n/a (n/a + 0x0)
                #18 0x0000588314611c5b n/a (n/a + 0x0)
                #19 0x0000588314611c5b n/a (n/a + 0x0)
                #20 0x0000588314611c5b n/a (n/a + 0x0)
                #21 0x0000588314611c5b n/a (n/a + 0x0)
                #22 0x0000588314611c5b n/a (n/a + 0x0)
                #23 0x0000588314611c5b n/a (n/a + 0x0)
                #24 0x0000588314611c5b n/a (n/a + 0x0)
                #25 0x0000588314611c5b n/a (n/a + 0x0)
                #26 0x0000588314611c5b n/a (n/a + 0x0)
                #27 0x0000588314611c5b n/a (n/a + 0x0)
                #28 0x0000588314611c5b n/a (n/a + 0x0)
                #29 0x0000588314611c5b n/a (n/a + 0x0)
                #30 0x0000588314611c5b n/a (n/a + 0x0)
                #31 0x0000588314611c5b n/a (n/a + 0x0)
                #32 0x0000588314611c5b n/a (n/a + 0x0)
                #33 0x0000588314611c5b n/a (n/a + 0x0)
                #34 0x0000588314611c5b n/a (n/a + 0x0)
                #35 0x0000588314611c5b n/a (n/a + 0x0)
                #36 0x0000588314611c5b n/a (n/a + 0x0)
                #37 0x0000588314611c5b n/a (n/a + 0x0)
                #38 0x0000588314611c5b n/a (n/a + 0x0)
                #39 0x0000588314611c5b n/a (n/a + 0x0)
                #40 0x0000588314611c5b n/a (n/a + 0x0)
                #41 0x0000588314611c5b n/a (n/a + 0x0)
                #42 0x0000588314611c5b n/a (n/a + 0x0)
                #43 0x0000588314611c5b n/a (n/a + 0x0)
                #44 0x0000588314611c5b n/a (n/a + 0x0)
                #45 0x0000588314611c5b n/a (n/a + 0x0)
                #46 0x0000588314611c5b n/a (n/a + 0x0)
                #47 0x0000588314611c5b n/a (n/a + 0x0)
                #48 0x0000588314611c5b n/a (n/a + 0x0)
                #49 0x0000588314611c5b n/a (n/a + 0x0)
                #50 0x0000588314611c5b n/a (n/a + 0x0)
                #51 0x0000588314611c5b n/a (n/a + 0x0)
                #52 0x0000588314611c5b n/a (n/a + 0x0)
                #53 0x0000588314611c5b n/a (n/a + 0x0)
                #54 0x0000588314611c5b n/a (n/a + 0x0)
                #55 0x0000588314611c5b n/a (n/a + 0x0)
                #56 0x0000588314611c5b n/a (n/a + 0x0)
                #57 0x0000588314611c5b n/a (n/a + 0x0)
                #58 0x0000588314611c5b n/a (n/a + 0x0)
                #59 0x0000588314611c5b n/a (n/a + 0x0)
                #60 0x0000588314611c5b n/a (n/a + 0x0)
                #61 0x0000588314611c5b n/a (n/a + 0x0)
                #62 0x0000588314611c5b n/a (n/a + 0x0)
                #63 0x0000588314611c5b n/a (n/a + 0x0)
                
                Stack trace of thread 50229:
                #0  0x00007899be13da19 n/a (libc.so.6 + 0x90a19)
                #1  0x00007899be140479 pthread_cond_wait (libc.so.6 + 0x93479)
                #2  0x000058830f9ac9ea n/a (n/a + 0x0)
                #3  0x0000588317c8be97 n/a (n/a + 0x0)
                #4  0x00007899be14139d n/a (libc.so.6 + 0x9439d)
                #5  0x00007899be1c649c n/a (libc.so.6 + 0x11949c)
                
                Stack trace of thread 50224:
                #0  0x00007899be1b8355 __open64 (libc.so.6 + 0x10b355)
                #1  0x00007899be137a9f _IO_file_open (libc.so.6 + 0x8aa9f)
                #2  0x00007899be137c55 _IO_file_fopen (libc.so.6 + 0x8ac55)
                #3  0x00007899be12bea8 n/a (libc.so.6 + 0x7eea8)
                #4  0x00005883136edf30 n/a (n/a + 0x0)
                #5  0x00005883136e28c0 n/a (n/a + 0x0)
                #6  0x00005883146118d3 n/a (n/a + 0x0)
                #7  0x0000588314611c5b n/a (n/a + 0x0)
                #8  0x0000588314611c5b n/a (n/a + 0x0)
                #9  0x0000588314611c5b n/a (n/a + 0x0)
                #10 0x0000588314611c5b n/a (n/a + 0x0)
                #11 0x0000588314611c5b n/a (n/a + 0x0)
                #12 0x0000588314611c5b n/a (n/a + 0x0)
                #13 0x0000588314611c5b n/a (n/a + 0x0)
                #14 0x0000588314611c5b n/a (n/a + 0x0)
                #15 0x0000588314611c5b n/a (n/a + 0x0)
                #16 0x0000588314611c5b n/a (n/a + 0x0)
                #17 0x0000588314611c5b n/a (n/a + 0x0)
                #18 0x0000588314611c5b n/a (n/a + 0x0)
                #19 0x0000588314611c5b n/a (n/a + 0x0)
                #20 0x0000588314611c5b n/a (n/a + 0x0)
                #21 0x0000588314611c5b n/a (n/a + 0x0)
                #22 0x0000588314611c5b n/a (n/a + 0x0)
                #23 0x0000588314611c5b n/a (n/a + 0x0)
                #24 0x0000588314611c5b n/a (n/a + 0x0)
                #25 0x0000588314611c5b n/a (n/a + 0x0)
                #26 0x0000588314611c5b n/a (n/a + 0x0)
                #27 0x0000588314611c5b n/a (n/a + 0x0)
                #28 0x0000588314611c5b n/a (n/a + 0x0)
                #29 0x0000588314611c5b n/a (n/a + 0x0)
                #30 0x0000588314611c5b n/a (n/a + 0x0)
                #31 0x0000588314611c5b n/a (n/a + 0x0)
                #32 0x0000588314611c5b n/a (n/a + 0x0)
                #33 0x0000588314611c5b n/a (n/a + 0x0)
                #34 0x0000588314611c5b n/a (n/a + 0x0)
                #35 0x0000588314611c5b n/a (n/a + 0x0)
                #36 0x0000588314611c5b n/a (n/a + 0x0)
                #37 0x0000588314611c5b n/a (n/a + 0x0)
                #38 0x0000588314611c5b n/a (n/a + 0x0)
                #39 0x0000588314611c5b n/a (n/a + 0x0)
                #40 0x0000588314611c5b n/a (n/a + 0x0)
                #41 0x0000588314611c5b n/a (n/a + 0x0)
                #42 0x0000588314611c5b n/a (n/a + 0x0)
                #43 0x0000588314611c5b n/a (n/a + 0x0)
                #44 0x0000588314611c5b n/a (n/a + 0x0)
                #45 0x0000588314611c5b n/a (n/a + 0x0)
                #46 0x0000588314611c5b n/a (n/a + 0x0)
                #47 0x0000588314611c5b n/a (n/a + 0x0)
                #48 0x0000588314611c5b n/a (n/a + 0x0)
                #49 0x0000588314611c5b n/a (n/a + 0x0)
                #50 0x0000588314611c5b n/a (n/a + 0x0)
                #51 0x0000588314611c5b n/a (n/a + 0x0)
                #52 0x0000588314611c5b n/a (n/a + 0x0)
                #53 0x0000588314611c5b n/a (n/a + 0x0)
                #54 0x0000588314611c5b n/a (n/a + 0x0)
                #55 0x0000588314611c5b n/a (n/a + 0x0)
                #56 0x0000588314611c5b n/a (n/a + 0x0)
                #57 0x0000588314611c5b n/a (n/a + 0x0)
                #58 0x0000588314611c5b n/a (n/a + 0x0)
                #59 0x0000588314611c5b n/a (n/a + 0x0)
                #60 0x0000588314611c5b n/a (n/a + 0x0)
                #61 0x0000588314611c5b n/a (n/a + 0x0)
                #62 0x0000588314611c5b n/a (n/a + 0x0)
                #63 0x0000588314611c5b n/a (n/a + 0x0)
                
                Stack trace of thread 50230:
                #0  0x00007899be13da19 n/a (libc.so.6 + 0x90a19)
                #1  0x00007899be140479 pthread_cond_wait (libc.so.6 + 0x93479)
                #2  0x000058830f9ac9ea n/a (n/a + 0x0)
                #3  0x0000588317c8be97 n/a (n/a + 0x0)
                #4  0x00007899be14139d n/a (libc.so.6 + 0x9439d)
                #5  0x00007899be1c649c n/a (libc.so.6 + 0x11949c)
                
                Stack trace of thread 50232:
                #0  0x00007899be13da19 n/a (libc.so.6 + 0x90a19)
                #1  0x00007899be149858 n/a (libc.so.6 + 0x9c858)
                #2  0x000058830f9ac7f6 n/a (n/a + 0x0)
                #3  0x0000588317d48fac n/a (n/a + 0x0)
                #4  0x00007899be14139d n/a (libc.so.6 + 0x9439d)
                #5  0x00007899be1c649c n/a (libc.so.6 + 0x11949c)
                
                Stack trace of thread 50231:
                #0  0x00007899be13da19 n/a (libc.so.6 + 0x90a19)
                #1  0x00007899be140479 pthread_cond_wait (libc.so.6 + 0x93479)
                #2  0x000058830f9ac9ea n/a (n/a + 0x0)
                #3  0x0000588317c8be97 n/a (n/a + 0x0)
                #4  0x00007899be14139d n/a (libc.so.6 + 0x9439d)
                #5  0x00007899be1c649c n/a (libc.so.6 + 0x11949c)
                
                Stack trace of thread 50213:
                #0  0x00007899be1b8bb0 ppoll (libc.so.6 + 0x10bbb0)
                #1  0x00007899c0970327 n/a (libglib-2.0.so.0 + 0xc0327)
                #2  0x00007899c090ca55 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca55)
                #3  0x00005883137088ac n/a (n/a + 0x0)
                #4  0x00005883136a0e4a n/a (n/a + 0x0)
                #5  0x0000588313669aa6 n/a (n/a + 0x0)
                #6  0x00005883123562bd n/a (n/a + 0x0)
                #7  0x00005883123580d3 n/a (n/a + 0x0)
                #8  0x000058831235382a n/a (n/a + 0x0)
                #9  0x000058830fd27557 n/a (n/a + 0x0)
                #10 0x000058830fd28ef7 n/a (n/a + 0x0)
                #11 0x000058830fd28cd8 n/a (n/a + 0x0)
                #12 0x000058830fd26061 n/a (n/a + 0x0)
                #13 0x000058830fd2655a n/a (n/a + 0x0)
                #14 0x000058830f9b49ae n/a (n/a + 0x0)
                #15 0x00007899be0d2e08 n/a (libc.so.6 + 0x25e08)
                #16 0x00007899be0d2ecc __libc_start_main (libc.so.6 + 0x25ecc)
                #17 0x000058830f61c025 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

I haven't mentioned it yet but both of these are installed from the AUR,
and an additional error ive noticed when running from the terminal is

 APPIMAGE env is not defined, current application is not an AppImage 

I tried installing the pure Appimage for unityHub, and the Appimage error goes away but everything else is the same

Offline

#4 2025-01-21 21:21:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Offline

#5 2025-01-23 01:36:14

TexRecon
Member
Registered: 2025-01-21
Posts: 4

Re: [SOLVED]Cant get electron apps working on wayland

So I went through that and some of the other replies of people dealing with the same thing, i downloaded an xcursor theme(that someone else got working) and changed my cursor settings in ~/.config/hypr/hyprland.conf

env = HYPRCURSOR_THEME,Quintom_Snow
env = HYPRCURSOR_SIZE,24
env = XCURSOR_THEME,Quintom_Snow
env = XCURSOR_SIZE,24

and i ran your script on /usr/share/icons/Quintom_Snow/cursors and got the following output(ran a few times)

╰─> sudo ~/.icons/cursor-fix.sh
left_ptr arrow dnd-none op_left_arrow
left_ptr
cross diamond-cross cross-reverse crosshair
cross
up_arrow center_ptr sb_up_arrow centre_ptr
up_arrow
wait watch progress
wait
ibeam xterm text
ibeam
fleur size_all
fleur
pointing_hand pointer hand hand1 hand2 e29285e634086352946a0e7090d73106 9d800788f1b08800ae810202380a0822
pointing_hand
size_ver sb_v_double_arrow v_double_arrow n-resize s-resize col-resize top_side bottom_side base_arrow_up base_arrow_down based_arrow_down based_arrow_up 00008160000006810000408080010102
size_ver
size_hor sb_h_double_arrow h_double_arrow e-resize w-resize row-resize right_side left_side 028006030e0e7ebffc7f7070c0600140
size_hor
size_bdiag fd_double_arrow bottom_left_corner top_right_corner fcf1c3c7cd4491d801f1e1c78f100000
size_bdiag
size_fdiag bd_double_arrow bottom_right_corner top_left_corner c7088f0f3e6c8088236ef8e1e3e70000
size_fdiag
whats_this left_ptr_help help question_arrow dnd-ask d9ce0ab605698f320427677b458ad60b 5c6cd98b3f3ebcb1f9c7f1c204630408
whats_this
split_h 14fef782d02440884392942c11205230 size_hor
split_h
split_v 2870a09082c103050810ffdffffe0204 size_ver
split_v
forbidden circle dnd-no-drop not-allowed 03b6e0fcb3499374a867c041f52298f0
forbidden
left_ptr_watch half-busy 3ecb610c1bf2410f44200f48c40d3599 00000000000000020006000e7e9ffc3f 08e8e1c95fe2fc01f976f1e063a24ccd
left_ptr_watch
openhand all_scroll all-scroll 9141b49c8149039304290b508d208c40
openhand
closedhand 05e88622050804100c20044008402080 4498f0e0c1937ffe01fd06f973665830 9081237383d90e509aa00f00170e968f fcf21c00b30f7e3f83fe0dfd12e71cff
closedhand
dnd-link link alias 3085a0e285430894940527032f8b26df 640fb0e74195791501fd1ed57b41487f a2a266d0498c3104214a47bd64ab0fc8
dnd-link
dnd-copy copy 1081e37283d90000800003c07f3ef6bf 6407b0e94181790501fd1e167b474872 b66166c04f8c3109214a4fbd64a50fc8
dnd-copy
dnd-move move
dnd-move

but no fix, when i check it out in gdb i get the following where it freezes and i can see some stuff about usr/share/icon

Starting program: /opt/unityhub/unityhub-bin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff1bff6c0 (LWP 6917)]
[Detaching after fork from child process 6918]
[Detaching after fork from child process 6919]
[Detaching after fork from child process 6920]
[New Thread 0x7ffff13fe6c0 (LWP 6923)]
[New Thread 0x7ffff0bfd6c0 (LWP 6924)]
[New Thread 0x7ffff03fc6c0 (LWP 6925)]
[New Thread 0x7fffefbfb6c0 (LWP 6926)]
[New Thread 0x7fffef3fa6c0 (LWP 6927)]
[New Thread 0x7fffeebf96c0 (LWP 6928)]
[New Thread 0x7fffee3f86c0 (LWP 6929)]
[New Thread 0x7fffed7ff6c0 (LWP 6930)]
[New Thread 0x7fffecffe6c0 (LWP 6931)]
[New Thread 0x7fffec7fd6c0 (LWP 6932)]
[New Thread 0x7fffebffc6c0 (LWP 6933)]
[New Thread 0x7ffff2dff6c0 (LWP 6934)]
[New Thread 0x7fffab5ff6c0 (LWP 6935)]
[New Thread 0x7fffaadfe6c0 (LWP 6936)]
[New Thread 0x7fffaa5fd6c0 (LWP 6937)]
[New Thread 0x7fffa9dfc6c0 (LWP 6938)]
[Detaching after fork from child process 6942]
[New Thread 0x7fffa8fff6c0 (LWP 6946)]
[New Thread 0x7fffa87fe6c0 (LWP 6947)]
[New Thread 0x7fffa7ffd6c0 (LWP 6948)]
[New Thread 0x7fffa71ff6c0 (LWP 6949)]
[New Thread 0x7fffa69fe6c0 (LWP 6950)]
[New Thread 0x7fffa57ff6c0 (LWP 6951)]
[New Thread 0x7ffff2dba6c0 (LWP 6952)]
[New Thread 0x7fffa49ff6c0 (LWP 6953)]
[New Thread 0x7fffa41fe6c0 (LWP 6954)]
[New Thread 0x7fffa39fd6c0 (LWP 6955)]
[New Thread 0x7fffa31fc6c0 (LWP 6956)]
[New Thread 0x7fffa29fb6c0 (LWP 6958)]
[New Thread 0x7fffa21fa6c0 (LWP 6959)]
[Detaching after fork from child process 6961]
[New Thread 0x7fffa19f96c0 (LWP 6962)]
[Detaching after fork from child process 6963]
[New Thread 0x7fffa11f86c0 (LWP 6964)]
[New Thread 0x7fffa09f76c0 (LWP 7036)]
[Detaching after fork from child process 7037]
[New Thread 0x7fffa01f66c0 (LWP 7068)]
[New Thread 0x7fff9f9f56c0 (LWP 7069)]
[New Thread 0x7fff9f1f46c0 (LWP 7070)]
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The name is not activatable
[Thread 0x7fff9f9f56c0 (LWP 7069) exited]
[Thread 0x7fffa01f66c0 (LWP 7068) exited]
[Thread 0x7fffa09f76c0 (LWP 7036) exited]
APPIMAGE env is not defined, current application is not an AppImage
[New Thread 0x7fffa01f66c0 (LWP 7074)]
[Detaching after fork from child process 7080]
[New Thread 0x7fff9f9f56c0 (LWP 7191)]
[Detaching after fork from child process 7197]
[6957:0122/193333.462663:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: DisplayRead|Scanout, format: YUV_420_BIPLANAR, share_between_threads: 0, gmb_type: platform
[6957:0122/193333.463019:ERROR:shared_image_stub.cc(147)] SharedImageStub: Unable to create shared image

Thread 26 "ThreadPoolForeg" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa49ff6c0 (LWP 6953)]
__GI___realpath (name=0x7fffa4201d31 "/usr/share/icons", resolved=0x7fffa4200c40 '\252' <repeats 200 times>...)
    at canonicalize.c:429
429	 scratch_buffer_init (&bufs.extra);

so maybe I did something wrong? Im stuck now

Offline

#6 2025-01-23 08:56:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED]Cant get electron apps working on wayland

sudo ~/.icons/cursor-fix.sh

Don't sudo that, the cursors are in your $HOME - what do the stack traces now look like?

i downloaded an xcursor theme

Which theme have you been using so far, why didn't you fix that?
Are you sure that electron client picks up your cursor theme?

strace /opt/unityhub/unityhub-bin |& grep icons

Offline

#7 2025-01-23 17:57:25

TexRecon
Member
Registered: 2025-01-21
Posts: 4

Re: [SOLVED]Cant get electron apps working on wayland

I got it to work, So i think the script actually worked but i went into gtk-settings and saw all of the files it was exporting so i went to ~/.config/gtk-3.0/settings.ini, ~/.gtkrc-2.0, and ~/.config/xsettingsd/xsettingsd.conf and changed their cursor variable to the one i am currently using. I tried this because when I was trying to grep the strace for 'icons' I didnt see my theme.

Which theme have you been using so far, why didn't you fix that?

I switched because i thought it may have just been the theme and wanted to switch to one that was 'guaranteed' to work but i guess it was just those files in the end and whatever it was using as 'Default'. Anyways thank you for your help, I can finally start on my course work!

Offline

#8 2025-01-23 19:02:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED]Cant get electron apps working on wayland

There's not default theme - the only thing close to that is Adwaita which was deliberately broken by gnome developers (don't ask, nobody wants to see me banned…)
I'd tell you to remove that and install xcursor-vanilla-dmz and/or xcursor-vanilla-dmz-aa which as the same design, just not broken, but adwaita is now a hard dependency of gtk and the cursors a hard dependency of the icon theme roll

Offline

Board footer

Powered by FluxBB