Bug 450607

Summary: plasmashell crashes when monitor wakes up
Product: [Plasma] plasmashell Reporter: Philipp Maierhöfer <maiphi.public>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: qydwhotmail
Priority: NOR    
Version: 5.24.1   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace

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 ***