Bug 458469 - "Data too big for buffer" and clients exit when turning external monitor back on
Summary: "Data too big for buffer" and clients exit when turning external monitor back on
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-29 13:18 UTC by hexchain
Modified: 2023-03-12 19:19 UTC (History)
3 users (show)

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


Attachments
Logs (53.89 KB, text/plain)
2022-08-29 13:18 UTC, hexchain
Details
Crash log (1.44 MB, text/plain)
2022-11-29 18:19 UTC, winblocker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hexchain 2022-08-29 13:18:59 UTC
Created attachment 151681 [details]
Logs

SUMMARY
I'm using a laptop with a closed lid and connected to an external monitor via HDMI. The internal screen is also disabled in System Settings.

Occasionally, when I turn the external monitor back on, the still-closed internal screen will be incorrectly enabled (I can move my mouse beyond the boundary of the external monitor as if the internal screen is on the left), and after unlocking I get a black background with only some open windows - panels and the desktop are gone, and the screen arrangement is incorrect.

I've attached logs of one such occasion. kwin_wayland_wrapper logs "Data too big for buffer (43708 > 4096)" and kicks the connection with some programs (plasmashell, powerdevil, and kded). The number "43708" seems consistent - all such logs across multiple reboots have the same number.

STEPS TO REPRODUCE
1. Connect a laptop to an external monitor
2. Disable the internal screen in System Settings
3. Close the lid
4. Lock the screen and toggle the external monitor


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 28.8 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: MECHREVO
Product Name: Code 01 Series PF5NU1G
Comment 1 Vlad Zahorodnii 2022-08-29 13:25:52 UTC
Aug 29 20:35:13 hostname kwin_wayland_wrapper[2003]: Data too big for buffer (43708 > 4096).
Aug 29 20:35:13 hostname kwin_wayland_wrapper[2003]: error in client communication (pid 2104)

comes from libwayland. It means that the client buffer will be filled up so the client connection is terminated. not sure what might cause this though.
Comment 2 winblocker 2022-11-29 18:19:46 UTC
Created attachment 154144 [details]
Crash log
Comment 3 winblocker 2022-11-29 18:20:26 UTC
I get the exact same behavior but instead of turning my monitor on and off this triggers for me when i load into the actual gameplay of Arma 3. Navigating the menus of the game works fine but its the step where you actually start to play that kills my Desktop. The message in the log is also the same:
Nov 29 14:16:02 luna kwin_wayland_wrapper[844]: Data too big for buffer (4336 > 4096).
Nov 29 14:16:02 luna kwin_wayland_wrapper[844]: error in client communication (pid 15988)
Comment 4 winblocker 2023-01-05 14:15:15 UTC
I can no longer reproduce this bug.
Comment 5 Nate Graham 2023-01-05 14:30:19 UTC
Cool! On Plasma 5.26.5, or some other version?
Comment 6 winblocker 2023-01-05 14:41:32 UTC
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 7 Vlad Zahorodnii 2023-01-06 09:13:11 UTC
Closing as per comment 4
Comment 8 stellarpower 2023-03-12 19:19:49 UTC
I am still able to reproduce this. I am on (stock server) Jammy Jellyfish and 5.25.5 from the KUbuntu backports *extra* PPA.

Plasma seems to crash, without fail when I power off my display, go away to do something else, and then power it back on when I come back - but also spontaneously and irregularly. This typically occurs when I've done something that would cause a significant change in the window manager - e.g. opening a new application, moving a firefox tab to a new window, using a hot corner to show my open windows à la expo.

Been a bit difficult trying to find the relevant log lines, I don't see anything blaring, but arrived here from that line about data being too big for a buffer. This was following a spontaneous crash, I don't think this line appears when I switch the display off and on again, but it happens so frequently I haven't yet managed to gather all the evidence and it's obviously a clear string to tug on.

If there's a way I can easily get hold of a more recent build of Plasma I'm happy to try it out and see if I can confirm that whatever changes have happened stop it from reproducing or not, otherwise this is affecting me right now still.