-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flameshot freezes and becomes unresponsive when using "Copy to Clipboard" on KDE Wayland #3785
Comments
I'd have to setup a VM with Arch and KDE to fully test this, could you confirm that your As for what exactly triggered it between 30th and the second of november, I cannot say. |
Here’s the updated information based on my tests: Environment Variables:
Clipboard Functionality: I tested with Spectacle (KDE's screenshot tool), and the clipboard functionality worked perfectly under Wayland. This includes copying screenshots to the clipboard and subsequent operations. This suggests that the clipboard implementation in Wayland is functioning correctly for other applications. Behavior in Flameshot: Flameshot still exhibits the same issues when using the "Copy to Clipboard" feature. The freezing persists regardless of whether the XDG_CURRENT_DESKTOP variable is set to KDE or GNOME. Debug logs were collected during these tests (see below).
This log was updated up to this point when launching the program. However, when attempting to capture the screen and copy to the clipboard, no additional lines were added to the log. In other words, during the issue, the log remained static and only reflects the initialization of Flameshot, without capturing any new activity in the terminal while the problem occurred. Thank you very much @FelixJochems |
If you give me more instruction I may bring more logs or make a specific rollback to test so you doesnt need to run arch. Thanks. |
Now I was able to get more logs, i'll attach it. Thanks. |
Thanks a lot for the quick information. The main takeaway for me is that we should just force the GRIM screenshot method whenever flameshot detects wayland and make WM specific implementations only when we have a stable and better implementation for said Window Manager. |
Thank you for the guidance earlier. Here’s an update on what I’ve tried: Compiling Flameshot with Grim Support: I compiled Flameshot from source with Grim support enabled to test if it would resolve the issue. The steps I followed were:
Despite enabling Grim, the behavior remains the same when trying to copy a screenshot to the clipboard. Testing on X11: I also logged into an X11 session to verify if the issue was specific to Wayland. Unfortunately, the exact same problem occurs under X11 as well, including the freezing and unresponsiveness when using "Copy to Clipboard." Conclusion: Based on these tests, it seems the issue is not exclusive to Wayland or Grim support but might be related to Flameshot’s clipboard handling in general. Let me know if you’d like additional logs or specific tests to narrow this down further. |
I was looking through the code and saw this piece of comment:
So someone else must have ran into the same problem, I'm not a fan of setting the clipboard via DBus exactly because of these weird interactions. That same file has a half impemented This does not take away from the fact that this is an exemplary bug report; You tried to eliminate some variables, have logs and described the circumstances under which this happens really well. |
I'm glad I could be helpful, especially since I'm not a programmer... haha!
But the Linux world is fascinating, and I'm a technology enthusiast.
ChatGPT also helped make this possible by drafting the text more precisely,
organizing the information, and giving me some tips on what relevant
details to include.
Thanks again for taking the time to review and for the kind words about the
bug report.
|
Up |
Flameshot Version
v12.1.0
Compiled with Qt 5.15.14
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Arch Linux Kernel: 6.6.61-1-lts
Description
After updating my Arch Linux system between October 30 and November 2, 2024, Flameshot started freezing and becoming unresponsive when using the "Copy to Clipboard" feature on KDE Wayland.
I attempted to roll back several packages, including Qt libraries, and KDE components, but the issue persisted. Unfortunately, my knowledge of Linux is limited, and I may not have identified or reverted all relevant packages.
Details:
Example log output:
The issue did not occur before this system update, and Flameshot was functioning perfectly on the same system with KDE Wayland.
Steps to reproduce
Screenshots or screen recordings
No response
System Information
Operating System and Version: Arch Linux, Kernel 6.6.61-1-lts
Monitor Configuration: Single monitor, 1920x1080 resolution
Desktop Environment: KDE Plasma 6.2.3
Window Manager: KWin
Display Protocol: Wayland
The issue only occurs when using Wayland; it did not happen in prior versions of the operating system.
Monitor configuration screenshot attached for reference (if applicable).
The text was updated successfully, but these errors were encountered: