Bug 444801 - Turning monitor off and back on causes plasmashell crash
Summary: Turning monitor off and back on causes plasmashell crash
Status: RESOLVED DUPLICATE of bug 438839
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.23.2
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-11-02 00:10 UTC by Alex
Modified: 2021-11-04 00:53 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2021-11-02 00:10:36 UTC
This is a new bug to track 438839, which apparently hasn't been fixed, according to comments. Normally, I would mark that bug as re-opened, but David Edmundson specifically requested to create a new bug with new logs if there are still issues.
Comment 1 Jasper 2021-11-02 14:06:11 UTC
I'm having this issue with Plasma Wayland 5.23.2 on Arch Linux.
Turning the screen off, and back on again with the button on the back makes plasmashell, konsole, dolphin and other kde apps crash.

This is the log file I captured with journalctl -f | grep --line-buffered kde

Nothing really different from the others it seems.

Nov 02 14:52:35 doosje kded5[1154]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Nov 02 14:52:35 doosje polkit-kde-authentication-agent-1[1182]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Nov 02 14:52:35 doosje org_kde_powerdevil[1177]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Nov 02 14:52:35 doosje kdeconnectd[1221]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Nov 02 14:52:35 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration: Removing output:
Nov 02 14:52:35 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration:     manufacturer:  "Acer Technologies"
Nov 02 14:52:35 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration:     model:  "Acer R270U/85456647"
Nov 02 14:52:35 doosje xdg-desktop-portal-kde[3142]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Nov 02 14:52:35 doosje plasmashell[9920]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
Nov 02 14:52:35 doosje plasmashell[9920]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
Nov 02 14:52:35 doosje plasmashell[9920]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
Nov 02 14:52:35 doosje plasmashell[9920]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
Nov 02 14:52:35 doosje kded5[1154]: Service  "org.kde.StatusNotifierHost-9920" unregistered
Nov 02 14:52:35 doosje kded5[1154]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants.

 -- Then this repeated 12 times:
Nov 02 14:52:36 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration: Adding output:
Nov 02 14:52:36 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration:     manufacturer:  "Acer Technologies"
Nov 02 14:52:36 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration:     model:  "Acer R270U/85456647"
Nov 02 14:52:36 doosje xdg-desktop-portal-kde[3142]: xdp-kde-wayland-integration:     resolution:  QSize(2560, 1440)
Comment 2 Ariel 2021-11-02 14:20:53 UTC
I'm having the same issue with Plasma 5.23.2 on Wayland.

After turning screen off then on I get this from plasmashell:

kf.plasma.quick: Applet preload policy set to 1                                                ✔ 
trying to show an empty dialog
trying to show an empty dialog
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.svg: <input>:406:376: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:407:130: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:408:130: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:408:393: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:409:130: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:410:129: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:411:129: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:412:129: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:413:129: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:413:379: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:413:631: Could not add child element to parent element because the types are incorrect.
Plasma Shell startup completed
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:520:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:475:13: QML Label: Binding loop detected for property "height"
trying to show an empty dialog
file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/main.qml:18:1: QML DropArea (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumWidth"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:475:13: QML Label: Binding loop detected for property "height"
    ~  qt.qpa.wayland: Creating a fake screen in order for Qt not to crash                        INT ✘ 
trying to show an empty dialog
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
trying to show an empty dialog
Old primary output: QScreen(0x556ffe892760, name="DP-2") New primary output: QScreen(0x5570014f6d50, name="")
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
trying to show an empty dialog
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:134:19: QML Loader: Binding loop detected for property "height"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
trying to show an empty dialog
xdg_surface@67: error -1: invalid window geometry size (0x0)
The Wayland connection experienced a fatal error: Protocol error
Comment 3 ltstarwarskid 2021-11-02 15:04:03 UTC
Can confirm is an issue on 5.23.2 for me as well. I would post the backtrace, but after plasmashell crashes drkonqi isn't stable, and I haven't been able to get the logs.

10/27/21 7:40 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-background: GetAppState called: no parameters
10/27/21 7:41 AM	kactivitymanagerd	qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration: Removing output:
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     manufacturer:  "LG Electronics"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     model:  "27GN950/007NTEP02148"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
10/27/21 7:41 AM	baloorunner	qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
10/27/21 7:41 AM	kernel	usb 7-1.4: USB disconnect, device number 4
10/27/21 7:41 AM	kernel	Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
10/27/21 7:41 AM	kernel	Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
10/27/21 7:41 AM	kernel	Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration: Adding output:
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     manufacturer:  "LG Electronics"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     model:  "27GN950/007NTEP02148"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     resolution:  QSize(3840, 2160)
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration: Adding output:
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     manufacturer:  "LG Electronics"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     model:  "27GN950/007NTEP02148"
10/27/21 7:41 AM	org.freedesktop.impl.portal.desktop.kde	xdp-kde-wayland-integration:     resolution:  QSize(3840, 2160)

It repeats the last four lines basically for as long as the monitor is off in my logs.
Comment 4 Nate Graham 2021-11-03 16:45:20 UTC
Git commit d39592c3c84a899e52b7f42419ca679b07d78f61 by Nate Graham, on behalf of Oxalica F.
Committed on 03/11/2021 at 16:43.
Pushed by ngraham into branch 'master'.

wayland: don't create DesktopView for placeholder screen

This fix crash when turn off and on the only primary display.
Related: bug 438839

M  +6    -1    shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/d39592c3c84a899e52b7f42419ca679b07d78f61
Comment 5 Nate Graham 2021-11-03 16:45:56 UTC
Git commit 7dd3aa10d0e62ff76ed965f0069b9035bf7565b3 by Nate Graham, on behalf of Oxalica F.
Committed on 03/11/2021 at 16:45.
Pushed by ngraham into branch 'Plasma/5.23'.

wayland: don't create DesktopView for placeholder screen

This fix crash when turn off and on the only primary display.
Related: bug 438839


(cherry picked from commit d39592c3c84a899e52b7f42419ca679b07d78f61)

M  +6    -1    shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/7dd3aa10d0e62ff76ed965f0069b9035bf7565b3
Comment 6 Nate Graham 2021-11-03 16:46:10 UTC

*** This bug has been marked as a duplicate of bug 438839 ***