Unshaky icon indicating copy to clipboard operation
Unshaky copied to clipboard

Stop working after a few minutes

Open mickaphd opened this issue 6 years ago • 34 comments

I use this app from a long time now and I just noticed (maybe from the last update) that after a few minutes Unshaky stop working. The app is still running but I still have the keyboard problems and the debug window do not display anything. I was able to make it work again after using Onyx but again, still not working after a few minutes. No idea if it's coming from my mac or the app. PS: sorry for the double spaces but without Unshaky this butterfly keyboard is a nightmare...

mickaphd avatar Aug 02 '19 13:08 mickaphd

Does an old version also have this issue? Can you try a older version?

aahung avatar Aug 04 '19 06:08 aahung

Bug might have been introduced in version 0.5.4. Not later since no changes were made to the core logic of Unshaky since that version.

In 0.5.4, alternative keyboard layouts were added: https://github.com/aahung/Unshaky/compare/v0.5.3...v0.5.4

Zandor300 avatar Aug 06 '19 14:08 Zandor300

I completely uninstall the 0.5.6 to reinstall the previous one and update again (after restart, cache cleaning etc.). It seems working now so I have no explanations. Maybe a bug from my mac.. You can close the issue and just wait for similar feedbacks maybe

mickaphd avatar Aug 06 '19 15:08 mickaphd

Damn it's not working anymore...! I really don't get it..

mickaphd avatar Aug 06 '19 21:08 mickaphd

@Zandor300 can you confirm all versions since 0.5.4 do not work anymore?

@mickaphd so you are using the latest 0.5.6 and nothing shows up in the debug window? What OS version are u on now?

aahung avatar Aug 06 '19 21:08 aahung

I use the last Mojave version (10.14.6). I have the latest yes but even when I downgraded to the previous one at a certain point it was not working anymore. And yes when I feel it's not working anymore like right now nothing appear in the debug window

mickaphd avatar Aug 06 '19 21:08 mickaphd

@mickaphd Can you quickly try to set the delay for all (use the special input field below the table in Unshaky preference) to a large delay like 200 ms, to make sure it is not a delay configuration problem?

aahung avatar Aug 06 '19 22:08 aahung

@aahung I personally didn’t experience/notice this bug. I was just looking up what might be the issue.

Zandor300 avatar Aug 06 '19 22:08 Zandor300

@Zandor300 thanks for looking out. I hope it is not a widespread issue

aahung avatar Aug 06 '19 22:08 aahung

It doesn't change anything. Do you know guys another similar app/program? I don't wanna change for sure, just to see if it's coming from my computer and not Unshaky. Still thanks much for your help!

mickaphd avatar Aug 06 '19 22:08 mickaphd

I found a similar tool named debounce-mac which use the same API Unshaky does. Can you try to see it produce any output? Besides, can you do me a favor also test it when you don't use sudo to run that program (Unshaky usually don't acquire root privilege)?

Also this: https://github.com/nobu-g/DebounceMac

aahung avatar Aug 06 '19 22:08 aahung

0.5.3 works for me. newer update do not.

tuananh avatar Aug 08 '19 05:08 tuananh

@tuananh when it does not work, anything shows up in the debug window?

aahung avatar Aug 08 '19 08:08 aahung

its blank

On Thu, Aug 8, 2019 at 3:41 PM _sam [email protected] wrote:

@tuananh https://github.com/tuananh when it does not work, anything shows up in the debug window?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aahung/Unshaky/issues/110?email_source=notifications&email_token=AAEZETRKXQ74OQPMC4G6SJLQDPL33A5CNFSM4II6AQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD325FRA#issuecomment-519426756, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZETW62ZEYPJAWZTVFLHTQDPL33ANCNFSM4II6AQ5A .

tuananh avatar Aug 08 '19 09:08 tuananh

Is it possible that the problem appears when the mac wakes up after sleeping? I mean I still don't find any logic explanations to explain why sometimes it works and sometimes not

mickaphd avatar Aug 08 '19 15:08 mickaphd

Is it possible that the problem appears when the mac wakes up after sleeping? I mean I still don't find any logic explanations to explain why sometimes it works and sometimes not

for me, it doesn't work from the latest version. I can't find out why until I saw this issue. So i tried every version from latest down to 0.5.3 and that's when it starts working for me.

tuananh avatar Aug 08 '19 15:08 tuananh

Can you try to update to the last version to see if it still works? Because in my case the most recent version still works sometimes (and just stop sometimes too..!), just to confirm if it's really a problem between 0.5.3 and 0.5.6

mickaphd avatar Aug 08 '19 15:08 mickaphd

Interesting, @mickaphd I made a few changes about keyboard layout since 0.5.3, that might be the issue? @tuananh what keyboard layout do you use? Also did you use the keyboard layout feature in Unshaky configuration?

aahung avatar Aug 09 '19 18:08 aahung

but the keyboard layout thing shouldn't affect the core function. One possibility I can think of is with the new keyboard layout feature, the delays might not be set properly, therefore, the debug window is empty (because it only shows events for keys with >0 delays). I think I should change this behavior to show EVERYTHING when debug window is open.

aahung avatar Aug 09 '19 18:08 aahung

Interesting, @mickaphd I made a few changes about keyboard layout since 0.5.3, that might be the issue? @tuananh what keyboard layout do you use? Also did you use the keyboard layout feature in Unshaky configuration?

just the default us keyboard layout.

tuananh avatar Aug 10 '19 00:08 tuananh

Just to let you know in case it can help to understand this issue, Unshaky still stop working for me sometimes after a few hours but I just noticed that if I lock my computer (lock screen, it's not needed to log out or shutdown), it works perfectly just after. I tried that from 3 days and it works. I have no explanation but maybe you will!

mickaphd avatar Sep 19 '19 15:09 mickaphd

I have the same issue here. App doesn't appear to be working any more, even with very large delays. 0.5.4 version. OSX 10.13.6. Blank debug window.

clickysteve avatar Oct 02 '19 17:10 clickysteve

#128 gives an possibility that Unshaky might conflict with other programs. I am not sure if it is the case for this issue though.

@clickysteve when did it start to fail? Does upgrading to 0.6.0 resolve the problem?

aahung avatar Oct 03 '19 02:10 aahung

@clickysteve when did it start to fail? Does upgrading to 0.6.0 resolve the problem?

Just noticed it this past week. Upgrading to 0.6.0 hasn't resolved the issue. Seems to be a conflict with Karabiner.

clickysteve avatar Oct 07 '19 15:10 clickysteve

I also have the same issue, it used to work fine but has now stopped working, can't really recall when. I don't use Karabiner and I don't have any other apps which mess with keys. Tried locking the screen but that didn't help. Let me know if I can do anything to help troubleshoot. Tried upgrading to 0.6.0 but no avail.

Running macOS 10.14.6

richardsimko avatar Oct 17 '19 16:10 richardsimko

After an upgrade to Catalina it now works again!

richardsimko avatar Oct 18 '19 08:10 richardsimko

Stopped working for me too. I even set the delay to 999ms and it isn't blocking any double space whatsoever.

I'm not entirely sure but I think it stopped working with the Catalina upgrade.

mariodian avatar Jan 03 '20 11:01 mariodian

I may be having the same issue. Mojave 10.14.6, MBAir 2018, English-International layout. I just installed Unshaky for the first time yesterday (0.6) and even when I set the delay very high, nothing happens -- blank debug window, no suppressed strokes.

eudinaesis avatar Mar 19 '20 18:03 eudinaesis

Yes there is definitely a problem. For me when it stop working I just "Lock Screen" and just after unlocking it start working again. But it's really annoying. Try to see if it works for you

mickaphd avatar Mar 19 '20 18:03 mickaphd

Sadly this has been a weird bug I can never reproduce 😢 . If you click the unshaky icon on the menu bar, it will try to restart all hooks. If that does not work (blank debug window when pressing configured keys), make sure you disable "ignore external keyboard" options (disable "ignore external keyboard" might work due to I hardcoded keyboard types into Unshaky, and I might miss some mac models).

another workaround: remove Unshaky and download again to see if that helps (if it is caused by Unshaky cannot get accessibility permissions, reinstall Unshaky might ask you to grant permission again).

aahung avatar Mar 22 '20 01:03 aahung