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
Unlock window gets stuck when invoked via AutoType hotkey #4164
Comments
I haven't a clue on this one |
I have experienced this issue as well. With neither Yubikey, SSH Agent, Keeshare or Browser Integration enabled. Running version 2.5.3. |
Still no solution? I have the same issue happening here, which is very annoying. |
I ended up working around it by always closing the extra window whenever it comes up, and simply logging in at the main window. Then redo my auto-type afterwards. But I seem to be able to rather consistently reproduce the error by typing the password in the extra window to finish my auto-type and then right after that clicking the KeePassXC icon in my dock. |
Can you try using our snapshot build to see if the problem persists? Https://snapshot.keepassxc.org |
I tried to install the latest snapshot but it keeps complaining about that it needs "Accessibility and Screen Recording permissions". I run MacOS Mojave and only have the Accessibility option, which I have given permissions to. I have also restarted KeePassXC after giving the permissions. |
Restart your computer. Macos is completely screwing up permissions |
@droidmonkey I am seeing the same problem as @Silwing - I am running Mojave 10.14.6, the 2.5.4 keeps popping up the dialog asking for permissions though the permission is already granted. I don't want to restart the computer, and I don't think this is appropriate request. It looks like the permission verification on KeePassXC side has regressed. Rolling back to 2.5.3-2 restored the Auto-Type functionality without need for any restart, so it seems there is a clear and simple regression in 2.5.4 for the Accessibility permission check. |
@valters you can disregard our advice or fix your problem by restarting: #4573 (comment) |
Just to let you know, this issue is still present on Catalina + KeePassXC version 2.6.0 It does not seem consistent. I experienced it right after upgrading to Catalina + restarting (to fix the Screen Recording permission). Trying to auto-type the first time I entered my password in the pop-over window and it auto-typed successfully but left the pop-over stuck with no means to close it (except for restarting KeePassXC). |
Naughty Behavior
Intermittently, when I invoke AutoType while my database is locked, the unlock window gets stuck. The database unlocks successfully and AutoType completes, but the unlock window doesn't go away; it stays on top of all my other windows, and I am unable to close it, I have to force-quit KeePassXC to return to a normal state.
Here's a screenshot of the unlock window in this "stuck" state. You can see that the unlocked database has opened behind the unlock window. Notice the unlock window is in the foreground, but the window titlebar is dimmed as if it didn't have focus.
Possible Solution
I'm not familiar with the code behind the unlock process, but it seems like there is a function that never returns or a thread that never exits. We should check that when doing unlock after AutoType, that the unlock process will always complete and the unlock window will close when it's finished.
Steps to Reproduce
This problem is intermittent, but these are the steps that occur when it happens:
Context
This only occurs about 20% of the time.Update: Actually, this happens more frequently than I thought, because the symptom of the stuck unlock window sometimes does not appear until after sending KeePassXC to the background and returning to it later. It's happening about 90% of the time for me. I haven't identified the circumstances that cause it to occur. But it has happened enough times that I feel it's worth creating an issue ticket.Occurred with versions 2.5.1 and 2.5.2. I never used 2.5.0, so not sure which version the problem started.
Debug Info
KeePassXC - Version 2.5.2
Revision: 62cda9d
Qt 5.14.0
Debugging mode is disabled.
Operating system: macOS Mojave (10.14)
CPU architecture: x86_64
Kernel: darwin 18.7.0
Enabled extensions:
Cryptographic libraries:
libgcrypt 1.8.5
The text was updated successfully, but these errors were encountered: