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

[BUG] Abnormal CPU usage #515

Closed
RootOperator opened this issue Jun 19, 2024 · 9 comments
Closed

[BUG] Abnormal CPU usage #515

RootOperator opened this issue Jun 19, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@RootOperator
Copy link

Describe the bug
Idle in background uses about 8% cpu which doesn't sound right (not sure what the old version had) but when disconnecting and reconnecting my buds 2 pro while the application is running the CPU usages goes up to 16% and stays there until you completely close and re open it again

To Reproduce
Run application in background. disconnect earbuds and reconnect.

Expected behavior
No permanent doubling of the CPU usage.

Screenshots
image

Desktop (please complete the following information):

  • OS: Arch linux 6.9.4-arch1-1
  • Application version: 5.0.0.0+e9073e1b081e2db2e17c935c4bffe912eafacdd4

Additional context

Log files
application.log

@RootOperator RootOperator added the bug Something isn't working label Jun 19, 2024
@mahmutsezai
Copy link

Same behaviour on arch 6.9.5.
Cpu usage goes to %100 as soon as application is open.
Screenshot from 2024-06-20 23-58-06

@timschneeb
Copy link
Owner

I fixed this recently, but I haven't released a new stable release for it yet.
You can download a build with the fix here for now: https://github.com/timschneeb/GalaxyBudsClient/actions/runs/9539521694

@d-avery
Copy link

d-avery commented Jun 23, 2024

Also have this issue on Arch. Good to know there's a fix!

@timschneeb
Copy link
Owner

The fix has been released in v5.0.1: https://github.com/timschneeb/GalaxyBudsClient/releases/tag/5.0.1

@dougmeek
Copy link

dougmeek commented Jul 1, 2024

I've been running 5.0.1 on Linux for a couple days and the 100% CPU bug does not seem to be fixed. Keeps one of my cores pegged constantly. If you would like debug data, please let me know what you'd like to see.

@timschneeb timschneeb reopened this Jul 1, 2024
@dougmeek
Copy link

dougmeek commented Jul 1, 2024

Screenshot attached:

Screenshot_20240701_153854

@timschneeb
Copy link
Owner

timschneeb commented Jul 11, 2024

I found a deadlock in one of the UI libraries I'm using. Downgrading it (commit ab5f349) appears to have fixed the 100% CPU usage bug on my system. I'll have to test it for a while to make sure it's actually fixed, though.

Binaries with the fix can be downloaded here for now: https://github.com/timschneeb/GalaxyBudsClient/actions/runs/9900010544

Edit: Looks like the actual issue is caused by a library used to create global keyboard hooks on X11. It only spikes the CPU usage after running for 1 or 2 hours, making debugging this annoying.

@timschneeb
Copy link
Owner

timschneeb commented Jul 13, 2024

Fixed by TolikPylypchuk/SharpHook#112 and b3c741b

Binaries with the fix can be downloaded here for now: https://github.com/timschneeb/GalaxyBudsClient/actions/runs/9922666656

@dougmeek
Copy link

Thanks for looking into this @timschneeb. I'll give it a test drive later today. Since I'm running Nvidia, I haven't tested this with Wayland yet, but hopefully this fixes it for X11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants