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 on OS X w/2.4.1 #3061

Closed
BrettDikeman opened this issue Apr 23, 2019 · 7 comments
Closed

High CPU usage on OS X w/2.4.1 #3061

BrettDikeman opened this issue Apr 23, 2019 · 7 comments

Comments

@BrettDikeman
Copy link

BrettDikeman commented Apr 23, 2019

I updated to 2.4.1 from 2.4.0 recently and KeepassXC is now often uses 5-15% of my CPU, averaged over a 5 second window - more than any other application process, including the Chrome helper process I'm typing in now.

UPDATE: I had the about dialog open, KeepassXC was idle with an open database; I closed the window, and the high CPU usage returned.

Context

This period of high CPU usage lasts for several minutes at a time, regardless of whether the database is locked or not, and does not seem related to using browser integration. KeepassXC was idle with an open but locked database when I first noticed it; several minutes later the high CPU usage ceased, and then several minutes later, it returned for several minutes.

Debug Info

KeePassXC - Version 2.4.1
Revision: 7bafe65

Libraries:
Qt 5.12.2
libgcrypt 1.8.4

Operating system: MacOS X
CPU architecture: x86_64

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (only unsigned sharing)
  • YubiKey
  • TouchID
@BrettDikeman
Copy link
Author

Further testing reveals that this seems to be triggered by two things:

  • switching applications (not to/from KeepassXC but between any other applications)
  • covering and uncovering the KeepassXC database window with other application windows (covering it completely = low idle CPU. Uncovering it, even a small sliver = high CPU activity)

Hiding KeepassXC also will kill high idle CPU usage.

@droidmonkey
Copy link
Member

I wonder if this is related to the sluggish scrolling other Mac users have reported. Window painting (what happens when you uncover a portion of the window) is there job of Qt. A couple questions:

  1. Are you running in dark mode?
  2. Have you used auto type before the cpu usage increases?
  3. If you just open KeePassXC, with no database unlocked ever, is there still high cpu usage?

@BrettDikeman
Copy link
Author

BrettDikeman commented Apr 23, 2019 via email

@droidmonkey
Copy link
Member

OK, thank you for the responses. I am not currently aware of any looping processes within KeePassXC. I did fix an issue before the release of 2.4.0 that caused high CPU usage after saving. If you can narrow down exactly when the high cpu usage starts happening (ie, after what particular action or window state) that would be incredibly helpful.

@BrettDikeman
Copy link
Author

BrettDikeman commented Apr 23, 2019 via email

@droidmonkey
Copy link
Member

droidmonkey commented Apr 23, 2019

Oh interesting, I am able to reproduce this issue. I strongly suspect a Qt issue. They have really bungled a lot of Mac compatibility in 5.12.

@BrettDikeman
Copy link
Author

BrettDikeman commented Apr 23, 2019 via email

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

No branches or pull requests

2 participants