Created attachment 135821 [details] kwin crash log SUMMARY Selecting Plasma (Wayland) in SDDM and logging in brings me back to SDDM immediately after a second of UEFI firmware logo. 5.20.90 beta worked fine. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.10.17-1 KDE Plasma Version: 5.21.0 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Intel Core i7-7700HQ (HD Graphics 630) mesa: 20.3.4-1 Nvidia GeForce GTX 1050 Ti nvidia: 1:460.39-11 nvidia-drm.modeset=1
Disabling Nvidia DRM KMS works. But 5.20.90 beta worked fine with KMS enabled for both GPUs. P.S. - Someone please change the importance since a workaround exists.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/714
Git commit 79ccfaddf074f5e72bc9cb5f0bce2b7666328244 by Xaver Hugl. Committed on 19/02/2021 at 12:19. Pushed by zamundaaa into branch 'master'. Properly clean up DrmGpu M +7 -23 src/plugins/platforms/drm/drm_backend.cpp M +19 -1 src/plugins/platforms/drm/drm_gpu.cpp M +2 -0 src/plugins/platforms/drm/drm_gpu.h https://invent.kde.org/plasma/kwin/commit/79ccfaddf074f5e72bc9cb5f0bce2b7666328244
Once you test the patch (either in 5.21.1 or by compiling it yourself) close the bug report or complain again, depending on the result :)
Git commit d3c3d8c2f640b5a3be3c3bbb1bfbb689266e1e3b by Xaver Hugl. Committed on 19/02/2021 at 13:34. Pushed by zamundaaa into branch 'Plasma/5.21'. Properly clean up DrmGpu (cherry picked from commit 79ccfaddf074f5e72bc9cb5f0bce2b7666328244) M +7 -23 plugins/platforms/drm/drm_backend.cpp M +19 -1 plugins/platforms/drm/drm_gpu.cpp M +2 -0 plugins/platforms/drm/drm_gpu.h https://invent.kde.org/plasma/kwin/commit/d3c3d8c2f640b5a3be3c3bbb1bfbb689266e1e3b
Is this fully fixed now?
Without a backtrace of the crash or confirmation that the patch works I wouldn't consider it fixed just yet
Created attachment 135908 [details] kwin crash log now it takes a little while before the password box and enter icon are unlocked again after pressing enter and the firmware logo doesn't show up.
Could you get a backtrace?
I just created a debug build (5.21.0, no patch) and no crashes happen there. ;-;
And of course no crashes in the original release build either :/ I guess fixed.
Are you sure you added nvidia-drm.modeset=1 again before testing (and did a reboot)?
Yep
The patch breaks it in 5.21.1. I will try to get a debug build running tomorrow. https://bugs.kde.org/show_bug.cgi?id=433145#c8
Even with Plasma 5.21.1 I cannot log into a wayland session with nvidia-drm.modeset=1 active
I tried but it's always "Failed to attach to process because it terminated with SIGSEGV, the program is not running" or something like that.
If you're lucky then "coredumpctl debug kwin_wayland" to debug the last crash works (sadly often doesn't). Also please upload ~/.local/share/sddm/wayland-session.log again, with the environment variable QT_LOGGING_RULES="kwin_*.debug=true;kwin_libinput.debug=false"
coredumpctl debug kwin_wayland: https://pastebin.com/tgbrtzEc wayland-session.log: https://pastebin.com/QFRjSeGB
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/738
To get the full backtrace you need to input "bt" after the coredumpctl command. However the source of the crash was very obvious without it now, too; I'm pretty sure it should work now. Could you test?
I'm trying to test this solution, but kwin is getting in the way ... Can you help? https://pastebin.com/v9Ry1cNq
You're hitting incompatibilities with the version of KWaylandServer in your system, so you need to either compile that yourself, too, or use the Plasma/5.21 branch and apply the patch (https://invent.kde.org/plasma/kwin/-/commit/1f7e794b82c65eef7f863e7bcc9802e82ce1bc30.diff) on top of that instead
Ok, now I managed to enter the wayland session, but the external monitor was not recognized Is this expected?
Yes, multi-gpu support for the proprietary driver isn't there. That problem is tracked at https://bugs.kde.org/show_bug.cgi?id=431062, both for Noveau (that appears to not work either for some reason) and for the proprietary driver (where I do have an idea on how to implement it now, it's just not yet done). Thanks for testing!
Git commit 1f7e794b82c65eef7f863e7bcc9802e82ce1bc30 by Xaver Hugl. Committed on 25/02/2021 at 18:14. Pushed by zamundaaa into branch 'master'. DrmGpu: add gbm device nullptr check M +3 -1 src/plugins/platforms/drm/drm_gpu.cpp https://invent.kde.org/plasma/kwin/commit/1f7e794b82c65eef7f863e7bcc9802e82ce1bc30
Git commit c2b2127f3ae0da05b9bc7f4968f7c6292c54de51 by Xaver Hugl. Committed on 25/02/2021 at 22:18. Pushed by zamundaaa into branch 'Plasma/5.21'. DrmGpu: add gbm device nullptr check (cherry picked from commit 1f7e794b82c65eef7f863e7bcc9802e82ce1bc30) M +3 -1 plugins/platforms/drm/drm_gpu.cpp https://invent.kde.org/plasma/kwin/commit/c2b2127f3ae0da05b9bc7f4968f7c6292c54de51