Bug 476631

Summary: "Add Widgets" button in Panel edit mode toolbar/dialog menu kills plasmashell with a Wayland Protocol error
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: niccolo.venerandi, nicolas.fella, vishwasparpattegar
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-11-06 17:25:08 UTC
Plasma 6 Wayland from today's git master of everything. 2 screens, internal 4K@200%, external 1080p@100%, vertical panel.


STEPS TO REPRODUCE
1. Right-click on an empty area of the panel > Enter Edit Mode
2. Click "Add Widgets" button that appears on the toolbar (or, if https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1723 is applied, it's on the dialog header instead)


OBSERVED RESULT
Plasma exits with a Wayland protocol error:

> Nov 06 10:18:10 Liberator plasmashell[356157]: The Wayland connection experienced a fatal error: Bad file descriptor

It's not a crash, so there's no backtrace.


EXPECTED RESULT
The Widget Explorer opens.


ADDITIONAL INFORMATION
Does not happen if I right-click on the panel and choose "Add Widgets" from the context menu.
Comment 1 Nicolas Fella 2023-11-10 14:16:07 UTC
Cannot reproduce
Comment 2 Vishwas Parpattegar 2023-11-11 03:21:34 UTC
Currently running Plasma 6 Wayland with today's git master, 1 screen, with 125% scaling.

I do not receive a wayland protocol error but when attempting the reproduction steps twice in a row, I experience a plasmashell crash.
Comment 3 Nate Graham 2023-11-11 04:12:30 UTC
Then that's something else; please report it separately. In fact this specific issue as reported has already been fixed.