Bug 486458

Summary: Sizes of space-filling panels on adjacent screen edges are unstable
Product: [Plasma] plasmashell Reporter: Kunshan Wang <wks1986>
Component: PanelAssignee: Marco Martin <notmart>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, niccolo.venerandi, niccolo
Priority: NOR    
Version: 6.0.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of a normal state
Screenshot when the layout goes wrong

Description Kunshan Wang 2024-05-02 14:21:58 UTC
Created attachment 169104 [details]
Screenshot of a normal state

SUMMARY

I configured my plasma desktop to have two panels.  (See the attached screenshot.)  One is on the top, with a global menu, a system tray and a digital clock.  The other is on the left, spanning from right below the top panel to the bottom edge of the screen, with two application starters, a "Pager" for switching virtual desktops, an "Icon-only Task Manager", and a "Peek at Desktop" widget at the bottom.

When I log in, the layout is normal.  But some actions will cause the layout to go wrong.  (I'll attach another screenshot.) The bottom of the left panel will go below the bottom edge of the screen if that happens.  There are two ways I know to make it happen.  (1) switch desktop, and (2) take a screenshot.

And there are several actions that will magically make the layout come back to normal again.  (1) lock the screen (Win+L) and unlock it.  (2) Enter edit mode for the left panel (only during edit mode, and will go wrong again when exiting edit mode).

And it seems that setting the height of the left panel to "Custom" will crash all the panels.

STEPS TO REPRODUCE
1. Configure the desktop to have two panels.  One on the top, and the other on the left.  It is helpful to add a spacer and a widget at the bottom end of the left panel so that you know where the bottom of the panel is.
2. Log out and log in.
3. Use the Pager to switch desktop.
4. Lock screen by pressing Win+L and then unlock.
5. Take a screenshot by pressing the "print screen" key.
6. Enter "edit mode" by right-clicking on the left panel and select "Enter Edit Mode".
7. Leave "edit mode".
8. Enter "edit mode" again, the same way.
9. Set the "Height" of the left panel from the default "Fill Height" to "Custom"

OBSERVED RESULT
After step 2, the layout is normal.
After step 3, the layout goes wrong.
After step 4, the layout becomes normal again.
After step 5, the layout goes wrong again.
After step 6, the layout looks normal again.
After step 7, the layout goes wrong again.
After step 8, the layout looks normal again.
After step 9, all panels disappear and re-appear.  It looks like some program related to window management crashed.

EXPECTED RESULT
The layout should stay normal at all time, and should not crash when setting the height to "Custom".

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Kernel version: 6.8.8-arch1-1 (64-bit)
Graphics platform: Wayland
Comment 1 Kunshan Wang 2024-05-02 14:24:55 UTC
Created attachment 169105 [details]
Screenshot when the layout goes wrong

Here is a screenshot when the layout goes wrong.  The left panel spans below the bottom edge of the screen.  The white horizontal bar you see at the bottom of the left panel is the top few pixels of the "Peek at desktop" widget.
Comment 2 Nate Graham 2024-05-03 19:55:10 UTC
Aha, this is a known issue that will be fixed by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4274.
Comment 3 Kunshan Wang 2024-06-20 13:47:08 UTC
After upgrading to plasma 6.1, the problem persists.  But it no longer crashes if I set the "Height" of the left panel to "Custom".  Now I can workaround the problem by setting it to "Custom" and fill the full height by setting the height manually.
Comment 4 Niccolò Venerandi 2024-10-02 18:49:32 UTC

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