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
Espanso stops expanding after waking from sleep #138
Comments
Hey @WardsParadox, By the way, @timorunge are you suffering from the same problem? Cheers |
Running into the same issue as well. MacOS 10.15.2 on espanso version 0.5.0. Using |
Found that running |
Gave that a try a few times, doesn't seem to work for me. Even gave it a bit longer at about 30 seconds before restarting to no avail. |
For me, logging out and back in works. Faster than restarting, but still not ideal. |
Hey guys, I'm sorry I couldn't fix this issue yet, but unfortunately I can't reproduce this problem by myself. The macOS version has been developed on an Hackintosh, which doesn't support Sleep... Thanks for your help :) |
If I get it to trigger again, I'll get the logs. knock on wood it's been reliable as of late :) |
And had to jinx it.
I was trying to run :date which just outputs the date in an iso format |
I've got my log here as well.
|
I think I may have figured out the issue or possibly what's going wrong here. On Mac OS, there is a feature called "Secure Input" which captures keyboard input, usually when applications need to have passwords or secure information entered, which may be preventing espanso from capturing keyboard input. I use Amazon Workspaces frequently at work and as such, it being a remote pc program it needs to capture input from the keyboard. However, I noticed that when I would quit Amazon Workspaces, espanso would start expanding again. Then as soon as I started it once more, espanso would stop expanding text no matter what I did. I found out which application was capturing keyboard input using the method in this thread here: https://forum.keyboardmaestro.com/t/disable-secure-input/2410/4 I hope this helps! |
Hey guys, Cheers :) |
I'm experiencing this, as well. Let me know what I can do to help debug! 👍 |
Hey guys,
Could you also post the output of the following command in case the previous one returns something? (replacing NNN with the process ID found before)
Cheers :) |
Apologies for the radio silence, but after all sorts of actions (sleep/wake, rebooting, etc.), Espanso keeps working and hasn't exhibited this since... Will keep an eye out and post back if I see something. |
No problem @bachya, let me know if you find something :) |
@federico-terzi I haven't been able to reproduce the issue either since initial posting. I am still noticing that espanso stops working as soon as I run another application that uses SecureInput, which is still to be expected because the application is capturing keyboard input before espanso can.
|
Hey @KingDestructo,
As far as I know, it's not like the first app that receives the event blocks the others from receiving them. It is the fact that WorkSpaces request SecureInput that blocks espanso, which is expected as usually applications request "SecureInput" when there is sensitive content being typed. Personally, I'm more worried about the possibility of espanso randomly stopping on wake up, as that would be definitely a problem. On the other hand, it's totally understandable if it stops when the user is entering a password. Cheers :) |
After 10.15.4 application, this issue has gotten worse.
During the start from it and now 14:24, No expansion has occurred. |
@WardsParadox You are several versions behind – can you upgrade and see if that helps? |
Wow, didn't even check on that. Updating now. |
No change in behavior.
|
Hey @WardsParadox, I'm sorry you are still experiencing these issue, I'll look into it again as soon as I can. Cheers :) |
For everyone having this problem, I suggest you the following procedure:
I still wasn't able to reproduce this problem on my machines, but I've read online that accessibility permissions on macOS Catalina are particularly buggy in general, and not just for espanso, and this procedure generally helps. Another possible cause is the "Power nap" feature, which may be responsible of this problem, though I don't have any evidence about it. You could try disabling power nap for some time and see if that helps. |
So, I performed the above 3 steps. ..... Well, it's back. |
Hey, |
Unfortunately I’m having this issue. I’m on espanso 0.7.1 – updating now! The issue occurs irregularly (yet frequently) after logging in from sleep. espanso triggers a notification saying |
Hey @shortenjukebox, Often that behavior is due to a misbehaving password manager, so you might need to check that :) |
Using espanso on macOS 10.14 or 10.15 (seems more noticeable though) seems to die after waking from a sleep. Sometimes using
restart
to restart the daemon fixes it, but not reliably. I have to usually perform a full restart to get it to start using expansions again.The text was updated successfully, but these errors were encountered: