Bug 442519 - [Wayland] plasma freezes when clicking on the flameshot icon in the tray
Summary: [Wayland] plasma freezes when clicking on the flameshot icon in the tray
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (other bugs)
Version First Reported In: 5.23.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-09-16 12:52 UTC by Pawel
Modified: 2022-02-12 04:36 UTC (History)
4 users (show)

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


Attachments
plasma workspace (36.31 KB, image/png)
2022-01-13 22:22 UTC, Pawel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel 2021-09-16 12:52:36 UTC
SUMMARY

After upgrading to plasma 5.22.90 on Arch linux, I have noticed that whenever I click on the flameshot icon in the tray, the desktop freezes for 1 second or so before the screenshot tool shows on the desktop. This seems to happen on Wayland - I will check X11 later today and report back.

I captured the below log:

9/16/21 2:45 PM	plasmashell	Got invalid activation app_id: ""
9/16/21 2:45 PM	flameshot	qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
9/16/21 2:45 PM	flameshot	QPainter::begin: Paint device returned engine == 0, type: 2
9/16/21 2:45 PM	flameshot	QPainter::setRenderHint: Painter must be active to set rendering hints
9/16/21 2:45 PM	flameshot	QPainter::setCompositionMode: Painter not active
9/16/21 2:45 PM	flameshot	QPainter::translate: Painter not active
9/16/21 2:45 PM	flameshot	QPainter::setPen: Painter not active
9/16/21 2:45 PM	flameshot	QPainter::setBrush: Painter not active
9/16/21 2:45 PM	flameshot	QPainter::setBrush: Painter not active


Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-1-amd-staging-drm-next-git-00935-gb44d240c34d2 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 Pawel 2021-09-16 12:56:59 UTC
Note: this only happens when the flameshot window is to be displayed on the desktop; if I cover the desktop with a full screen application such us thunderbird, there is no freeze. I also tried with the Info Center application and again, no freeze.
Comment 2 Pawel 2021-09-16 16:05:19 UTC
I cannot reproduce on X11. Seems to be fine there.
Comment 3 David Edmundson 2022-01-12 16:28:34 UTC
I could not immediately reproduce this.

Can you run "Q_DBUS_BLOCKING_CALL_MAIN_THREAD_WARNING_MS=1 plasmashell --replace" and try to reproduce.
Comment 4 Pawel 2022-01-13 16:09:23 UTC
I did as you asked but there is literally 0 output during and after the hang when I run plasma with this var. 
I also just updated to 5.23.90 and the issue persists.

Anything else I ca do?
Comment 5 Pawel 2022-01-13 22:22:20 UTC
Created attachment 145433 [details]
plasma workspace

I spent some more time on this and the freeze might be related to plasma workspace saving a screenshot to /tmp/ everytime I click on the flameshot icon. see attached
Comment 6 Pawel 2022-01-13 22:29:48 UTC
ok, found this: https://github.com/flameshot-org/flameshot/issues/2032

specifically, this response: https://github.com/flameshot-org/flameshot/issues/2032#issuecomment-961340796

I guess it's a bug in flameshot, not KDE.
Comment 7 Bug Janitor Service 2022-01-28 04:37:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-02-12 04:36:44 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!