Skip to content
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

sfwbar uses 100% cpu time since commit f9a682ee222f207d77cd0d76bab796dd03b7005a #287

Open
artist-artix opened this issue Dec 19, 2024 · 3 comments

Comments

@artist-artix
Copy link

A build (on Artix Linux, but the platform should not be relevant here) from commit :

  • f9a682e "deprecate old function api"
    makes sfwbar use 100% cpu time

  • ecbabf5 "vm: replace marks with a shadow stack"
    makes sfwbar use a few % of cpu time, as normal

@LBCrion
Copy link
Owner

LBCrion commented Dec 20, 2024 via email

@artist-artix
Copy link
Author

The problem reproduces on a machine that does not have a ~/.confg/sfwbar folder at all.
The compositor used is labwc.

sfwbar -d shows where the code goes spinning in a loop:

09:29:30.79 scanner: $xvolumesinkmenutmpl = 
Menu('XVolumeSinkMenu') {
  Item('@SINK_DESC@',
      VolumeCtl Extract(WidgetId(),'(.*)_menu'), 'client-set-sink @SINK_NAME@',
      '@SINK_NAME@')
} (vstate: 0)
09:29:30.79 parsing config string: 
Menu('XVolumeSinkMenu') {
  Item('@SINK_DESC@',
      VolumeCtl Extract(WidgetId(),'(.*)_menu'), 'client-set-sink hw:0',
      'hw:0')
}
09:29:30.79 trigger: 'volume-conf'
09:29:30.79 trigger: 'volume-conf'
09:29:30.79 trigger: 'volume-conf'

...

@artist-artix
Copy link
Author

Like in #286 I'm also using pipewire and pipewire-pulse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants