-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
swaybar repeatedly polling various files #3789
Comments
I can confirm that telegram-desktop 1.5.11 and mumble 1.2.19 also cause this on sway 1.0-rc3. approximately 15 seconds of stracing swaybar with tdesktop's icon in the tray |
This issue is now being tracked in #3799. The kmix issue is, I think, a case of missing icons. It's looking for an icon called 'audio-volume-high' or something, does that exists on your filesystem? |
Hmm. Whilst tray support isn't final, it appears the individual apps could be more conservative. Not sure how much swaybar can do when apps do this, are the apps expecting some specific tray feature, or are they just generally misbehaving? |
Maybe an icon name cache could be implemented. Or maybe it's just an app bug. |
This is the solution. Here is a full outline of the problem: Sorry for this problem, but I hope you understand why it's happening. When I get time, I hope to revisit this problem, since it's not too conceptually hard, just fiddly to work out the details, but in the meantime, contributions are welcome :) |
In case a tray icon cannot be found or does not have a desirable size, swaybar retries the search again and again, which increases load on disk and CPU. This commit solves it by storing target_size for each icon, so that swaybar does not search for an icon of some size if it already tried to. Fixes swaywm#3789.
In case a tray icon cannot be found or does not have a desirable size, swaybar retries the search again and again, which increases load on disk and CPU. This commit solves it by storing target_size for each icon, so that swaybar does not search for an icon of some size if it already tried to. Fixes swaywm#3789.
In case a tray icon cannot be found or does not have a desirable size, swaybar retries the search again and again, which increases load on disk and CPU. This commit solves it by storing target_size for each icon, so that swaybar does not search for an icon of some size if it already tried to. Fixes #3789.
sway version 1.0-rc1-123-gd016848b
Specific tray apps seem to make swaybar repeatedly poll for image/asset files.
kdeconnect-indicator doesn't do it, but kmix, radiotray-ng (gtk) and soulseekqt do. the icon for kmix is a red face, but the radiotray-ng and soulseekqt icons appear as they should.
swaybar CPU usage without any tray apps is about 0.5%. For each troublesome app open, it goes up roughly by 3.5/5%.
sway.log
swaystrace.log
The text was updated successfully, but these errors were encountered: