haideralipunjabi / polybar-kdeconnect

KDEConnect module for Polybar
https://blog.haideralipunjabi.com/posts/making-modules-for-polybar-shell-python/
165 stars 11 forks source link

Polybar freezes and CPU usage 100% #14

Open jluttine opened 5 years ago

jluttine commented 5 years ago

If I use polybar-kdeconnect module in my Polybar, the whole Polybar freezes on start and CPU usage is 100%. Trying to kill it gracefully, doesn't work: State 'stop-sigterm' timed out. Killing.

This is how I've configured in polybar config:

[module/kdeconnect]
exec=/path/to/polybar-kdeconnect.sh -d
tail=true
type=custom/script

If I try to run the script manually, this is what happens:

$ /path/to/polybar-kdeconnect.sh -d
%{A1:/path/to/polybar-kdeconnect.sh -n Error: org.freedesktop.DBus.Error.UnknownObject
No such object path '/modules/kdeconnect/devices/_xxxxxxxxxxxxxxxxxxxx_' -i _xxxxxxxxxxxxxxxxxxxx_ -p:}%{F#ff0}%{F-}%{A}|%{F#000}%{F-}|%{F#000}%{F-}

(I replaced some ID looking string with xs.)

Any ideas what could be the issue?

It seems weird to me that Polybar freezes and CPU goes to 100%. Is this a Polybar bug when a custom script with tail mode fails? Or do you have any ideas why that happens?

haideralipunjabi commented 4 years ago

Have you configured KDEConnect properly? I mean does KDEConnect work for you?