-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 idle CPU usage #2652
Comments
I've noticed very high CPU usage on Windows 10 under the new 2.4.0 version on several occasions. Although it goes away after I lock and reopen the database. |
FWIW, I have the same problem on two computers with KeepassXC 2.4.1. Anything I can do to troubleshoot? Lock/reopen does not change anything. |
Oh this issue referenced here was corrected. High cpu has been reported on macOS, but I strongly believe that it's a qt bug. |
This is still annoying me on x86/linux. $> keepassxc --version |
You are on an EXTREMELY outdated version of KeePassXC |
Well, it's definitely not fixed. Can you point me to the commit(s) that supposedly fix this issue? Here's my version info: KeePassXC - Version 2.4.1 Qt 5.11.3 Operating system: Fedora 29 (Workstation Edition) |
KeePassXC seems to do a lot of stuff with file descriptors used for event handling or something. I recorded this with strace:
It repeats like that ad nauseam. As you can see, it polls a bunch of file descriptors all the time and does some reads and writes. I really wonder what these are for. |
I am looking into this. This could be the browser extension reading and writing to the proxy stdin pipe. If so, there may be a very tight loop that is being triggered. |
FWIW, I have disabled all browser integration functionality. Here's some more info. The wakeup storm starts after the first locking. So, I start up KeePassXC, and it's fine. Wakeups only happen on activity with the UI. I unlock a database, still fine. Wakeups only happen every couple of seconds. But after locking that database - 60 wakeups per second. And they continue if I unlock again. |
OK that is great info, helps me narrow down the debugging. |
Debugging this would be a drag. It's no longer acting up on my box and now waking up maybe a few times/min regardless of whether the db is locked. The only things I can think of is that I haven't suspended since the last time I launched it, and that I've installed openvpn which had some dependencies. Maybe something related to Keepass got updated. I'm also running it under alltray, which is quiet as a mouse. |
Same here. According to top, keepassxc eats about 4% — 6% CPU when does nothing.
|
I am experiencing this issue. Same setup as the poster above me, but everything up to date. |
Fixed in 2.5.1 |
The problem still exists in 2.5.3. |
What I've found that is only happening when using Breeze theme (CPU usage is about 5%, strace is flooding with something similar to #2652 (comment), with other theme strace output is silent, CPU usage is zero). I'm using qt5ct, not sure if that matters. UPD: not only Breeze is affected, but the behaviour is different depending on theme:
Unaffected themes:
Other Qt application with this themes are not affected. |
Considering a platform plugin (theme) does not impact the functions of our code base it sure seems like a Qt bug. Understand your assertion about other apps, but they may not be using the affected code in those plugins. |
I also used qt5ct. I can confirm the theme Windows doesn't have this issue and adwaita theme can also reproduce this issue. |
I'm sorry for bothering you with this again but may be you can help debugging it and report the problem to the right people? |
I dont have time to do that unfortunately |
also experienced that from time to time, as a first guess it cpu usage would go up after sleep, but the app itself becomes unresponsive, and i have to terminate it to use it. |
Same here. Seems to occur every time I lock sway. |
Expected Behavior
KeePassXC idles at approximately 0% CPU usage.
Current Behavior
High idle CPU usage of around 2% on Linux/X11 (on an Intel i5-6200U CPU). The KeePassXC process seems to wake up around 60 times per second (according to powertop) even when there is no database open and/or the window is minimzed. This negatively affects battery life.
Debug Info
KeePassXC - Version 2.3.4
Revision: 6fe821c
Libraries:
Operating system: Fedora 29 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 4.20.3-200.fc29.x86_64
Enabled extensions:
The text was updated successfully, but these errors were encountered: