NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.67k stars 13.81k forks source link

Bisected Regression: XWayland Broken #171320

Open MarekPasnikowski opened 2 years ago

MarekPasnikowski commented 2 years ago

@SuperSandro2000

Commit 7c4f9e0e249902418c1b5e42b0e4cdefd04917ac broke X applications for me. Since then it is impossible to execute any X application in the Plasma Wayland session. Plasma X11 works as expected.

The first time an X11 application is executed, it reports a variation of a connection error in a terminal and terminates. Subsequent attempts lead to a hanging process, and this persists until system reboot or a manual killing of the X process.

I am open to more questions, if needed.

Slabity commented 2 years ago

I just upgraded to the latest version and I am not running into any issues.

Using Xwayland v22.1.0 and Sway v1.7.

vs49688 commented 2 years ago

I have a similar problem, it doesn't happen all all the time, but it's frequent.

Next time it happens, can you run systemctl --user status plasma-ksmserver.service and see if it's failed?

Because of ksmserver's dependency on X11, if XWayland dies, everything dies. The Wayland session still works, but am unable to log out, shutdown, etc. Anything that tries to access the X11 socket blocks indefinitely (including vim, I've had to force guiSupport=false just to keep using it).

MarekPasnikowski commented 2 years ago

I just upgraded to the latest version and I am not running into any issues.

Using Xwayland v22.1.0 and Sway v1.7.

This means that the problem is specific to the Plasma Desktop.

I have a similar problem, it doesn't happen all all the time, but it's frequent.

For me, this happens every single time.

Next time it happens, can you run systemctl --user status plasma-ksmserver.service and see if it's failed?

Here is the log of operations on a known-bad generation of NixOS:

$ systemctl --user status plasma-ksmserver.service
○ plasma-ksmserver.service - KDE Session Management Server
     Loaded: loaded (/run/current-system/sw/share/systemd/user/plasma-ksmserver.service; linked-runtime; vendor preset: enabled)
     Active: inactive (dead)

$ lbry 
Starting SDK
Sandbox listening on port 5278.
[48:0503/093727.686386:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[2:0503/093727.738041:ERROR:connection.cc(66)] X connection error received.
[48:0503/093727.738130:ERROR:connection.cc(66)] X connection error received.
X connection to :1 broken (explicit kill or server shutdown).

$ systemctl --user status plasma-ksmserver.service 
○ plasma-ksmserver.service - KDE Session Management Server
     Loaded: loaded (/run/current-system/sw/share/systemd/user/plasma-ksmserver.service; linked-runtime; vendor preset: enabled)
     Active: inactive (dead)

After that I killed X and tried to run the ksmserver service:

$ systemctl --user status plasma-ksmserver.service 
× plasma-ksmserver.service - KDE Session Management Server
     Loaded: loaded (/run/current-system/sw/share/systemd/user/plasma-ksmserver.service; linked-runtime; vendor preset: enabled)
     Active: failed (Result: core-dump) since Tue 2022-05-03 09:50:13 CEST; 8s ago
    Process: 3470 ExecStart=/nix/store/kqbqmmjx3hswywzly0m4l4nb4w4nqval-plasma-workspace-5.24.4/bin/ksmserver (code=dumped, signal=ABRT)
   Main PID: 3470 (code=dumped, signal=ABRT)
        CPU: 214ms

maj 03 09:50:12 obikawa-acer systemd[1670]: Starting KDE Session Management Server...
maj 03 09:50:13 obikawa-acer ksmserver[3470]: org.kde.kf5.ksmserver: Cannot connect to the X server
maj 03 09:50:13 obikawa-acer ksmserver[3470]: qt.qpa.xcb: could not connect to display
maj 03 09:50:13 obikawa-acer ksmserver[3470]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
maj 03 09:50:13 obikawa-acer ksmserver[3470]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix>
maj 03 09:50:13 obikawa-acer ksmserver[3470]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, min>
maj 03 09:50:13 obikawa-acer systemd-coredump[3472]: [🡕] Process 3470 (.ksmserver-wrap) of user 1000 dumped core.

[ Long Backtrace ]

maj 03 09:50:13 obikawa-acer systemd[1670]: plasma-ksmserver.service: Main process exited, code=dumped, status=6/ABRT
maj 03 09:50:13 obikawa-acer systemd[1670]: plasma-ksmserver.service: Failed with result 'core-dump'.
maj 03 09:50:13 obikawa-acer systemd[1670]: Failed to start KDE Session Management Server.
MarekPasnikowski commented 2 years ago

I found time to dig around for more evidence. Below is output of journalctl --user -f at the time of XWayland crash.

What else should I do to provide more useful evidence?

maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE)
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) Backtrace:
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 0: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x15ec3b) [0x55ec3b]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 1: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x162665) [0x562665]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 2: /nix/store/lyl6nysc3i3aqhj6shizjgj0ibnf1pvg-glibc-2.34-210/lib/libc.so.6 (0x7f966d423000+0x3d0e0) [0x7f966d4600e0]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 3: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x225f9) [0x4225f9]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 4: /nix/store/7m5ik9rhh55m021kzmg4hb4zjfj3lyyc-libffi-3.4.2/lib/libffi.so.8 (0x7f966d2d2000+0x780a) [0x7f966d2d980a]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 5: /nix/store/7m5ik9rhh55m021kzmg4hb4zjfj3lyyc-libffi-3.4.2/lib/libffi.so.8 (0x7f966d2d2000+0x6943) [0x7f966d2d8943]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 6: /nix/store/m1r1vlkzs997xnn8yprkb20dlcvmdfdd-wayland-1.20.0/lib/libwayland-client.so.0 (0x7f966dc1c000+0xa641) [0x7f966dc26641]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 7: /nix/store/m1r1vlkzs997xnn8yprkb20dlcvmdfdd-wayland-1.20.0/lib/libwayland-client.so.0 (0x7f966dc1c000+0x6a0a) [0x7f966dc22a0a]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 8: /nix/store/m1r1vlkzs997xnn8yprkb20dlcvmdfdd-wayland-1.20.0/lib/libwayland-client.so.0 (wl_display_dispatch_queue_pending+0x6c) [0x7f966dc2431c]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 9: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x22bdb) [0x422bdb]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 10: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x163051) [0x563051]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 11: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x15c8d3) [0x55c8d3]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 12: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x8fa2a) [0x48fa2a]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 13: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x93c94) [0x493c94]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 14: /nix/store/lyl6nysc3i3aqhj6shizjgj0ibnf1pvg-glibc-2.34-210/lib/libc.so.6 (0x7f966d423000+0x29237) [0x7f966d44c237]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 15: /nix/store/lyl6nysc3i3aqhj6shizjgj0ibnf1pvg-glibc-2.34-210/lib/libc.so.6 (__libc_start_main+0x85) [0x7f966d44c2f5]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) 16: /nix/store/n9pypjdq6ql4z4lma54zji7jh8mq8z71-xwayland-22.1.1/bin/Xwayland (0x400000+0x1b521) [0x41b521]
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE)
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) Segmentation fault at address 0x30421
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE)
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: Fatal server error:
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE) Caught signal 11 (Segmentation fault). Server aborting
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1685]: (EE)
maj 31 15:24:58 obikawa-acer systemd-coredump[3655]: [🡕] Process 1685 (Xwayland) of user 1000 dumped core.

                                                     Module linux-vdso.so.1 with build-id 95945c6f4f0a2d417f23f38a4d5cb85d7df2f0ad
                                                     Module libpciaccess.so.0 without build-id.
                                                     Module libdrm_intel.so.1 without build-id.
                                                     Module libdrm_nouveau.so.2 without build-id.
                                                     Module libdrm_amdgpu.so.1 without build-id.
                                                     Module libelf.so.0 without build-id.
                                                     Module libdrm_radeon.so.1 without build-id.
                                                     Module radeonsi_dri.so with build-id 10f2f466d66ed40371545133f7980225f0777fce
                                                     Module libxml2.so.2 without build-id.
                                                     Module libncursesw.so.6 without build-id.
                                                     Module librt.so.1 with build-id 81dcc5b293a378ea5ee6ff8ba1e67b8f55381439
                                                     Module libLLVM-13.so with build-id 80ccd16f892b1df7800128b1d0462bdadafd29de
                                                     Module libxcb-sync.so.1 without build-id.
                                                     Module libxcb-present.so.0 without build-id.
                                                     Module libxcb-dri3.so.0 without build-id.
                                                     Module libxcb-xfixes.so.0 without build-id.
                                                     Module libxcb-dri2.so.0 without build-id.
                                                     Module libX11-xcb.so.1 without build-id.
                                                     Module libglapi.so.0 without build-id.
                                                     Module libEGL_mesa.so.0 without build-id.
                                                     Module libEGL.so.1 without build-id.
                                                     Module libxcb.so.1 without build-id.
                                                     Module libresolv.so.2 with build-id a34d5b36b6ca2ae656d70f2d5ce85c4910e572c3
                                                     Module libkeyutils.so.1 without build-id.
                                                     Module libkrb5support.so.0 without build-id.
                                                     Module libgcc_s.so.1 without build-id.
                                                     Module libGLdispatch.so.0 without build-id.
                                                     Module libXext.so.6 without build-id.
                                                     Module libX11.so.6 without build-id.
                                                     Module libGLX.so.0 without build-id.
                                                     Module libcom_err.so.3 without build-id.
                                                     Module libk5crypto.so.3 without build-id.
                                                     Module libkrb5.so.3 without build-id.
                                                     Module libgssapi_krb5.so.2 without build-id.
                                                     Module libdl.so.2 with build-id a4bfa88c56b19d9a13f5191cfe661e9b9f32140a
                                                     Module libstdc++.so.6 without build-id.
                                                     Module libexpat.so.1 without build-id.
                                                     Module libwayland-server.so.0 with build-id b7c291429b07a569dbb762507d473d5fe96f3bfc
                                                     Module libffi.so.8 without build-id.
                                                     Module libz.so.1 without build-id.
                                                     Module libpng16.so.16 without build-id.
                                                     Module libbz2.so.1 without build-id.
                                                     Module libfreetype.so.6 without build-id.
                                                     Module libfontenc.so.1 without build-id.
                                                     Module ld-linux-x86-64.so.2 with build-id 2d4e3d041d24aa7a72377e8cc41e9336abd77ffb
                                                     Module libpthread.so.0 with build-id bff749b993405063a72406b65328ce34b1d20b2b
                                                     Module libc.so.6 with build-id c512f38583c48b03cc0011d4583d15cea2e94d03
                                                     Module libGL.so.1 without build-id.
                                                     Module libXau.so.6 without build-id.
                                                     Module libtirpc.so.3 without build-id.
                                                     Module libcrypto.so.1.1 with build-id 6823d8bff0118bd827d506ec1a5358388dbcac43
                                                     Module libxshmfence.so.1 without build-id.
                                                     Module libm.so.6 with build-id ab70ae196025b3056f0fc0ed85a43390cda0ea4a
                                                     Module libgbm.so.1 without build-id.
                                                     Module libepoxy.so.0 without build-id.
                                                     Module libdrm.so.2 without build-id.
                                                     Module libxcvt.so.0 without build-id.
                                                     Module libwayland-client.so.0 with build-id 1ad2241d03fac0e4d5ce29b88a6c907c522ea0fd
                                                     Module libXdmcp.so.6 without build-id.
                                                     Module libXfont2.so.2 without build-id.
                                                     Module libpixman-1.so.0 with build-id fcba032707c6a460d2ca5a81ffef4937ade58563
                                                     Module Xwayland without build-id.
                                                     Stack trace of thread 1685:
                                                     #0  0x00007f966d4aac1f __pthread_kill_implementation (libc.so.6 + 0x87c1f)
                                                     #1  0x00007f966d460042 raise (libc.so.6 + 0x3d042)
                                                     #2  0x00007f966d44b49c abort (libc.so.6 + 0x2849c)
                                                     #3  0x000000000056532a OsAbort (Xwayland + 0x16532a)
                                                     #4  0x0000000000569fa3 AbortServer (Xwayland + 0x169fa3)
                                                     #5  0x000000000056af36 FatalError (Xwayland + 0x16af36)
                                                     #6  0x00000000005626c9 OsSigHandler (Xwayland + 0x1626c9)
                                                     #7  0x00007f966d4600e0 __restore_rt (libc.so.6 + 0x3d0e0)
                                                     #8  0x00000000004225f9 xwl_screen_destroy_drm_lease_device (Xwayland + 0x225f9)
                                                     #9  0x00007f966d2d980a ffi_call_unix64 (libffi.so.8 + 0x780a)
                                                     #10 0x00007f966d2d8943 ffi_call_int (libffi.so.8 + 0x6943)
                                                     #11 0x00007f966dc26641 wl_closure_invoke (libwayland-client.so.0 + 0xa641)
                                                     #12 0x00007f966dc22a0a dispatch_event.isra.0 (libwayland-client.so.0 + 0x6a0a)
                                                     #13 0x00007f966dc2431c wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x831c)
                                                     #14 0x0000000000422bdb xwl_read_events (Xwayland + 0x22bdb)
                                                     #15 0x0000000000563051 ospoll_wait (Xwayland + 0x163051)
                                                     #16 0x000000000055c8d3 WaitForSomething (Xwayland + 0x15c8d3)
                                                     #17 0x000000000048fa2a Dispatch (Xwayland + 0x8fa2a)
                                                     #18 0x0000000000493c94 dix_main (Xwayland + 0x93c94)
                                                     #19 0x00007f966d44c237 __libc_start_call_main (libc.so.6 + 0x29237)
                                                     #20 0x00007f966d44c2f5 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x292f5)
                                                     #21 0x000000000041b521 _start (Xwayland + 0x1b521)

                                                     Stack trace of thread 1712:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1711:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1710:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1716:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1713:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1722:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1721:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1717:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1714:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1715:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1718:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1719:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)

                                                     Stack trace of thread 1720:
                                                     #0  0x00007f966d4a5cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                                     #1  0x00007f966d4a84f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                                     #2  0x00007f966b3457cb util_queue_thread_func (radeonsi_dri.so + 0xbb7cb)
                                                     #3  0x00007f966b345417 impl_thrd_routine (radeonsi_dri.so + 0xbb417)
                                                     #4  0x00007f966d4a8ff2 start_thread (libc.so.6 + 0x85ff2)
                                                     #5  0x00007f966d52bbfc __clone3 (libc.so.6 + 0x108bfc)
                                                     ELF object binary architecture: AMD x86-64
maj 31 15:24:58 obikawa-acer xembedsniproxy[1787]: The X11 connection broke (error 1). Did the X11 server die?
maj 31 15:24:58 obikawa-acer gmenudbusmenuproxy[1784]: The X11 connection broke (error 1). Did the X11 server die?
maj 31 15:24:58 obikawa-acer ksmserver[1744]: The X11 connection broke (error 1). Did the X11 server die?
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-xembedsniproxy.service: Main process exited, code=exited, status=1/FAILURE
maj 31 15:24:58 obikawa-acer kded5[1746]: Service  ":1.44" unregistered
maj 31 15:24:58 obikawa-acer kwin_wayland_wrapper[1646]: kwin_xwl: Xwayland process crashed
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-xembedsniproxy.service: Failed with result 'exit-code'.
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-gmenudbusmenuproxy.service: Main process exited, code=exited, status=1/FAILURE
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-gmenudbusmenuproxy.service: Failed with result 'exit-code'.
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-ksmserver.service: Main process exited, code=exited, status=1/FAILURE
maj 31 15:24:58 obikawa-acer systemd[1595]: plasma-ksmserver.service: Failed with result 'exit-code'.
vs49688 commented 2 years ago

Do you have the evdi (DisplayLink) module loaded by any chance? I've not had this problem (and my system's been rock-solid in general) since I stopped using a DisplayLink dock.

MarekPasnikowski commented 2 years ago

evdi is not listed in my /proc/modules .

wackbyte commented 2 years ago

I'm experiencing this issue in sway 1.7. This began around June 20.

mhhf commented 2 years ago

Same here with sway

bootstrap-prime commented 2 years ago

I experienced this with sway, I did not have success reverting xwayland to the old version. I did have success overriding it to v22.1.3, which is a little bit newer than nixpkgs' xwayland. xwayland works properly-ish now.

MarekPasnikowski commented 2 years ago

Does everyone experiencing this issue have multiple GPUs, like I do? It occurred to me that this could be a contributing factor.

wackbyte commented 2 years ago

I only have one GPU.

bootstrap-prime commented 2 years ago

I also only have one GPU

shiryel commented 2 years ago

I had a similar issue when trying to use the unstable Mesa package, xwayland didn't work at all.