Bug 492777 - Hang on big window size on Wayland.
Summary: Hang on big window size on Wayland.
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-07 21:52 UTC by alekseipesorin
Modified: 2024-10-09 03:47 UTC (History)
0 users

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


Attachments
The exact revision of the offending application that I discovered this in. (967 bytes, text/plain)
2024-09-07 21:52 UTC, alekseipesorin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alekseipesorin 2024-09-07 21:52:52 UTC
Created attachment 173420 [details]
The exact revision of the offending application that I discovered this in.

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When window size is too big, Plasma shell becomes transparent and everything just hangs. I am not even sure if this is kwin related, but this doesn't appear reproduce on X11. Going to a tty as root and running `killall -9 kwin_wayland` crashes every user up but brings back the lock screen. Discovered when fucking around with PyQt6 for school purposes. This happened with the ALHP repository but I have confirmed it reproduces with Arch's default repositories.
I don't think a userspace program should be able to stop workflow either way.

STEPS TO REPRODUCE
1. Install PyQT6 and NumPy.
2. Run the attached file.
3. Press the Russian text button

OBSERVED RESULT
See SUMMARY.

EXPECTED RESULT
It either makes the window wide as expected, makes the window cap at a certain limit or 

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Nun
Comment 1 Vlad Zahorodnii 2024-09-08 09:45:17 UTC
It can take a while to upload graphics buffer contents to an opengl texture if it's too big. There's also a question of texture limits. In my case, kwin doesn't hang, but it fails to upload texture data. Can you get kwin's backtrace when it hangs?
Comment 2 alekseipesorin 2024-09-08 12:26:16 UTC
(In reply to Vlad Zahorodnii from comment #1)
> It can take a while to upload graphics buffer contents to an opengl texture
> if it's too big. There's also a question of texture limits. In my case, kwin
> doesn't hang, but it fails to upload texture data. Can you get kwin's
> backtrace when it hangs?

How do I get the backtrace of an app that didn't crash?

Also, I experimented a little bit and 10000 renders instantly but 20000 is bad. I tried that on a different laptop but same GPU and same system (replaced SSD) and there it just hangs the app and not kwin for some reason, and then there are major graphical glitches where it blinks between completely black and 3 minute old buffer until I restart kwin.
Comment 3 Vlad Zahorodnii 2024-09-09 11:58:07 UTC
you'll need to ssh to your computer and attach a debugger, see https://community.kde.org/index.php?title=KWin/Debugging
Comment 4 Bug Janitor Service 2024-09-24 03:47:10 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-10-09 03:47:27 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.