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

High CPU Usage for no reason on KDE+Ubuntu #44

Closed
J-Cake opened this issue Dec 26, 2020 · 8 comments
Closed

High CPU Usage for no reason on KDE+Ubuntu #44

J-Cake opened this issue Dec 26, 2020 · 8 comments

Comments

@J-Cake
Copy link

J-Cake commented Dec 26, 2020

System information

AB x86_64-little_endian-lp64
App version v3.2-dev (59fcf9b)
Current desktop KDE
Device Spotifyd@JCake (Speaker)
Kernel linux 5.4.0-58-generic
Product Ubuntu 20.04.1 LTS
Qt version 5.9.5

Detailed information

The System monitor (KSysGuard) shows the app is idling at 13%CPU Usage after being open when the device wakes from sleep. I don't believe this has anything to do with the issue, however, notably, the app was running for extended periods of time prior to CPU usage spiking

What happens?

The App should stay open for an extended period of time and if possible be open when the device wakes from sleep. The application is playing music.

What should happen?

The CPU usage of the application should not exceed idling usage (<1%)

@kraxarn
Copy link
Owner

kraxarn commented Dec 26, 2020

Maybe related to the application losing network connectivity? I know spotifyd/librespot has some issues with handling it, but it's possible the application itself also does.

@J-Cake
Copy link
Author

J-Cake commented Dec 26, 2020

If this is the case, how come the application's CPU usage rises rather than the daemon?

@uninhm
Copy link
Contributor

uninhm commented Dec 29, 2020

In my case spotifyd is using 10% and spotify-qt 0.3%

@rajeshisnepali
Copy link

For me I suppose, the issue arose after the system suspended.

At first, it was having 100% CPU usage, and after I restarted the app, it fell to 1.3%. I'm not sure if it is related. But we need a permanent solution indeed.

@kraxarn
Copy link
Owner

kraxarn commented Jan 16, 2021

The only time I've been able to get high CPU usage is with slow network requests. As a lot of network requests are done while the application is running, it's possible something goes wrong when system is suspended, but it's just a guess.

@kraxarn
Copy link
Owner

kraxarn commented May 23, 2021

Can anyone confirm if this is still an issue? Networking was reworked in v3.6, which hopefully resolved this.

@J-Cake
Copy link
Author

J-Cake commented May 24, 2021

I have recently reinstalled kubuntu, and have not noticed this issue since. I had managed to narrow the issue down to a physical fault. I had a power surge on my USB ports, which physically damaged them, causing the system to go into some sort of loop. Disabling the USB ports in the UEFI menu has resolved this.

@kraxarn
Copy link
Owner

kraxarn commented Aug 13, 2021

I'll close this as a duplicate of #102 for now, which is a similar issue with high CPU usage related to networking, even if it's not exactly the same. Feel free to re-open if this is still an issue after the other issue is resolved.

@kraxarn kraxarn closed this as completed Aug 13, 2021
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

4 participants