Bug 450607 - plasmashell crashes when monitor wakes up
Summary: plasmashell crashes when monitor wakes up
Status: RESOLVED DUPLICATE of bug 449981
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.24.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-20 10:48 UTC by Philipp Maierhöfer
Modified: 2022-02-20 13:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace (13.79 KB, text/vnd.kde.kcrash-report)
2022-02-20 10:48 UTC, Philipp Maierhöfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Maierhöfer 2022-02-20 10:48:47 UTC
Created attachment 146972 [details]
Backtrace

SUMMARY
Every time the screen wakes up from energy saving, plasmashell crashes and restarts. This happens both on Wayland and X11 (the attached backtrace is from X11). It started with Plasma 5.24.0 (and persists in 5.24.1). The PC is not suspended, just the screen (if the entire PC is suspended, not just the screen, waking up seems to work smoothly).

STEPS TO REPRODUCE
1. In "System Settings -> Power Management -> Energy Saving", set "Screen Energy Saving -> Switch off after" to some finite value.
2. Wait until the screen is sent to energy saving mode, then move the mouse or press a key to wake it up.

OBSERVED RESULT
The panel is missing when the screen turns on and then reappears after ~1 second. Sometimes the KDE crash handler opens (most of the time it doesn't although the crash does happen). Use top or ps to see that the plasmashell process was restarted or check the syslog.

EXPECTED RESULT
Well, plasmashell shouldn't crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This is not reproducible on all machines. But if so it happens every time.
Comment 1 Fushan Wen 2022-02-20 13:30:07 UTC
The crash part can be from desktoppackage/contents/views/Panel.qml

```
    onContainmentChanged: {
        if (!containment) {
            return;
        }
        containment.parent = containmentParent;
        containment.visible = true;
        containment.anchors.fill = containmentParent;
        containment.locationChanged.connect(adjustPrefix);
        adjustPrefix();
    }

```
Comment 2 Fushan Wen 2022-02-20 13:30:46 UTC

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