Bug 505132 - Placing a Notes Widget on a thick vertical panel freezes plasmashell
Summary: Placing a Notes Widget on a thick vertical panel freezes plasmashell
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notes widget (other bugs)
Version First Reported In: 6.3.5
Platform: Other Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 505310 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-02 17:53 UTC by isaacmcnatty
Modified: 2025-06-09 20:04 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description isaacmcnatty 2025-06-02 17:53:48 UTC
SUMMARY
Placing a Notes Widget on a thick vertical panel freezes plasmashell

STEPS TO REPRODUCE
1. Add a Vertical Panel that is 280px wide
2. Place a Notes Widget on it 
3. Plasmashell is frozen 

OBSERVED RESULT
Plasmashell is frozen and continues to freeze when restarting it

EXPECTED RESULT
Plasmashell still works

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS
KDE Plasma Version: 5.3.5
KDE Frameworks Version: 6.14
Qt Version: 6.9
Comment 1 cwo 2025-06-02 18:25:17 UTC
Can reproduce on master
Comment 2 Bug Janitor Service 2025-06-02 19:32:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/851
Comment 3 cwo 2025-06-02 19:40:01 UTC
I should have a solution for 6.4. Let me know if you need instructions on how to remove the widget while plasmashell is frozen.
Comment 4 cwo 2025-06-03 18:48:03 UTC
Git commit d999aa5d678028ab613b786bff2dbae38d827227 by Christoph Wolk.
Committed on 03/06/2025 at 18:43.
Pushed by cwo into branch 'master'.

applets/notes: fix fullRepresentation in panel

The fullRepresentation does not take into account that it could be
placed in a very thick panel. It sets minimum width in that case (to
constrain the popup), but they also apply to the fullRepresentation in
the panel directly, is much smaller than that case can handle, and
causes it to go on a wild resizing spree that locks up plasmashell
completely.

Instead, we do not set minimum widths in that case, which does the only
sensible thing: a square widget that fits the panel size. While we're at
it, also tweak the other panel checks that only apply in case of
compactRepresentation-in-panel; there is for example no point to having
the pin button for fullRepresentation-in-panel as it's not going to
close anyway.
FIXED-IN: 6.4.0

M  +18   -7    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/d999aa5d678028ab613b786bff2dbae38d827227
Comment 5 Nate Graham 2025-06-09 20:04:11 UTC
*** Bug 505310 has been marked as a duplicate of this bug. ***