Bug 449797 - Plasma 5.24 and nvidia GPU: segfault in KWin::GbmSurface::swapBuffersForDrm()
Summary: Plasma 5.24 and nvidia GPU: segfault in KWin::GbmSurface::swapBuffersForDrm()
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression, wayland
: 453638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-08 16:41 UTC by Stefan
Modified: 2022-09-08 20:15 UTC (History)
19 users (show)

See Also:
Latest Commit:
Version Fixed In:
vlad.zahorodnii: NVIDIA+


Attachments
Info Center (179.32 KB, image/png)
2022-03-09 21:00 UTC, Victor Ryzhykh
Details
plasma-5.24.3 wayland (223.62 KB, image/jpeg)
2022-03-10 16:48 UTC, Victor Ryzhykh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2022-02-08 16:41:19 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Start kde neon 5.24 user edition
2. Choose Plasma wayland as session type
3. login

OBSERVED RESULT
kwin crashes and sdm returns

EXPECTED RESULT
Plasma starts


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kde neon user edition
(available in About System)
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3
nvidia driver: 510.47.03

ADDITIONAL INFORMATION
Feb 08 16:55:44 kdeneon kernel: kwin_wayland[21521]: segfault at 8 ip 00007fe91172e7b8 sp 00007ffed67f6bd0 error 4 in KWinWaylandDrmBackend.so[7fe9116e8000+48000]
Feb 08 16:55:44 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:45 kdeneon kernel: kwin_wayland[21558]: segfault at 8 ip 00007f10b3deb7b8 sp 00007ffe355fadd0 error 4 in KWinWaylandDrmBackend.so[7f10b3da5000+48000]
Feb 08 16:55:45 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:46 kdeneon kernel: kwin_wayland[21574]: segfault at 8 ip 00007f699c9cb7b8 sp 00007ffe9e92b140 error 4 in KWinWaylandDrmBackend.so[7f699c985000+48000]
Feb 08 16:55:46 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:48 kdeneon kernel: kwin_wayland[21589]: segfault at 8 ip 00007fc8e85d17b8 sp 00007fffe8fea030 error 4 in KWinWaylandDrmBackend.so[7fc8e858b000+48000]
Feb 08 16:55:48 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:49 kdeneon kernel: kwin_wayland[21604]: segfault at 8 ip 00007f4c1294c7b8 sp 00007ffe08c5f6e0 error 4 in KWinWaylandDrmBackend.so[7f4c12906000+48000]
Feb 08 16:55:49 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:51 kdeneon kernel: kwin_wayland[21620]: segfault at 8 ip 00007ff018c487b8 sp 00007ffffea38810 error 4 in KWinWaylandDrmBackend.so[7ff018c02000+48000]
Feb 08 16:55:51 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:52 kdeneon kernel: kwin_wayland[21635]: segfault at 8 ip 00007f1ee829d7b8 sp 00007fffc474be30 error 4 in KWinWaylandDrmBackend.so[7f1ee8257000+48000]
Feb 08 16:55:52 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Feb 08 16:55:53 kdeneon kernel: kwin_wayland[21651]: segfault at 8 ip 00007fcc16e7a7b8 sp 00007ffe9c1412e0 error 4 in KWinWaylandDrmBackend.so[7fcc16e34000+48000]
Feb 08 16:55:53 kdeneon kernel: Code: 5e b8 fb ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 49 89 fc 55 53 48 89 f3 48 83 ec 58 <48> 8b 7e 08 4c 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 48
Comment 1 Vlad Zahorodnii 2022-02-08 16:50:49 UTC
We need a backtrace of the crash. Can you attach the backtrace of the crash? You could get the backtrace from coredumpctl or https://community.kde.org/KWin/Debugging#I_know_nothing_about_GDB.2C_how_do_I_obtain_a_stacktrace.3F
Comment 2 Vlad Zahorodnii 2022-02-08 16:53:05 UTC
Also is kms enabled in the nvidia proprietary driver? i.e. do you run with nvidia-drm.modeset=1 kernel arg?
Comment 3 Stefan 2022-02-08 16:58:19 UTC
Yes kms is enabled and the wayland session started with plasma 5.23. So this is a regression
Comment 4 Stefan 2022-02-08 17:18:45 UTC
[New LWP 10583]
[New LWP 10584]
[New LWP 10585]
[New LWP 10586]
[New LWP 10587]
[New LWP 10588]
[New LWP 10589]
[New LWP 10590]
[New LWP 10591]
[New LWP 10592]
[New LWP 10593]
[New LWP 10594]
[New LWP 10595]
[New LWP 10596]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f2542e8b50b in ioctl () at ../sysdeps/unix/syscall-template.S:78
78      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunde                                                                                                                                                             n.

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x00007f253d08a7b8 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so

Thread 15 (Thread 0x7f2526731700 (LWP 10596)):
#0  0x00007f2542e89aff in __GI___poll (fds=0x7f24e8005240, nfds=2, timeout=-1) a                                                                                                                                                             t ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f25413f936e in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f25413f94a3 in g_main_context_iteration () at /usr/lib/x86_64-linux-g                                                                                                                                                             nu/libglib-2.0.so.0
#3  0x00007f25437e19f2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop:                                                                                                                                                             :ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2543785c9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>                                                                                                                                                             ) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f254359f362 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5                                                                                                                                                             Core.so.5
#6  0x00007f25435a0543 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#8  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 14 (Thread 0x7f2526f32700 (LWP 10595)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad1288) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad1238, co                                                                                                                                                             nd=0x564198ad1260) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad1260, mutex=0x564198ad1238) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 13 (Thread 0x7f2527733700 (LWP 10594)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad1288) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad1238, co                                                                                                                                                             nd=0x564198ad1260) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad1260, mutex=0x564198ad1238) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 12 (Thread 0x7f2527f34700 (LWP 10593)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad1288) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad1238, co                                                                                                                                                             nd=0x564198ad1260) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad1260, mutex=0x564198ad1238) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 11 (Thread 0x7f2528ff5700 (LWP 10592)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad1288) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad1238, co                                                                                                                                                             nd=0x564198ad1260) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad1260, mutex=0x564198ad1238) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 10 (Thread 0x7f2529ffb700 (LWP 10591)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ab2930) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ab28e0, co                                                                                                                                                             nd=0x564198ab2908) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ab2908, mutex=0x564198ab28e0) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 9 (Thread 0x7f252a7fc700 (LWP 10590)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ab2930) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ab28e0, co                                                                                                                                                             nd=0x564198ab2908) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ab2908, mutex=0x564198ab28e0) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 8 (Thread 0x7f252affd700 (LWP 10589)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ab2930) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ab28e0, co                                                                                                                                                             nd=0x564198ab2908) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ab2908, mutex=0x564198ab28e0) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 7 (Thread 0x7f252b7fe700 (LWP 10588)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ab2930) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ab28e0, co                                                                                                                                                             nd=0x564198ab2908) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ab2908, mutex=0x564198ab28e0) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 6 (Thread 0x7f252bfff700 (LWP 10587)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad2658) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad2608, co                                                                                                                                                             nd=0x564198ad2630) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad2630, mutex=0x564198ad2608) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 5 (Thread 0x7f2528735700 (LWP 10586)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad24f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad24a8, co                                                                                                                                                             nd=0x564198ad24d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad24d0, mutex=0x564198ad24a8) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 4 (Thread 0x7f2530f36700 (LWP 10585)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad2398) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad2348, co                                                                                                                                                             nd=0x564198ad2370) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad2370, mutex=0x564198ad2348) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 3 (Thread 0x7f253ce5b700 (LWP 10584)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564                                                                                                                                                             198ad2238) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564198ad21e8, co                                                                                                                                                             nd=0x564198ad2210) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564198ad2210, mutex=0x564198ad21e8) at pthread_c                                                                                                                                                             ond_wait.c:647
#3  0x00007f2536eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f2536eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#6  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 2 (Thread 0x7f253d8cb700 (LWP 10583)):
#0  0x00007f2542e89aff in __GI___poll (fds=0x7f25380053c0, nfds=3, timeout=-1) a                                                                                                                                                             t ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f25413f936e in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f25413f94a3 in g_main_context_iteration () at /usr/lib/x86_64-linux-g                                                                                                                                                             nu/libglib-2.0.so.0
#3  0x00007f25437e19f2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop:                                                                                                                                                             :ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2543785c9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>                                                                                                                                                             ) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f254359f362 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5                                                                                                                                                             Core.so.5
#6  0x00007f2545d65f4b in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f25435a0543 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f2543385609 in start_thread (arg=<optimized out>) at pthread_create.c                                                                                                                                                             :477
#9  0x00007f2542e96293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:                                                                                                                                                             95

Thread 1 (Thread 0x7f253e66b680 (LWP 10582)):
#0  0x00007f253d08a7b8 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#1  0x00007f253d086a43 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#2  0x00007f253d086c3b in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#3  0x00007f253d077124 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#4  0x00007f253d07920e in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#5  0x00007f253d06fac6 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#6  0x00007f253d06fc80 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#7  0x00007f253d070091 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#8  0x00007f253d070091 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#9  0x00007f253d070091 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#10 0x00007f253d0708b8 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#11 0x00007f253d071e2f in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.k                                                                                                                                                             win.waylandbackends/KWinWaylandDrmBackend.so
#12 0x00007f253d04ec44 in KWin::DrmBackend::updateOutputs() () at /usr/lib/x86_6                                                                                                                                                             4-linux-gnu/qt5/plugins/org.kde.kwin.waylandbackends/KWinWaylandDrmBackend.so
#13 0x00007f25437be1be in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f2545a8f23e in  () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f2545a90855 in KWin::WaylandCompositor::start() () at /usr/lib/x86_64                                                                                                                                                             -linux-gnu/libkwin.so.5
#16 0x00007f25437b4d39 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gn                                                                                                                                                             u/libQt5Core.so.5
#17 0x00007f25442abdc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*)                                                                                                                                                              () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f25442b4bb8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib                                                                                                                                                             /x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f254378719a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (                                                                                                                                                             ) at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f2543789aa1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, in                                                                                                                                                             t, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f25437ded8e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop:                                                                                                                                                             :ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x0000564196ec3af1 in  ()
#23 0x00007f2543785c9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>                                                                                                                                                             ) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f254378de44 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-g                                                                                                                                                             nu/libQt5Core.so.5
#25 0x0000564196da4bdc in  ()
#26 0x00007f2542d9b0b3 in __libc_start_main (main=0x564196da28b0, argc=14, argv=                                                                                                                                                             0x7fff8f809428, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized                                                                                                                                                              out>, stack_end=0x7fff8f809418) at ../csu/libc-start.c:308
#27 0x0000564196da690e in  ()
A debugging session is active.

        Inferior 1 [process 10582] will be detached.

Trotzdem beenden? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 10582) detached]
Comment 5 Vlad Zahorodnii 2022-02-08 17:26:13 UTC
the backtrace misses debug symbols. can you install debug symbols for kwin? https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Install_debugging_packages
Comment 6 Stefan 2022-02-08 17:41:59 UTC
[New LWP 22756]
[New LWP 22760]
[New LWP 22761]
[New LWP 22762]
[New LWP 22763]
[New LWP 22764]
[New LWP 22765]
[New LWP 22766]
[New LWP 22767]
[New LWP 22768]
[New LWP 22769]
[New LWP 22770]
[New LWP 22771]
[New LWP 22772]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fa0b358150b in ioctl () at ../sysdeps/unix/syscall-template.S:78
78      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x00007fa0ad7807b8 in KWin::GbmSurface::swapBuffersForDrm (this=0x0) at ./src/backends/drm/gbm_surface.cpp:70
70      ./src/backends/drm/gbm_surface.cpp: Datei oder Verzeichnis nicht gefunden.

Thread 15 (Thread 0x7fa07a7fc700 (LWP 22772)):
#0  0x00007fa0b357faff in __GI___poll (fds=0x7fa068005240, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa0b1aef36e in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa0b1aef4a3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa0b3ed79f2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fa068000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007fa0b3e7bc9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fa07a7fbbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fa0b3c95362 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fa0b3c96543 in QThreadPrivate::start(void*) (arg=0x559e79dbe5d0) at thread/qthread_unix.cpp:331
#7  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fa07affd700 (LWP 22771)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79d508c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79d50878, cond=0x559e79d508a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79d508a0, mutex=0x559e79d50878) at pthread_cond_wait.c:647
#3  0x00007fa0a6834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fa07b7fe700 (LWP 22770)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79d508c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79d50878, cond=0x559e79d508a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79d508a0, mutex=0x559e79d50878) at pthread_cond_wait.c:647
#3  0x00007fa0a6834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fa07bfff700 (LWP 22769)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79d508c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79d50878, cond=0x559e79d508a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79d508a0, mutex=0x559e79d50878) at pthread_cond_wait.c:647
#3  0x00007fa0a6834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fa098ff5700 (LWP 22768)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79d508c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79d50878, cond=0x559e79d508a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79d508a0, mutex=0x559e79d50878) at pthread_cond_wait.c:647
#3  0x00007fa0a6834e7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6834a7b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fa099ffb700 (LWP 22767)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e09760) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e09710, cond=0x559e79e09738) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e09738, mutex=0x559e79e09710) at pthread_cond_wait.c:647
#3  0x00007fa0a6eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fa09a7fc700 (LWP 22766)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e09760) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e09710, cond=0x559e79e09738) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e09738, mutex=0x559e79e09710) at pthread_cond_wait.c:647
#3  0x00007fa0a6eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fa09affd700 (LWP 22765)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e09760) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e09710, cond=0x559e79e09738) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e09738, mutex=0x559e79e09710) at pthread_cond_wait.c:647
#3  0x00007fa0a6eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fa09b7fe700 (LWP 22764)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e09760) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e09710, cond=0x559e79e09738) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e09738, mutex=0x559e79e09710) at pthread_cond_wait.c:647
#3  0x00007fa0a6eec92b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eec8ab in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fa0a0f36700 (LWP 22763)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e294c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e29478, cond=0x559e79e294a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e294a0, mutex=0x559e79e29478) at pthread_cond_wait.c:647
#3  0x00007fa0a6eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fa09bfff700 (LWP 22762)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e29368) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e29318, cond=0x559e79e29340) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e29340, mutex=0x559e79e29318) at pthread_cond_wait.c:647
#3  0x00007fa0a6eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa0acd50700 (LWP 22761)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e29208) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e291b8, cond=0x559e79e291e0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e291e0, mutex=0x559e79e291b8) at pthread_cond_wait.c:647
#3  0x00007fa0a6eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa0ad551700 (LWP 22760)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559e79e290a8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x559e79e29058, cond=0x559e79e29080) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x559e79e29080, mutex=0x559e79e29058) at pthread_cond_wait.c:647
#3  0x00007fa0a6eef703 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007fa0a6eef56b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa0adfc1700 (LWP 22756)):
#0  0x00007fa0b357faff in __GI___poll (fds=0x7fa0a80053c0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa0b1aef36e in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa0b1aef4a3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa0b3ed79f2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fa0a8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007fa0b3e7bc9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fa0adfc0bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fa0b3c95362 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fa0b645bf4b in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fa0b3c96543 in QThreadPrivate::start(void*) (arg=0x7fa0b64dfd80) at thread/qthread_unix.cpp:331
#8  0x00007fa0b3a7b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fa0b358c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa0aed61680 (LWP 22744)):
#0  0x00007fa0ad7807b8 in KWin::GbmSurface::swapBuffersForDrm() (this=0x0) at ./src/backends/drm/gbm_surface.cpp:70
#1  0x00007fa0ad77ca43 in KWin::EglGbmBackend::endFrameWithBuffer(KWin::AbstractOutput*, QRegion const&) (this=this@entry=0x559e79fc40e0, drmOutput=<optimized out>, drmOutput@entry=0x559e79f6fbc0, dirty=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:307
#2  0x00007fa0ad77cc3b in KWin::EglGbmBackend::renderTestFrame(KWin::DrmAbstractOutput*) (this=this@entry=0x559e79fc40e0, output=0x559e79f6fbc0) at ./src/backends/drm/egl_gbm_backend.cpp:784
#3  0x00007fa0ad76d124 in KWin::DrmPipeline::checkTestBuffer() (this=0x559e79efce40) at ./src/backends/drm/drm_pipeline.cpp:323
#4  0x00007fa0ad76f20e in KWin::DrmPipeline::commitPipelinesAtomic(QVector<KWin::DrmPipeline*> const&, KWin::DrmPipeline::CommitMode, QVector<KWin::DrmObject*> const&) (pipelines=..., mode=mode@entry=KWin::DrmPipeline::CommitMode::Test, unusedObjects=...) at ./src/backends/drm/drm_pipeline.cpp:131
#5  0x00007fa0ad76ffe5 in KWin::DrmPipeline::commitPipelines(QVector<KWin::DrmPipeline*> const&, KWin::DrmPipeline::CommitMode, QVector<KWin::DrmObject*> const&) (pipelines=..., mode=mode@entry=KWin::DrmPipeline::CommitMode::Test, unusedObjects=...) at ./src/backends/drm/drm_pipeline.cpp:103
#6  0x00007fa0ad765ac6 in KWin::DrmGpu::testPipelines() (this=this@entry=0x559e79d8ca90) at ./src/backends/drm/drm_gpu.cpp:427
#7  0x00007fa0ad765c80 in KWin::DrmGpu::checkCrtcAssignment(QVector<KWin::DrmConnector*>, QVector<KWin::DrmCrtc*>) (this=this@entry=0x559e79d8ca90, connectors=..., crtcs=...) at ./src/backends/drm/drm_gpu.cpp:338
#8  0x00007fa0ad766091 in KWin::DrmGpu::checkCrtcAssignment(QVector<KWin::DrmConnector*>, QVector<KWin::DrmCrtc*>) (this=this@entry=0x559e79d8ca90, connectors=..., crtcs=...) at ./src/backends/drm/drm_gpu.cpp:365
#9  0x00007fa0ad766091 in KWin::DrmGpu::checkCrtcAssignment(QVector<KWin::DrmConnector*>, QVector<KWin::DrmCrtc*>) (this=this@entry=0x559e79d8ca90, connectors=..., crtcs=...) at ./src/backends/drm/drm_gpu.cpp:365
#10 0x00007fa0ad766091 in KWin::DrmGpu::checkCrtcAssignment(QVector<KWin::DrmConnector*>, QVector<KWin::DrmCrtc*>) (this=this@entry=0x559e79d8ca90, connectors=..., crtcs=...) at ./src/backends/drm/drm_gpu.cpp:365
#11 0x00007fa0ad7668b8 in KWin::DrmGpu::<lambda()>::operator() (__closure=<optimized out>) at ./src/backends/drm/drm_gpu.cpp:398
#12 KWin::DrmGpu::<lambda()>::operator() (__closure=<optimized out>) at ./src/backends/drm/drm_gpu.cpp:396
#13 KWin::DrmGpu::testPendingConfiguration(KWin::DrmGpu::TestMode) (this=this@entry=0x559e79d8ca90, mode=mode@entry=KWin::DrmGpu::TestMode::TestWithCrtcReallocation) at ./src/backends/drm/drm_gpu.cpp:403
#14 0x00007fa0ad767e2f in KWin::DrmGpu::updateOutputs() (this=this@entry=0x559e79d8ca90) at ./src/backends/drm/drm_gpu.cpp:309
#15 0x00007fa0ad744c44 in KWin::DrmBackend::updateOutputs() (this=0x559e79d66e50) at ./src/backends/drm/drm_backend.cpp:319
#16 0x00007fa0b3eb41be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd857c6ac0, r=0x559e79d66e50, this=0x559e79eaa800) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false>(QObject*, int, void**) (sender=0x559e79f793e0, signal_index=6, argv=0x7ffd857c6ac0) at kernel/qobject.cpp:3886
#18 0x00007fa0b618523e in  () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007fa0b6186855 in KWin::WaylandCompositor::start() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#20 0x00007fa0b3eaad39 in QObject::event(QEvent*) (this=0x559e79f793e0, e=0x559e79f73a30) at kernel/qobject.cpp:1314
#21 0x00007fa0b49a1dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fa0b49aabb8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fa0b3e7d19a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x559e79f793e0, event=0x559e79f73a30) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#24 0x00007fa0b3e7faa1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x559e79d293f0) at kernel/qcoreapplication.cpp:1821
#25 0x00007fa0b3ed4d8e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x559e79d66250, flags=...) at kernel/qeventdispatcher_unix.cpp:468
#26 0x0000559e78d99af1 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#27 0x00007fa0b3e7bc9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd857c70d0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#28 0x00007fa0b3e83e44 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x0000559e78c7abdc in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./src/main_wayland.cpp:727
A debugging session is active.
Comment 7 Kapil 2022-02-08 23:49:00 UTC
I have the same problem with my system:

Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8850H CPU @ 2.60GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
                                     NVIDIA GeForce GTX 1050 Ti with Max-Q Design


Systemlogs are as below:
Feb  9 10:26:41 ThinkPadX1 dbus-daemon[1141]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.46' (uid=1000 pid=1853 comm="/usr/bin/startplasma-wayland " label="unconfined")
Feb  9 10:26:41 ThinkPadX1 systemd[1]: Starting Locale Service...
Feb  9 10:26:41 ThinkPadX1 dbus-daemon[1141]: [system] Successfully activated service 'org.freedesktop.locale1'
Feb  9 10:26:41 ThinkPadX1 systemd[1]: Started Locale Service.
Feb  9 10:26:41 ThinkPadX1 dbus-daemon[1849]: [session uid=1000 pid=1849] Activating service name='org.kde.KSplash' requested by ':1.3' (uid=1000 pid=1853 comm="/usr/bin/startplasma-wayland " label="unconfined")
Feb  9 10:26:41 ThinkPadX1 systemd[1827]: Reloading.
Feb  9 10:26:41 ThinkPadX1 rtkit-daemon[1842]: Supervising 2 threads of 1 processes of 1 users.
Feb  9 10:26:41 ThinkPadX1 rtkit-daemon[1842]: Successfully made thread 1935 of process 1834 owned by '1000' RT at priority 5.
Feb  9 10:26:41 ThinkPadX1 rtkit-daemon[1842]: Supervising 3 threads of 1 processes of 1 users.
Feb  9 10:26:42 ThinkPadX1 kernel: [   24.970524] kwin_wayland[1886]: segfault at 291 ip 00007f8044355a80 sp 00007ffc5b9b1198 error 4 in libnvidia-egl-gbm.so.1.1.0[7f8044353000+4000]
Feb  9 10:26:42 ThinkPadX1 kernel: [   24.970532] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:42 ThinkPadX1 rtkit-daemon[1842]: Supervising 3 threads of 1 processes of 1 users.
Feb  9 10:26:42 ThinkPadX1 rtkit-daemon[1842]: Successfully made thread 1936 of process 1834 owned by '1000' RT at priority 5.
Feb  9 10:26:42 ThinkPadX1 rtkit-daemon[1842]: Supervising 4 threads of 1 processes of 1 users.
Feb  9 10:26:42 ThinkPadX1 kernel: [   25.791188] kwin_wayland[1937]: segfault at 291 ip 00007ff5404e7a80 sp 00007ffe1fffac48 error 4 in libnvidia-egl-gbm.so.1.1.0[7ff5404e5000+4000]
Feb  9 10:26:42 ThinkPadX1 kernel: [   25.791197] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:43 ThinkPadX1 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Feb  9 10:26:43 ThinkPadX1 kernel: [   26.604951] kwin_wayland[1972]: segfault at 291 ip 00007fb8c45f5a80 sp 00007ffee52d1e98 error 4 in libnvidia-egl-gbm.so.1.1.0[7fb8c45f3000+4000]
Feb  9 10:26:43 ThinkPadX1 kernel: [   26.604960] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:44 ThinkPadX1 kernel: [   27.359580] kwin_wayland[2007]: segfault at 291 ip 00007fd6a4532a80 sp 00007ffc8e57e1b8 error 4 in libnvidia-egl-gbm.so.1.1.0[7fd6a4530000+4000]
Feb  9 10:26:44 ThinkPadX1 kernel: [   27.359588] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:45 ThinkPadX1 kernel: [   28.144857] kwin_wayland[2042]: segfault at 291 ip 00007fd98400ea80 sp 00007ffd94719b58 error 4 in libnvidia-egl-gbm.so.1.1.0[7fd98400c000+4000]
Feb  9 10:26:45 ThinkPadX1 kernel: [   28.144866] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:46 ThinkPadX1 kernel: [   28.949380] kwin_wayland[2077]: segfault at 291 ip 00007f47a05f5a80 sp 00007ffd3ba7b1f8 error 4 in libnvidia-egl-gbm.so.1.1.0[7f47a05f3000+4000]
Feb  9 10:26:46 ThinkPadX1 kernel: [   28.949389] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:46 ThinkPadX1 kernel: [   29.723800] kwin_wayland[2112]: segfault at 291 ip 00007f4f085f5a80 sp 00007fff38de2fa8 error 4 in libnvidia-egl-gbm.so.1.1.0[7f4f085f3000+4000]
Feb  9 10:26:46 ThinkPadX1 kernel: [   29.723808] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:47 ThinkPadX1 kernel: [   30.599810] kwin_wayland[2147]: segfault at 291 ip 00007f61605f5a80 sp 00007ffc9eb19238 error 4 in libnvidia-egl-gbm.so.1.1.0[7f61605f3000+4000]
Feb  9 10:26:47 ThinkPadX1 kernel: [   30.599819] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:48 ThinkPadX1 kernel: [   31.429302] kwin_wayland[2182]: segfault at 291 ip 00007fdeb852aa80 sp 00007ffe3f54e1b8 error 4 in libnvidia-egl-gbm.so.1.1.0[7fdeb8528000+4000]
Feb  9 10:26:48 ThinkPadX1 kernel: [   31.429311] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:49 ThinkPadX1 kernel: [   32.234076] kwin_wayland[2217]: segfault at 291 ip 00007f58f85f5a80 sp 00007fff2c70e2a8 error 4 in libnvidia-egl-gbm.so.1.1.0[7f58f85f3000+4000]
Feb  9 10:26:49 ThinkPadX1 kernel: [   32.234086] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:50 ThinkPadX1 kernel: [   33.027896] kwin_wayland[2257]: segfault at 291 ip 00007f64505f5a80 sp 00007fff80735e48 error 4 in libnvidia-egl-gbm.so.1.1.0[7f64505f3000+4000]
Feb  9 10:26:50 ThinkPadX1 kernel: [   33.027904] Code: 02 00 00 eb c2 0f 1f 44 00 00 48 85 ff 74 33 48 8b 4f f8 48 85 c9 74 2a 48 85 f6 74 25 48 8d 51 40 31 c0 0f 1f 80 00 00 00 00 <48> 39 32 74 1b 83 c0 01 48 83 c2 20 83 f8 0a 75 ef f3 c3 0f 1f 44
Feb  9 10:26:50 ThinkPadX1 ksplashqml[1889]: The Wayland connection broke. Did the Wayland compositor die?
Feb  9 10:26:50 ThinkPadX1 klauncher[1897]: The Wayland connection broke. Did the Wayland compositor die?
Feb  9 10:26:50 ThinkPadX1 ksplashqml[1889]: The Wayland connection broke. Did the Wayland compositor die?
Feb  9 10:26:50 ThinkPadX1 klauncher[1897]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Feb  9 10:26:50 ThinkPadX1 sddm-helper[1825]: [PAM] Closing session
Feb  9 10:26:50 ThinkPadX1 sddm-helper[1825]: [PAM] Ended.
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Auth: sddm-helper exited successfully
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Socket server stopping...
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Socket server stopped.
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Display server stopping...
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Display server stopped.
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Removing display ":0" ...
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Adding new display on vt 1 ...
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Loading theme configuration from ""
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Display server starting...
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Adding cookie to "/var/run/sddm/{66ded256-d746-4385-9d66-f2813d27df6b}"
Feb  9 10:26:50 ThinkPadX1 sddm[1347]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{66ded256-d746-4385-9d66-f2813d27df6b} -background none -noreset -displayfd 18 -seat seat0 vt1
Feb  9 10:26:50 ThinkPadX1 acpid: client 1352[0:0] has disconnected
Feb  9 10:26:50 ThinkPadX1 acpid: client connected from 2316[0:0]
Feb  9 10:26:50 ThinkPadX1 acpid: 1 client rule loaded
Feb  9 10:26:50 ThinkPadX1 systemd[1]: Stopping Session 3 of user kapil.
Feb  9 10:26:50 ThinkPadX1 systemd[1]: session-3.scope: Succeeded.
Feb  9 10:26:50 ThinkPadX1 rtkit-daemon[1842]: Supervising 3 threads of 1 processes of 1 users.
Feb  9 10:26:50 ThinkPadX1 systemd[1]: Stopped Session 3 of user kapil.
Comment 8 kingofgamesyami 2022-02-09 03:37:21 UTC
This is also happening on my system. KDE Neon, Plasma 5.24, NVIDIA Driver 510, dual monitors.

Running manually kwin_wayland --drm --xwayland plasmashell shows some interesting stuff getting dumped to stdout saying it failed to initialize GBM because 'Function not implemented', followed by a segfault

I tried running the above command through gdb for useful information but that locked up my system completely (couldn't even switch to a TTY), had to force-poweroff.
Comment 9 Vlad Zahorodnii 2022-02-09 07:33:15 UTC
(In reply to kingofgamesyami from comment #8)
> This is also happening on my system. KDE Neon, Plasma 5.24, NVIDIA Driver
> 510, dual monitors.
> 
> Running manually kwin_wayland --drm --xwayland plasmashell shows some
> interesting stuff getting dumped to stdout saying it failed to initialize
> GBM because 'Function not implemented', followed by a segfault
> 
> I tried running the above command through gdb for useful information but
> that locked up my system completely (couldn't even switch to a TTY), had to
> force-poweroff.

oh, what's the version of mesa on your computer?
Comment 10 Cristiano Colpo 2022-02-09 10:05:09 UTC
(In reply to kingofgamesyami from comment #8)
> This is also happening on my system. KDE Neon, Plasma 5.24, NVIDIA Driver
> 510, dual monitors.
> 
> Running manually kwin_wayland --drm --xwayland plasmashell shows some
> interesting stuff getting dumped to stdout saying it failed to initialize
> GBM because 'Function not implemented', followed by a segfault
> 
> I tried running the above command through gdb for useful information but
> that locked up my system completely (couldn't even switch to a TTY), had to
> force-poweroff.

I have the same problem this is my output with the same command:

kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5127:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5129:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5131:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5135:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5137:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5145:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5149:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5151:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5155:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5158:46: this compose sequence is a duplicate of another; skipping line
kf.globalaccel.kglobalacceld: Failed to register service org.kde.kglobalaccel
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 NVIDIA GeForce GTX 1070/PCIe/SSE2
OpenGL version string:                  3.1.0 NVIDIA 510.47.03
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         510.47.3
GPU class:                              Unknown
OpenGL version:                         3.1
GLSL version:                           1.40
Linux kernel version:                   5.13
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_wayland_drm: Could not create gbm surface! Funzione non implementata
kwin_wayland_drm: Could not create gbm surface! Funzione non implementata
kwin_wayland_drm: Creating GBM surface failed: Funzione non implementata
Errore di segmentazione

And the output of glxinfo | grep "OpenGL version" is:

OpenGL version string: 4.6.0 NVIDIA 510.47.03
Comment 11 kingofgamesyami 2022-02-10 00:21:58 UTC
(In reply to Vlad Zahorodnii from comment #9)
> (In reply to kingofgamesyami from comment #8)
> > This is also happening on my system. KDE Neon, Plasma 5.24, NVIDIA Driver
> > 510, dual monitors.
> > 
> > Running manually kwin_wayland --drm --xwayland plasmashell shows some
> > interesting stuff getting dumped to stdout saying it failed to initialize
> > GBM because 'Function not implemented', followed by a segfault
> > 
> > I tried running the above command through gdb for useful information but
> > that locked up my system completely (couldn't even switch to a TTY), had to
> > force-poweroff.
> 
> oh, what's the version of mesa on your computer?

glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 510.47.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 510.47.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 510.47.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

apt list mesa-utils
mesa-utils/focal,now 8.4.0-1build1 amd64 [installed,automatic]
Comment 12 Stefan 2022-02-10 21:33:29 UTC
After the latest mesa updates there is no crash anymore. But plasma and some KDE applications (e.g. systemsettings) aren't starting:

Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/lib/x86_64-linux-gnu/qt5/plugins
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/share/kpackage/kcms/kcm_landingpage/contents/ui/main.qml:130:9: QML FormLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
file:///usr/share/kpackage/kcms/kcm_landingpage/contents/ui/main.qml:20:9: QML FormLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

QQuickWidget: Failed to make context current
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

QQuickWidget: Failed to make context current
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QQuickWidget: Attempted to render scene with no context
QQuickWidget: Attempted to render scene with no context
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
Comment 13 Kapil 2022-02-10 23:33:29 UTC
After recent update to mesa, nvidia drivers fail to load at all. Tried reinstalling/reverting to previous version (510 and 470), but nothing works.
Comment 14 Bart 2022-02-11 16:51:19 UTC
same over here. Single screen.
Comment 15 S. Bryant 2022-02-11 20:09:48 UTC
I'm not sure that the "multiple screens" part of the title is relevant.  I'm seeing this on an HP laptop, with no additional screens connected.  The laptop is set to use NVidia only (ie: hybrid is disabled).

NVidia driver: 510.47.03
Mesa: 20.2.4 (from March 2021)
Plasma: 5.24.0
Plasma Framework 5.90.0
Qt 5.15.2 + KDE patches

This is with openSUSE Leap 15.3.  I tried installing Mesa 21.3.6, but the same segfault occurs.
Current workaround: use X11
Comment 16 S. Bryant 2022-02-11 20:33:59 UTC
It is perhaps worth noting: the NVidia drivers 510.47.03 are from their CUDA repository.  The normal NVidia repository has 470.103.01.  I reverted to the non-CUDA drivers, but it had no effect on the segfault.  This matches what Kapil reported, so the behaviour is consistent across at least Neon and Leap.
Comment 17 Stefan 2022-02-11 20:49:06 UTC
@S. Bryant I can't confirm this:
$ apt-cache policy nvidia-driver-510 
nvidia-driver-510:
  Installiert:           510.47.03-0ubuntu0.20.04.1
  Installationskandidat: 510.47.03-0ubuntu0.20.04.1
  Versionstabelle:
 *** 510.47.03-0ubuntu0.20.04.1 500
        500 http://de.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages
        500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
Comment 18 Stefan 2022-02-11 20:51:12 UTC
Oh sorry I've missed that comment 15 is also from you (so opensuse not ubuntu)
Comment 19 kingofgamesyami 2022-02-12 15:54:39 UTC
After running updates today, the Wayland session does not crash. However, plasmashell appears to have problems -- I get blank screen with a single instance of Konsole open. No wallpaper, no panel, etc.

I can move Konsole around as I please and use it normally, but the general desktop environment is just not there.
Comment 20 Pulse 2022-02-12 23:41:38 UTC
Another openSUSE Tumblweed user here. Same crash when trying to open a Wayland session.

Nvidia 470.103.01

Tumbleweed 20220207

Plasma 5.24 

 Mesa  21.3.5-300.2

Another on reddit - https://old.reddit.com/r/kde/comments/sr2urm/does_the_nvidia_470_driver_work_with_wayland/ - too
Comment 21 Pulse 2022-02-13 00:00:21 UTC
(In reply to Pulse from comment #20)
> Another openSUSE Tumblweed user here. Same crash when trying to open a
> Wayland session.
> 
> Nvidia 470.103.01
> 
> Tumbleweed 20220207
> 
> Plasma 5.24 
> 
>  Mesa  21.3.5-300.2
> 
> Another on reddit -
> https://old.reddit.com/r/kde/comments/sr2urm/
> does_the_nvidia_470_driver_work_with_wayland/ - too

Updated to Tumbleweed 20220210. No change.
Comment 22 Vlad Zahorodnii 2022-02-14 15:48:35 UTC
From what I can tell, the drm backend fails to create a gbm_surface, which should be fixed by https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14049. Unfortunately, that MR is only present in Mesa 22.0+. Potential workaround might be to downgrade Mesa to 21.2.5 https://gitlab.freedesktop.org/mesa/mesa/-/issues/5709
Comment 23 Zamundaaa 2022-02-15 19:46:59 UTC
A equivalent commit should be available in Mesa 21.3.2+: https://gitlab.freedesktop.org/mesa/mesa/-/commit/0cc65a565cb9ae52e7e20d57c3fa783e1ae4fc5f

(In reply to Pulse from comment #20)
> Nvidia 470.103.01

470 is too old - you need gbm support, with driver 490 or newer
Comment 24 Stefan 2022-02-15 21:01:55 UTC
I don't see better results when using mesa 21.2.6 from PPA ppa:kisak/kisak-mesa
Comment 25 Pulse 2022-02-16 02:28:22 UTC
(In reply to Zamundaaa from comment #23)

> 470 is too old - you need gbm support, with driver 490 or newer

Still broken on 510*. Moreover, the majority of distributions are still using 470* as the default.
Comment 26 soee 2022-02-16 16:23:25 UTC
I have similar problems on KDE Neon.
Plasma 5.24 + Nvidia Driver 510.

Plasmashell won't start but apps windows do. When i try manually start for example krunner it produces:

#krunner
qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)
Comment 27 Stefan 2022-02-16 19:00:56 UTC
Affects also plasma 5.24.1
Comment 28 Fonkle 2022-02-16 20:56:39 UTC
Same here running:

Kubuntu 21.10 + PPA Backports
Wayland
Plasma 5.24.1 / Frameworks 5.91.0 / Qt 5.15.2 / Kernel 5.13.0-28-generic (64 bit) / libwayland-egl1-mesa 21.2.6
Nvidia GTX 970 / GTX 1060 proprietary driver 510.47.03 (nvidia-drm.modeset=1) dual screen
Comment 29 Rino André Johnsen 2022-02-17 16:20:33 UTC
+1

Could it have something to do with Amd + Nvidia?

openSUSE Tumbleweed
Wayland
Plasma 5.24 / Frameworks 5.91.0 / Qt 5.15.2 / Kernel 5.16.8 (64 bit)
AMD Integrated / GTX 1650 proprietary driver 510.47.03
Comment 30 Stefan 2022-02-17 17:53:49 UTC
> Could it have something to do with Amd + Nvidia?
No I have a Intel CPU
Comment 31 S. Bryant 2022-02-18 12:34:38 UTC
(In reply to Zamundaaa from comment #23)
> 470 is too old - you need gbm support, with driver 490 or newer

I have installed the G06 (510.54) drivers and Plasma 5.24.1 on an HP laptop with an Intel i7.  When the BIOS is set to "discrete" (Nvidia only), kwin_wayland segfaults as noted in this bug report.  When set to "hybrid", kwin_wayland segfaults in libnvidia-egl-gbm.so.

What GBM support do we need exactly?  Do we know if there is any driver version that is working?
Comment 32 Zamundaaa 2022-02-18 20:04:36 UTC
510 is known to work: https://www.reddit.com/r/linux_gaming/comments/su5dmb/kde_wayland_nvidia_issues/

Can you test putting "KWIN_DRM_USE_MODIFIERS=1" into /etc/environment, and launching the session again after a reboot? Just to make sure that KWin doesn't mis-detect the driver.
Comment 33 Fonkle 2022-02-18 20:14:56 UTC
Sadly, makes no difference (Kubuntu 510). Also physically unplugging either monitor makes no difference.
Comment 34 Stefan 2022-02-20 10:29:45 UTC
So affected are KDE neon and openSUSE Tumbleweed but not Arch? So what's the relevant difference between them? The newer MESA version doesn't seems to be the game changer. Or it's just the hardware?
Comment 35 Stefan 2022-02-20 10:32:44 UTC
With hardware I mean above all the GPU generation.
Comment 36 Fonkle 2022-02-21 14:16:48 UTC
I have installed Manjaro KDE (unstable since both testing and stable still use Plasma 5.23.x). And indeed, a Wayland session worked fine:

Manjaro KDE 21.2.2 (switched to unstable branch)
Kernel 5.16 (generic)
Nvidia Geforce GTX 970 driver 510.54 (nvidia-drm.modeset=1)
Plasma 5.24.1
KDE Framework 5.91.0
Qt 5.15.2
Dual screen setup
Intel Core i7-3930K
32 GB RAM
Comment 37 Fonkle 2022-02-21 16:07:36 UTC
I have also tried a Wayland session under the 510.54 nvidia driver (ubuntu proposed repo) in Kubuntu with backports but that does not work.
Comment 38 S. Bryant 2022-02-22 12:38:16 UTC
(In reply to Zamundaaa from comment #32)
> 510 is known to work:
> https://www.reddit.com/r/linux_gaming/comments/su5dmb/kde_wayland_nvidia_issues/
> 
> Can you test putting "KWIN_DRM_USE_MODIFIERS=1" into /etc/environment, and
> launching the session again after a reboot? Just to make sure that KWin
> doesn't mis-detect the driver.

Sorry about the delay in replying.  I tried that with the G06 (510) drivers.  The result was the same, except that this time the keyboard was also unresponsive after trying to log in.

All of the people in the Reddit thread appear to have desktop GPUs.  I'm using a Quadro T2000 Mobile. As mentioned the BIOS is set to turn off the hybrid graphics, although turning hybrid on (with G06/510) makes kwin_wayland segfault in libnvidia-egl-gbm.so.

What DOES work with Wayland is this: enabling hybrid graphics and using the G05 (470) Nvidia drivers.  This therefore uses the Intel GPU for primary rendering and 3D.  The additional display connections (eg: on the dock) connect through the Nvidia chip - and they work fine.
Comment 39 Stefan 2022-02-23 21:26:12 UTC
Is maybe some Qt patch missing in KDE neon and openSUSE Tumblweed but not in Arch? E.g. this one?
https://www.phoronix.com/scan.php?page=news_item&px=Qt-Wayland-NVIDIA-Thread
Comment 40 S. Bryant 2022-02-24 08:43:13 UTC
(In reply to Stefan from comment #39)
> Is maybe some Qt patch missing in KDE neon and openSUSE Tumblweed but not in
> Arch? E.g. this one?
> https://www.phoronix.com/scan.php?page=news_item&px=Qt-Wayland-NVIDIA-Thread

That's quite possible.  I'm not using Tumbleweed but Leap 15.3, with the additional KDE repositories from download.opensuse.org.

I currently have libqt5-qtwayland-5.15.2+kde54-lp153.1.1.x86_64 installed (build date Feb 23 -- yesterday).  I'm still seeing this bug.  Does anybody know how to tell if the QtWayland patch is included?
Comment 41 Elias 2022-02-26 11:13:34 UTC
(In reply to Stefan from comment #34)
> So affected are KDE neon and openSUSE Tumbleweed but not Arch?

Can't confirm this. I'm on Archlinux and while Wayland session started with Plasma 5.23, since 5.24 it is broken, I only see the login/start animation but then it freezes on that and I can only move the mouse but no desktop showing up.
Not sure if this is the exact same issue as described here, since I don't get thrown back to sddm.
Comment 42 Cristiano Colpo 2022-03-01 16:43:24 UTC
I don't know if this can help but if i run startplasma-wayland it returns:

qt.qpa.wayland: Could not create EGL surface (EGL error 0x321c)

zwlr_layer_surface_v1@30: error 1: the layer surface has a width of 0 but its anchor doesn't include the left and the right screen edge
The Wayland connection experienced a fatal error: Protocol error
Comment 43 Kapil 2022-03-08 22:42:44 UTC
After recent updates, the wayland session stops working all together. Its a shame that I have to reluctantly consider switching out of kde due to this issue and no fixes since a month.
Comment 44 Victor Ryzhykh 2022-03-09 20:58:17 UTC
    Upgrade to latest 495 stable driver.
    Ensure that /etc/egl/egl_external_platform.d/15_nvidia_gbm.json is installed next to 10_nvidia_wayland.json.
    Ensure that nvidia-drm_gbm.so is in a configured mesa gbm search path and is a symlink to libnvidia-allocator.so.495.44.
    Launch sway with the appropriate env args.
    (edit: also, patch wlroots/sway around the RGB check)

Operating System: ROSA Fresh Desktop 2021.1
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.13-desktop-1rosa2021.1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 15.6 ГиБ of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2



https://forums.developer.nvidia.com/t/nvidia-495-on-sway-tutorial-questions-arch-based-distros/192212/52
Comment 45 Victor Ryzhykh 2022-03-09 21:00:47 UTC
Created attachment 147412 [details]
Info Center
Comment 46 Victor Ryzhykh 2022-03-09 21:36:07 UTC
(In reply to Victor Ryzhykh from comment #44)
>     Upgrade to latest 495 stable driver.
>     Ensure that /etc/egl/egl_external_platform.d/15_nvidia_gbm.json is
> installed next to 10_nvidia_wayland.json.
>     Ensure that nvidia-drm_gbm.so is in a configured mesa gbm search path
> and is a symlink to libnvidia-allocator.so.495.44.
>     Launch sway with the appropriate env args.
>     (edit: also, patch wlroots/sway around the RGB check)
> 
> Operating System: ROSA Fresh Desktop 2021.1
> KDE Plasma Version: 5.24.3
> KDE Frameworks Version: 5.91.0
> Qt Version: 5.15.2
> Kernel Version: 5.16.13-desktop-1rosa2021.1 (64-bit)
> Graphics Platform: Wayland
> Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
> Memory: 15.6 ГиБ of RAM
> Graphics Processor: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
> 
> 
> 
> https://forums.developer.nvidia.com/t/nvidia-495-on-sway-tutorial-questions-
> arch-based-distros/192212/52

This fixes bug

«nvidia-drm_gbm.so
MESA-LOADER: failed to open nvidia-drm: /usr/lib64/gbm/nvidia-drm_gbm.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/gbm, suffix _gbm)»
Comment 47 Victor Ryzhykh 2022-03-10 08:43:11 UTC
In my case, the command helped 

sudo ln -s /usr/lib64/nvidia/libnvidia-allocator.so.510.54 /usr/lib64/gbm/nvidia-drm_gbm.so

I don't know where the libnvidia-allocator.so.510.54 file is on your system.
Most likely there. If elsewhere, change the path to the libnvidia-allocator.so.510.54 file in the command.
Comment 48 Kapil 2022-03-10 10:09:25 UTC
For me the links are all fine. They are located in /usr/lib/x86_64-linux-gnu. This is on Kde Neon 5.24.3 with nvidia 510.54 running on Thinkpad X1 extreme
Comment 49 Stefan 2022-03-10 15:40:49 UTC
On my system it seems to be fine too:
# ls -l /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so
lrwxrwxrwx 1 root root 24 Feb 16 16:32 /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so -> libnvidia-allocator.so.1
# ls -l /usr/lib/x86_64-linux-gnu/gbm/nvidia-drm_gbm.so 
lrwxrwxrwx 1 root root 27 Feb 16 16:32 /usr/lib/x86_64-linux-gnu/gbm/nvidia-drm_gbm.so -> ../libnvidia-allocator.so.1
# ls -l /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so.1 
lrwxrwxrwx 1 root root 29 Feb 16 16:32 /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so.1 -> libnvidia-allocator.so.510.54
Comment 50 Victor Ryzhykh 2022-03-10 16:48:28 UTC
Created attachment 147423 [details]
plasma-5.24.3 wayland

I do not know what to say.
It didn't work for me, but as soon as I made a symbolic link, it started working.
Comment 51 S. Bryant 2022-03-10 19:58:13 UTC
(In reply to Victor Ryzhykh from comment #50)
> I do not know what to say.
> It didn't work for me, but as soon as I made a symbolic link, it started
> working.

I already had the symlinks - except for libnvidia-allocator.so -> libnvidia-allocator.so.1, so I created that.  I'm still seeing the segfault.  This is with the 510.54 nv drivers.

I don't think I've seen any mesa-loader errors that some have mentioned, only the kwin_wayland segfault described in the original report.
Comment 52 Victor Ryzhykh 2022-03-11 06:59:11 UTC
I still have file /etc/dracut.conf.d/10-nvidia510.conf in my system.
With text 

«
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
install_optional_items+=" /etc/modprobe.d/nvidia510-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/nvidia510-wayland.conf "
»

And another file /etc/modprobe.d/nvidia510-blacklist-nouveau.conf
With text 

«
blacklist nouveau
»

And another file /etc/modprobe.d/nvidia510-wayland.conf
With text 

«
options nvidia_drm modeset=1
»

When installing the nvidia drivers, the command is executed 

«
sudo dracut -f /boot/initrd-5.16.13-desktop-1rosa2021.1.img
»
Comment 53 Tu Ha 2022-03-18 15:10:29 UTC
Hi mom,
 come here from Reddit. Debian Sid with newest 510.54 driver. Satisfying all requirment egl, mesa, gbm. Getting stuck at login sddm, and was forced back to login as X11.
Comment 54 Kapil 2022-03-20 03:05:45 UTC
Is anyone from KDE development team looking at this bug?
Comment 55 Fonkle 2022-04-02 13:03:25 UTC
I have tested the Kubuntu 22.04 beta which includes proprietary Nvidia driver 510.60:

Plasma 5.24.4 - KDE Frameworks 5.92 - Qt 5.15.3 - Kernel 5.15.0-23-generic - Graphics Platform: Wayland
Nvidia 510.60.02 (drm-modeset=1) - Dual screen config

This version of Plasma on Wayland does seem to be operational, however it is still rather unusable:

* The UI is very slow and choppy; it seems to freeze whenever the mouse is not moving.
* There are a lot of artifacts in the graphics, especially in the taskbar (rectangles).
* Some application windows (for example System->Infocenter) do not appear. They seem to open offscreen. Using 'resize' and 'move' from the context menu lets me reveal the window.
Comment 56 Nate Graham 2022-04-03 19:07:38 UTC
Those are separate issues. Can you please open new bug reports for them?
Comment 57 Nate Graham 2022-05-11 14:00:37 UTC
*** Bug 453638 has been marked as a duplicate of this bug. ***
Comment 58 Méven Car 2022-05-12 05:32:57 UTC
> So affected are KDE neon and openSUSE Tumbleweed but not Arch? So what's the relevant difference between them? The newer MESA version doesn't seems to be the game changer. Or it's just the hardware?

It should be mesa, that the most important difference between arch neon and opensuse, due to the patch https://gitlab.freedesktop.org/mesa/mesa/-/commit/ad50b47a14e94751cd59ad5892ad795d508557f0 being only 5 months old.

> After the latest mesa updates there is no crash anymore.

It seems your experience proved it.

>  But plasma and some KDE applications (e.g. systemsettings) aren't starting:
>
> Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/lib/x86_64-linux-gnu/qt5/plugins
QQmlEngine::setContextForObject(): Object already has a QQmlContext

It seems you newer mesa, broke your qml/quick runtime, or your packages have a misconfiguration.
At least that’s a different bug.

Stefan, Could you specify the version you installed for reference ?
Comment 59 S. Bryant 2022-07-02 10:55:21 UTC
After a system update openSUSE 15.3 -> 15.4 and Plasma -> 5.25.1, I'm no longer seeing this problem.  BTW, I'm using the G06 v515.48 Nvidia driver.

I was able to switch the laptop to discrete graphics and use only the NVidia chip.  Wayland no longer crashes as it did previously, so this particular problem seems to be fixed.

Many thanks...
Comment 60 Nate Graham 2022-09-08 19:44:36 UTC
Great!
Comment 61 Stefan 2022-09-08 20:15:18 UTC
> Stefan, Could you specify the version you installed for reference ?

Sorry for the late reply. It's mesa 22.1.7