Bug 2168034
| Summary: | kwin_wayland often crashed when used as the sddm Wayland compositor and logging out of Plasma resulting in a black screen | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matt Fagnani <matt.fagnani> | ||||
| Component: | kwin | Assignee: | Rex Dieter <rdieter> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 38 | CC: | agurenko, ales.astone, awilliam, bcotton, jgrulich, kde-sig, kparal, marcdeop, rdieter, robatino, than | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | AcceptedBlocker | ||||||
| Fixed In Version: | kwin-5.27.1-2.fc38 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-02-23 21:10:19 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 2083910 | ||||||
| Attachments: |
|
||||||
|
Description
Matt Fagnani
2023-02-08 04:49:51 UTC
Proposed as a Blocker and Freeze Exception for 38-beta by Fedora user mattf using the blocker tracking app because: Since a black screen occurred most of the time when logging out of Plasma and occasionally when Plasma started due to these kwin_wayland crashes in QEMU/KVM VMs, the following F38 Beta Blocker criterion might be violated. Shutting down, rebooting, logging in and logging out must work using standard console commands and the mechanisms offered (if any) by all release-blocking desktops. https://fedoraproject.org/wiki/Fedora_38_Beta_Release_Criteria#Shutdown,_reboot,_login,_logout The KDE SIG has expressed some hope that kwin 5.27 (now in the repo) fixes this. Does the problem still exist after updating? Yes, kwin_wayland still crashes in the same way sometimes when logging out and logging in with Plasma 5.27.0 resulting in a black screen. My report upstream doesn't have any comment so I wouldn't expect the problem to be fixed. https://bugs.kde.org/show_bug.cgi?id=465456 sddm with kwin_wayland as the Wayland compositor only tries to start kwin_wayland once and if it crashes then the black screen occurs. I think this is because kwin_wayland is called directly by CompositorCommand=kwin_wayland --no-lockscreen --inputmethod maliit-keyboard --locale1 in /usr/lib/sddm/sddm.conf.d/plasma-wayland.conf When Plasma starts plasma-kwin_wayland.service is started and if kwin_wayland crashes, then systemd tries to reload kwin_wayland up to 10 times in total. Due to this difference, the black screen problem is more common with sddm using kwin_wayland than with Plasma starting. If sddm were changed to create an equivalent service like sddm-kwin_wayland.service that ran kwin_wayland which /usr/lib/sddm/sddm.conf.d/plasma-wayland.conf called like CompositorCommand=sddm-kwin_wayland.service, then systemd might try to restart kwin_wayland when sddm runs up to 10 times. The frequency of the sddm black screen problem when logging out might be reduced that way until a fix for the kwin_wayland crash is found. I haven't tried this idea yet though. Thanks. *** Bug 2172533 has been marked as a duplicate of this bug. *** I just received the same crash (reported as bug 2172533) when logging in for the first time after install. +7 blocker in https://pagure.io/fedora-qa/blocker-review/issue/1033 , marking accepted. Potentially fixed by: https://invent.kde.org/plasma/kwin/-/merge_requests/3667 Verified fixed on rawhide by https://koji.fedoraproject.org/koji/taskinfo?taskID=97872653 FEDORA-2023-81ff51758d has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-81ff51758d FEDORA-2023-81ff51758d has been pushed to the Fedora 38 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-81ff51758d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Update is going stable, but it'd great if a few more folks could confirm the fix. Matt, have you had a chance to try it? FEDORA-2023-81ff51758d has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. (In reply to Adam Williamson from comment #11) > Update is going stable, but it'd great if a few more folks could confirm the > fix. Matt, have you had a chance to try it? I booted Fedora-KDE-Live-x86_64-38-20230221.n.1.iso in a GNOME Boxes QEMU/KVM VM with 3D acceleration disabled, disabled automatic login from sddm in System Settings, and logged out. This kwin_wayland crash happened on login and logout. I switched to VT2 and ran sudo dnf upgrade which include the Plasma 5.27.1 update with the patch for this problem. I ran sudo systemctl restart sddm and logged in and out a few times. The kwin_wayland crash didn't happen again. Plasma didn't start infrequently and either sddm reappeared or I switched back to it. kwin_wayland didn't crash, but there were crashes of plasmashell, ksplashqml, and other KDE programs, some of which I've seen before. loginctl showed 11 liveuser sessions and 8 sddm sessions simultaneously open which was strange. I saw similar problems on another boot after doing the same things. The several simultaneous sessions is likely a different problem, and I'm not sure if it's related to Plasma 5.27.1 or something else. This kwin_wayland problem should be fixed since Vlad's patch checked if the workspace pointer was null before calling workspace()->geometry().size(). Thanks. |