| Summary: | plasma-login-greeter: SIGSEGV in QWindow::screen() via dangling QWindowPrivate pointer when Wayland compositor replaces pending screen output during startup | ||
|---|---|---|---|
| Product: | [Plasma] plasma-login-manager | Reporter: | Lendy <large.dress6546> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | grave | CC: | fernandommuniz, jgrulich, kde, mail, martin.tibke, nate, ngompa, olib141, tobias.fella |
| Priority: | VHI | Keywords: | qt6, wayland-only |
| Version First Reported In: | 6.6.4 | ||
| Target Milestone: | --- | ||
| Platform: | CachyOS | ||
| OS: | Linux | ||
| URL: | https://discuss.kde.org/t/plasmaloginmanager-blank-screen-only-on-first-cold-boot/46087/2 | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=527293 | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-login-manager/-/commit/b967468299bd28bffcfaad04cc4ee0485a80616e | Version Fixed/Implemented In: | 6.6.5 |
| Sentry Crash Report: | |||
|
Description
Lendy
2026-04-23 11:27:02 UTC
cc: jgrulich@redhat.com at the Fedora KDE sig Urgh, I see it: You would need to create screen A create screen B delete screen B (this is fine, but the connect is not bound and now the captured window is dangling) delete screen A (this now crashes evaluating the lambda set up for screen B) Using QPointer is a bad solution, we should scope the connect. *or* just pivot to letting layer shell dismiss the window and deleting on that. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-login-manager/-/merge_requests/128 Git commit d4da6b79377756796081a19c1f628263b6e3a442 by Oliver Beard, on behalf of David Edmundson. Committed on 23/04/2026 at 14:40. Pushed by davidedmundson into branch 'master'. greeter: Avoid leaking connections for window destruction When a screen is removed we delete the window, because the connect was scoped to the greeter this connect lingered with the captured 'window' pointer dangling. We also dropped the geometry connection as this is done implicitly via layer-shell anyway. M +1 -4 src/frontend/greeter/main.cpp M +0 -4 src/frontend/wallpaper/wallpaperapp.cpp https://invent.kde.org/plasma/plasma-login-manager/-/commit/d4da6b79377756796081a19c1f628263b6e3a442 Hi. Thanks for the quick turnaround on this! I see it's committed to `master`. Looking at https://community.kde.org/Schedules/Plasma_6#Future_releases I see 6.6.5 Bugfix Release Tue 2026-05-12 I'm not sure where to look to check when this fix gets into Distro -- Fedora in my case; v43 right now, v44 any day now. Does this project push from master>6.6.5 , and then the Distro(s) pick that up on regular update schedule? Or does the Distro need to drive it? Maybe with a ping from me? As I understand it Fedora are quick to pick up Plasma bugfix releases. Distros can cherry-pick commits before they land in a release. I'll recommend that we ask distros to cherry-pick this sooner after also looking at the wallpaper, as reports that users are left with a black screen implies that both are deficient. Git commit b967468299bd28bffcfaad04cc4ee0485a80616e by Oliver Beard. Committed on 23/04/2026 at 19:34. Pushed by olib into branch 'Plasma/6.6'. greeter: Avoid leaking connections for window destruction When a screen is removed we delete the window, because the connect was scoped to the greeter this connect lingered with the captured 'window' pointer dangling. We also dropped the geometry connection as this is done implicitly via layer-shell anyway. (cherry picked from commit d4da6b79377756796081a19c1f628263b6e3a442) Co-authored-by: David Edmundson <kde@davidedmundson.co.uk> M +1 -4 src/frontend/greeter/main.cpp M +0 -4 src/frontend/wallpaper/wallpaperapp.cpp https://invent.kde.org/plasma/plasma-login-manager/-/commit/b967468299bd28bffcfaad04cc4ee0485a80616e (In reply to Oliver Beard from comment #6) Hi. Ok, Thanks. It sounds like it gets done pretty much on auto-pilot. Just in case, I see in the Fedora pkg listing https://src.fedoraproject.org/rpms/plasma-login-manager it's mainted by 'ngompa'. I don't see them on the list here. I guess cc: for info won't hurt. On 6.6.5 sometimes PLM seems to soft-lock and not read any inputs with the exception of the ESC key after I end my session then unplug and plug the external screen's HDMI. (In reply to David Edmundson from comment #2) > Urgh, I see it: > > You would need to > > create screen A > create screen B > delete screen B (this is fine, but the connect is not bound and now the > captured window is dangling) > delete screen A (this now crashes evaluating the lambda set up for screen B) Fedora finally released their update package, ``` $ rpm -q plasma-login-manager plasma-login-manager-6.6.5-1.fc44.x86_64 ``` Booting now with screen OFF fails differently. Once I turn ON the screen after boot,The KDE greeter > login field does show up on screen. No wallpaper, just black background. If I enter my password, it doesn't login. It just sits. I CAN ssh to the machine. It's running at the system level OK. Just no DE. If I boot with the screen ON, all's still good. ``` === PRIOR BOOT (screen OFF) === May 17 07:18:28 lendy.loc systemd[1]: Starting plasmalogin.service - Plasma Login Manager... May 17 07:18:28 lendy.loc systemd[1]: Started plasmalogin.service - Plasma Login Manager. May 17 07:18:30 lendy.loc plasmalogin-helper[1768]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. May 17 07:18:30 lendy.loc plasmalogin-helper[1768]: pam_unix(plasmalogin-greeter:session): session opened for user plasmalogin(uid=967) by (uid=0) May 17 07:18:32 lendy.loc systemd-logind[1646]: New session 'c1' of user 'plasmalogin' with class 'greeter' and type 'wayland'. May 17 07:18:32 lendy.loc systemd-logind[1646]: New session '1' of user 'plasmalogin' with class 'manager-early' and type 'unspecified'. May 17 07:18:33 lendy.loc systemd[1]: Started session-c1.scope - Session c1 of User plasmalogin. May 17 07:18:33 lendy.loc plasmalogin-helper[1768]: Starting Wayland user session: "/etc/plasmalogin/wayland-session" "/usr/bin/startplasma-login-wayland" May 17 07:18:49 lendy.loc plasma-login-wallpaper[2293]: The PlasmaWindowManagement protocol hasn't activated in time. The client possibly got denied by kwin? Check kwin output. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:18:50 lendy.loc plasma-login-greeter[2292]: Unknown message received from daemon. May 17 07:22:46 lendy.loc plasma-login-wallpaper[2293]: There are no outputs - creating placeholder screen May 17 07:22:46 lendy.loc plasma-login-greeter[2292]: There are no outputs - creating placeholder screen May 17 07:22:46 lendy.loc plasma-login-greeter[2292]: Creating a layer shell for placeholder screen. This will be positioned incorrectly May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "Authenticator" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "BlurScreenBridge" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "UserModel" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "Settings" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "SessionModel" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: <Unknown File>: qmlRegisterSingletonType(): "SessionManagement" is not available because the callback function returns a null pointer. May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Login.qml:114: TypeError: Cannot read property 'needsPassword' of null May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Login.qml:151: TypeError: Cannot read property 'needsPassword' of null May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Main.qml:180:25: Unable to assign [undefined] to bool May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Main.qml:189:25: Unable to assign [undefined] to bool May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Main.qml:198:25: Unable to assign [undefined] to bool May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Main.qml:204:25: Unable to assign [undefined] to bool May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/SessionButton.qml:21: TypeError: Cannot call method 'index' of null May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/SessionButton.qml:20: TypeError: Cannot call method 'index' of null May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:58: TypeError: Property 'indexOfData' of object org.kde.plasma.login/UserModel is not a function May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:44: TypeError: Property 'indexOfData' of object org.kde.plasma.login/SessionModel is not a function May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:37: TypeError: Property 'rowCount' of object org.kde.plasma.login/UserModel is not a function May 17 07:22:48 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/Main.qml:101:13: Unable to assign [undefined] to bool May 17 07:23:27 lendy.loc plasma-login-greeter[2292]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:147: TypeError: Property 'login' of object org.kde.plasma.login/Authenticator is not a function May 17 07:34:29 lendy.loc plasmalogin-helper[1768]: Signal received: SIGTERM May 17 07:34:29 lendy.loc plasmalogin[1723]: Error from greeter session: "Process crashed" May 17 07:34:29 lendy.loc plasmalogin[1723]: Auth: plasmalogin-helper (--socket /tmp/plasmalogin-auth-a3f72c19-e541-4b8d-917c-6d2e0f3a8b45 --id 2 --start /usr/bin/startplasma-login-wayland --user plasmalogin --greeter) crashed (exit code 1) May 17 07:34:29 lendy.loc systemd[1]: Stopping session-c1.scope - Session c1 of User plasmalogin... May 17 07:34:29 lendy.loc plasmalogin[1723]: Error from greeter session: "Process crashed" May 17 07:34:29 lendy.loc plasmalogin[1723]: Auth: plasmalogin-helper exited with 1 May 17 07:34:29 lendy.loc plasmalogin[1723]: Signal received: SIGTERM May 17 07:34:29 lendy.loc plasma-login-greeter[2292]: Socket error: "QLocalSocket: Remote closed" May 17 07:34:30 lendy.loc systemd[1]: Stopping plasmalogin.service - Plasma Login Manager... May 17 07:34:30 lendy.loc systemd[1]: plasmalogin.service: Deactivated successfully. May 17 07:34:30 lendy.loc systemd[1]: Stopped plasmalogin.service - Plasma Login Manager. May 17 07:34:30 lendy.loc systemd[1]: Stopped session-c1.scope - Session c1 of User plasmalogin. ``` ``` === CURRENT BOOT (screen ON) === May 17 07:35:33 lendy.loc systemd[1]: Starting plasmalogin.service - Plasma Login Manager... May 17 07:35:33 lendy.loc systemd[1]: Started plasmalogin.service - Plasma Login Manager. May 17 07:35:37 lendy.loc plasmalogin-helper[2150]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. May 17 07:35:38 lendy.loc systemd-logind[1652]: New session 'c1' of user 'plasmalogin' with class 'greeter' and type 'wayland'. May 17 07:35:38 lendy.loc systemd-logind[1652]: New session '1' of user 'plasmalogin' with class 'manager-early' and type 'unspecified'. May 17 07:35:39 lendy.loc systemd[1]: Started session-c1.scope - Session c1 of User plasmalogin. May 17 07:35:39 lendy.loc plasmalogin-helper[2150]: Starting Wayland user session: "/etc/plasmalogin/wayland-session" "/usr/bin/startplasma-login-wayland" May 17 07:35:50 lendy.loc plasma-login-wallpaper[2299]: The PlasmaWindowManagement protocol hasn't activated in time. The client possibly got denied by kwin? Check kwin output. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:35:53 lendy.loc plasma-login-greeter[2298]: Unknown message received from daemon. May 17 07:43:56 lendy.loc plasmalogin-helper[2550]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. May 17 07:43:58 lendy.loc plasmalogin-helper[2550]: Starting Wayland user session: "/etc/plasmalogin/wayland-session" "/usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland" May 17 07:44:03 lendy.loc plasmalogin-helper[2150]: Signal received: SIGTERM May 17 07:44:03 lendy.loc plasmalogin[1716]: Auth: plasmalogin-helper exited with 255 $ ``` I can reproduce a very similar issue on Plasma Login Manager 6.7.0, so after the fix for bug 519302 there still seems to be a remaining “no outputs / placeholder screen” failure mode. System: - OS: CachyOS - Kernel: 7.1.1-2-cachyos - Plasma Login Manager: 6.7.0-2 - KWin: 6.7.0-3.1 - Plasma Workspace: 6.7.0-1.1 - Qt Declarative: 6.11.1-3.1 - GPU: NVIDIA GeForce RTX 4080 SUPER - NVIDIA driver: 610.43.02 - Session: Wayland - Monitor: Samsung Odyssey G93SC, DisplayPort DP-1, 5120x1440@240Hz, HDR enabled Symptom: Sometimes after boot, the Plasma Login greeter appears without wallpaper. The password field is visible, but entering the password does not start the session. It just stays on the greeter. This seems correlated with monitor/DisplayPort wakeup or standby behavior. The monitor is not actively powered off, but uses its built-in standby. Sometimes it does not wake correctly when the PC boots. The same physical monitor has appeared in KWin config with multiple EDID identifiers/hashes for DP-1, suggesting unstable EDID/DisplayPort detection. Relevant journal excerpt from a failed boot: ``` Jun 23 09:14:38 systemd[1]: Starting Plasma Login Manager... Jun 23 09:14:38 systemd[1]: Started Plasma Login Manager. Jun 23 09:14:38 plasmalogin[900]: Greeter session started successfully Jun 23 09:14:39 kwin_wayland[955]: No backend specified, automatically choosing drm Jun 23 09:14:39 plasma-login-greeter[994]: Connected to the daemon. Jun 23 09:14:40 plasma-login-wallpaper[995]: There are no outputs - creating placeholder screen Jun 23 09:14:40 plasma-login-greeter[994]: There are no outputs - creating placeholder screen Jun 23 09:14:40 plasma-login-greeter[994]: Creating a layer shell for placeholder screen. This will be positioned incorrectly Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: Singleton registered by registerSingletonInstance must only be accessed from one engine Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "Authenticator" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "BlurScreenBridge" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "UserModel" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "Settings" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "SessionModel" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: <Unknown File>: qmlRegisterSingletonType(): "SessionManagement" is not available because the callback function returns a null pointer. Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/Login.qml:114: TypeError: Cannot read property 'needsPassword' of null Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/Login.qml:151: TypeError: Cannot read property 'needsPassword' of null Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/SessionButton.qml:21: TypeError: Cannot call method 'index' of null Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:58: TypeError: Property 'indexOfData' of object org.kde.plasma.login/UserModel is not a function Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:44: TypeError: Property 'indexOfData' of object org.kde.plasma.login/SessionModel is not a function Jun 23 09:14:42 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:37: TypeError: Property 'rowCount' of object org.kde.plasma.login/UserModel is not a function Jun 23 09:59:33 plasma-login-greeter[994]: qrc:/qt/qml/org/kde/plasma/login/GreeterState.qml:147: TypeError: Property 'login' of object org.kde.plasma.login/Authenticator is not a function ``` After restarting Plasma Login, login works: ``` Jun 23 09:59:51 plasmalogin[900]: Auth: plasmalogin-helper exited with 1 Jun 23 09:59:51 systemd[1]: plasmalogin.service: Deactivated successfully. Jun 23 10:00:03 systemd[1]: Starting Plasma Login Manager... Jun 23 10:00:03 systemd[1]: Started Plasma Login Manager. Jun 23 10:00:14 plasmalogin[4334]: Message received from greeter: Login Jun 23 10:00:14 plasmalogin[4334]: Authentication for user "sebastian" successful Jun 23 10:00:14 plasmalogin[4334]: Session started true ``` This looks very similar to comment 10 in this bug: after 6.6.5 the original crash may be fixed, but booting when the monitor/output is not available still leaves the greeter in a broken state where the UI is visible but login cannot be invoked. Please let me know if I should open a new bug instead of commenting here, and which additional logs would be useful. Sebastian, your issue is tracked by 523313. I have added you to the CC list for that bug. |