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

Alt-Tab window switcher suddenly not start anymore (but the default MacOS window switcher) #528

Closed
stidch opened this issue Aug 13, 2020 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@stidch
Copy link

stidch commented Aug 13, 2020

Describe the bug

When I initially start AltTab the AltTab window switcher starts successfully when pressing CMD+tab on my external Magic Keyboard.

Suddenly (I don't know what causes AltTab to not work anymore) the AltTab window switcher is not opened anymore, but the MacOS default window switcher.

What I've tried in this situation:

  • Restarting AltTab - does not help
  • Using the MacBookPro internal keyboard - does not help
  • Restarting MacOS helps

Setup:

  • MacBookPro 2019
  • MacOS Catalina 10.15.6
  • AltTab 4.19.0

Screenshots / video

Configuration

image

Steps to reproduce the bug

Unfortunately I don't know how to reproduce it. But I can see it quite often and I don't know how to fix it.

@stidch stidch added the bug Something isn't working label Aug 13, 2020
@lwouis
Copy link
Owner

lwouis commented Aug 13, 2020

Hi @stidch! Thanks for sharing this issue!

Based on the symptoms, I think you are experiencing #157. Could you please run this command in Terminal and share the result?

ioreg -l -w 0 | grep SecureInput | awk 'BEGIN {FS="[^a-zA-Z0-9]+"} {print $8}' | uniq | xargs -n 1 ps aux

It should show you which app on your machine is enabling Secure Input, which prevents AltTab from accessing your keyboard inputs.

@lwouis lwouis added the duplicate This issue or pull request already exists label Aug 13, 2020
@stidch
Copy link
Author

stidch commented Aug 13, 2020

Hey @lwouis

Thanks for the very quick response.

I've executed the command, but I get an error 🤔

$ ioreg -l -w 0 | grep SecureInput | awk 'BEGIN {FS="[^a-zA-Z0-9]+"} {print $8}' | uniq | xargs -n 1 ps aux
ps: illegal argument: Yes
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
          [-u]
          [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
       ps [-L]

If I call the commands separately I see the following:

ioreg -l -w 0 | grep SecureInput
  |   "IOConsoleUsers" = ({"kCGSSessionOnConsoleKey"=Yes,"kSCSecuritySessionID"=100008,"kCGSessionLoginDoneKey"=Yes,"kCGSSessionGroupIDKey"=672444324,"kCGSSessionSystemSafeBoot"=No,"kCGSSessionUserNameKey"="11sgrimm","kCGSSessionIDKey"=257,"kCGSSessionSecureInputPID"=251,"kCGSessionLongUserNameKey"="Grimm, Stephan","kCGSSessionAuditIDKey"=100008,"kCGSSessionLoginwindowSafeLogin"=No,"kCGSSessionUserIDKey"=1443202911})
    | |   "IOConsoleUsers" = ({"kCGSSessionOnConsoleKey"=Yes,"kSCSecuritySessionID"=100008,"kCGSessionLoginDoneKey"=Yes,"kCGSSessionGroupIDKey"=672444324,"kCGSSessionSystemSafeBoot"=No,"kCGSSessionUserNameKey"="MYUSER","kCGSSessionIDKey"=257,"kCGSSessionSecureInputPID"=251,"kCGSessionLongUserNameKey"="MYNAME","kCGSSessionAuditIDKey"=100008,"kCGSSessionLoginwindowSafeLogin"=No,"kCGSSessionUserIDKey"=1443202911})

If I look for a process with PID 251 I see

ps aux | grep 251
myuser         53572   0.0  0.0  5251536      8   ??  Ss   10:05PM   0:00.10 /System/Library/Frameworks/Metal.framework/Versions/A/XPCServices/MTLCompilerService.xpc/Contents/MacOS/MTLCompilerService
myuser         22352   0.0  0.0  5125192   1124   ??  S    Tue02PM   0:00.69 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdwrite
root            1441   0.0  0.0  5125120   1032   ??  S    Tue02PM   0:00.21 /usr/libexec/secinitd
myuser           914   0.0  0.0  4600148   2512   ??  S    Tue02PM   0:00.16 /System/Library/PrivateFrameworks/CommunicationsFilter.framework/CMFSyncAgent
myuser         57259   0.0  0.0  4408572    816 s000  S+   10:09AM   0:00.00 grep --color 251
_coreaudiod      283   0.0  0.1  5791456  25184   ??  Ss   Tue02PM   2:26.28 /usr/sbin/coreaudiod
myuser           251   0.0  0.1  6518400  38744   ??  Ss   Tue02PM   0:25.83 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console

Does this help?

@lwouis
Copy link
Owner

lwouis commented Aug 13, 2020

Thank you for the breakdown! I can see on the last line that you're being affected by the bug in macOS loginwindow. See more explanations on this comment on the ticket I mentioned above.

I'm closing this ticket as a duplicate of #157. Hopefully enough people test the new build, and I can release the new AltTab which is unaffected by Secure Input 👍

@lwouis lwouis closed this as completed Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants