Summary: | plasmashell quits when window title too long | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Kenny Hui <kenny.mh.hui> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, kde, mu, nate |
Priority: | NOR | Keywords: | wayland |
Version: | 5.26.90 | Flags: | kenny.mh.hui:
Wayland+
kenny.mh.hui: X11- |
Target Milestone: | 1.0 | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/ec6a5e7945806afcc80f26950820a5307659fad0 | Version Fixed In: | 6.0 |
Attachments: | An python script which opens a empty window with Tkinter, setting the title of that window to ~7000 characters. |
Description
Kenny Hui
2023-02-15 15:02:09 UTC
The window title is to big for the buffer Feb 16 13:48:35 david-thinkpad kwin_wayland_wrapper[1496]: Data too big for buffer (7468 > 4096). Feb 16 13:48:35 david-thinkpad kwin_wayland_wrapper[1496]: error in client communication (pid 13429) Your observed 4074 characters is close to the 4096 Byte wayland buffer size A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3818 Git commit f88ff99d82f3e2f9811d174838d28fc4339e2284 by David Edmundson. Committed on 17/03/2023 at 12:21. Pushed by davidedmundson into branch 'master'. wayland: Truncate strings sent via plasmawindowmanager interface Wayland has a limited size for strings in arguments. We should truncate any strings that come from user-defined data before sending. We keep the full title around within kwin as it keeps logic simpler. Size length logic is lifted from QWaylandWindow's setTitle M +13 -0 src/wayland/autotests/client/test_wayland_windowmanagement.cpp M +17 -4 src/wayland/plasmawindowmanagement_interface.cpp https://invent.kde.org/plasma/kwin/commit/f88ff99d82f3e2f9811d174838d28fc4339e2284 Git commit ec6a5e7945806afcc80f26950820a5307659fad0 by David Edmundson. Committed on 17/03/2023 at 20:01. Pushed by davidedmundson into branch 'Plasma/5.27'. wayland: Truncate strings sent via plasmawindowmanager interface Wayland has a limited size for strings in arguments. We should truncate any strings that come from user-defined data before sending. We keep the full title around within kwin as it keeps logic simpler. Size length logic is lifted from QWaylandWindow's setTitle (cherry picked from commit f88ff99d82f3e2f9811d174838d28fc4339e2284) M +13 -0 src/wayland/autotests/client/test_wayland_windowmanagement.cpp M +17 -4 src/wayland/plasmawindowmanagement_interface.cpp https://invent.kde.org/plasma/kwin/commit/ec6a5e7945806afcc80f26950820a5307659fad0 *** Bug 467612 has been marked as a duplicate of this bug. *** |