Bug 476750 - Plasmashell sometimes crashes when leaving Panel Edit Mode on Wayland
Summary: Plasmashell sometimes crashes when leaving Panel Edit Mode on Wayland
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6, wayland-only
Depends on:
Blocks:
 
Reported: 2023-11-09 12:10 UTC by Prajna Sariputra
Modified: 2023-11-09 19:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Prajna Sariputra 2023-11-09 12:10:15 UTC
SUMMARY
In a Plasma 6 session built like 3 hours ago (using `kdesrc-build --refresh-build workspace`) exiting Edit Mode sometimes causes plasmashell to crash (with DrKonqi popping up and all that). This is different from bug 476644 in that I don't see anything regarding Wayland protocol errors in the logs.

While I haven't found a set of steps that will 100% reproduce the issue so far I can get it to happen in under 5 minutes every time just by messing around, like opening the edit menu from the panel, closing it, opening it again, changing the panel to "Fit content" mode, changing the panel alignment, then closing the edit menu, and so on.

I can also get it to happen from a freshly installed and updated KDE Neon Unstable install in a VM if I boot into the Wayland session, I've yet to see the bug happen in an X11 session there.

I will try getting debug symbols built and getting the backtrace at some point, although DrKonqi didn't seem to give me an option to automatically download the debug symbols for the distro installed stuff like Qt6 so not sure how useful it'd end up being, and in the KDE Neon Unstable VM the install debug symbols button didn't work.


STEPS TO REPRODUCE
1. Open Edit Mode by right clicking on an empty spot in the panel
2. (Optional) Change some settings in the panel, for example the length or alignment
3. Close Edit Mode

OBSERVED RESULT
Plasmashell crashes sometimes, and the changes in step 2 are usually not saved when it happens.

EXPECTED RESULT
The changes in step 2 are saved, and Edit Mode exits gracefully.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.6.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Nate Graham 2023-11-09 19:32:21 UTC
This was *mostly* fixed by something else a few days ago, but the rest should be fixed by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3507 which was merged a few hours ago.