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 randomly gets stuck on select screen for unknown reason #3567

Closed
pawelkontek opened this issue Aug 25, 2024 · 36 comments
Closed

Alt-tab randomly gets stuck on select screen for unknown reason #3567

pawelkontek opened this issue Aug 25, 2024 · 36 comments
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue

Comments

@pawelkontek
Copy link

pawelkontek commented Aug 25, 2024

Describe the bug

The Alt-tab randomly gets stuck on the select screen for an unknown reason. Please see video.

Screenshots / video

(It is best to watch with sound to understand when I am pressing cmd+tab to switch tabs)
https://github.com/user-attachments/assets/645529ef-be38-4d88-b1d4-214abe82b09b

Steps to reproduce the bug

  1. Just use alt tab.

Your environment

  • AltTab version: Version 6.72.0
  • macOS version: Sonoma 14.5 (23F79)
  • Other relevant info: Using MBP 14". Using Karabiner.
@pawelkontek pawelkontek added the bug Something isn't working label Aug 25, 2024
@qvanphong
Copy link

I'm facing same problem, sometime if I press Alt Tab too fast, the tab select automatically move from left to right until end of list of windows

@lwouis
Copy link
Owner

lwouis commented Aug 27, 2024

Hi,

Thank you for sharing this issue.

I can't reproduce it. I reproduced your exact inputs as well, and it doesn't get stuck.

Only idea I have is that you may have other apps on your setup which intercept events, and absorb the keyUp event. This would mean AltTab doesn't see them, thus never goes away.

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

Thank you 🙇

@qvanphong what you describe sounds more like #3117

@lwouis lwouis added unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue labels Aug 27, 2024
@milosoria
Copy link

I'm facing the same problem ever since i updated to sonoma.

This was referenced Aug 29, 2024
@pawelkontek
Copy link
Author

pawelkontek commented Aug 29, 2024

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

I use Karabiner, but I was also able to reproduce this bug with Karabiner completely turned off.
I use BTT 🤡
No external keyboards or Logitech (as of recording this bug) – it is possible that the Apple keyboard and trackpad were connected via Bluetooth but not active.

Only idea I have is that you may have other apps on your setup which intercept events, and absorb the keyUp event

Isn't karabiner elements showing what the computer (?) is recording?

@lwouis
Copy link
Owner

lwouis commented Aug 29, 2024

Karabiner and BTT both listen to keyboard events, and do things with it. In some cases, they may absorb the event.

For instance, if you set Karabiner to remap E to L, when you press E, it will create keyUp event for the letter E. Karabiner will absorb it, and re-emit a new event for the letter L. At least I believe they do something like this. I know for a fact that these apps can absorb events, then AltTab doesn't receive them. Many users have shared issues with AltTab that were actually due to their setup.

Could you please test with BTT and Karabiner not running, and no external keyboard? I think that should confirm if they were the cause, which is the most likely explanation.

Thank you 🙇

@qvanphong
Copy link

qvanphong commented Aug 29, 2024

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

Hi @lwouis , I'm not using any other external device. I'm not remember exactly when this happen, maybe after update Sonoma?

My issue is same as #3117

@nasedil
Copy link

nasedil commented Sep 5, 2024

I had the problem when updated to Sonoma. Then I disabled the blue capslock indicator popup in macos and now it seems working normal as before.
UPDATE: the problem still persists, but it seems to be more often when there are dynamic windows

@scriptogre
Copy link

I had the exact same issue for months, but have not found anyone else facing it. Finally there's someone else. I am also using Karabiner, but I can confirm that this also happens with Karabiner stopped.

@ctrl-cheeb-del
Copy link

I have also experienced this issue on a brand new macbook also on Sonoma

@ILIAink
Copy link

ILIAink commented Sep 8, 2024

I unfortunately don't have a solution, but just bumping this since I am facing the same issue.

Edit: If anyone just wants to make it work again, I suggest downgrading to version 6.63.0. This fixed the issue for me.

@pawelkontek
Copy link
Author

@ILIAink I downgraded to 6.63.0. Unfortunately, it didn't fix the issue for me.

@aoli-al
Copy link

aoli-al commented Sep 10, 2024

I also had this issue for a while. After some debugging, I noticed that the bug went away after I disabled Chrome's input monitoring permission.

image

@lwouis
Copy link
Owner

lwouis commented Sep 11, 2024

Thank you @aoli-al
Anyone else gets the issue to go away by removing Chrome's Input Monitoring permissions? If yes, that would indicate that it was Chrome stealing inputs in some cases.

@Yazi27
Copy link

Yazi27 commented Sep 11, 2024

No, I use Brave and it is not doing any input monitoring, this issue is really annoying I find myself constantly switching between Brave and VSC, I may have to find an alternative since it seems they are sleeping on this issue

@multi-io
Copy link

This happens constantly for me, to the point where AltTab becomes unusable.

@AfzalivE
Copy link
Contributor

AfzalivE commented Sep 12, 2024

For me, disabling Karabiner's 3 input monitoring applications fixed it, re-enabling them still keeps the fix. Didn't have any other input monitoring apps enabled.

@pawelkontek
Copy link
Author

The bug still persists for me, even after disabling monitoring apps.

I am going to disable alt-tab and use macOS regular switcher, and see if it also gets stuck.

Bug.still.alt.tab.mp4

@albionselimaj
Copy link

albionselimaj commented Sep 13, 2024

This is happening when the mouse cursor is positioned over the AltTab popup. Hiding window thumbnails in AltTab Appearance settings helps with this as it reduces the chances of the cursor being over the popup area.

@multi-io
Copy link

This happens constantly for me, to the point where AltTab becomes unusable.

Update: I had Karabiner Elements running, wasn't really using it anymore. Disabled it and restarted, and it looks like the problem is gone.
I still have Rectangle with a whole bunch of keyboard mappings running, and this would be much harder to replace or stop using, but so far it doesn't seem to interfere with AltTab.
I will report back if the issue reappears.

@ctrl-cheeb-del
Copy link

just wanted to say, I was experiencing this issue but took @ILIAink suggestion of downgrading to 6.63.0 seemed to fix it for me

@Yazi27
Copy link

Yazi27 commented Sep 13, 2024

I don't have Karabiner, the issue does arise when my mouse is somewhere around where the windows appear as @albionselimaj mentioned, it would be nice to add a feature to disable entirely disable cursor as an easy fix, or maybe disable it when its not moving?

Would be nice if a dev answers

@lwouis
Copy link
Owner

lwouis commented Sep 14, 2024

Hi,

A lot of cases in this threads have been confirmed to be caused not by AltTab having a bug, but by another app stealing a keyboard input.

It's hard to investigate more without being able to ever reproduce the issue on my machine. Soon, we'll add a logger to AltTab. It will allow for casual users to share logs here. These will help us investigate such issues that happen only on some people setups.

Thank you 🙇

@Yazi27
Copy link

Yazi27 commented Sep 14, 2024

Any solution regarding the cursor being on the way of the windows making the cycle get stuck, even cycling by itself? I'll provide a video.

Screen.Recording.2024-09-14.at.20.15.46.mov

@hikariatama
Copy link

I was testing different versions trying to figure out, which one does not have the issue mentioned, because I had it. I tried all version starting from 6.63.0 up to the latest one. I do not have a slightest idea why, but the issue fixed itself and currently I am not experiencing it on the latest version. Weird.

@and-poulsen
Copy link

This is happening when the mouse cursor is positioned over the AltTab popup. Hiding window thumbnails in AltTab Appearance settings helps with this as it reduces the chances of the cursor being over the popup area.

Exactly what happens for me – most definitely this is what is causing it for me.
Disabled all input capturing apps, but still happens.

@d-lord
Copy link

d-lord commented Oct 1, 2024

I've been experiencing this for a while. Setting Apparition delay to 0ms rather than 104ms seems to have resolved it. 🤞

Unable to reproduce by putting my cursor where AltTab will pop up.

@james-aus
Copy link

james-aus commented Oct 4, 2024

I can reproduce as well with the mouse being over the switcher popup when it appears & have nothing like Karabiner installed. If I move my mouse to the side of the screen, I have no issue. If I have my mouse in the center, it happens every time. Wasn't actually aware this was the pattern until I found this thread, but experimenting now that I know to pay attention to where my mouse is that explanation fits perfectly :) I've got >16 windows open, so it takes up most of the screen. My Apparition Delay was already set to 0ms.

@lordgrenville
Copy link

I also have this issue, which is caused by the mouse cursor being over the AltTab window, as @albionselimaj said.

However, under controls, I have deselected "Also select windows using mouse hover" and "Cursor follows focus", so this seems like a bug.

@multi-io
Copy link

This happens constantly for me, to the point where AltTab becomes unusable.

Update: I had Karabiner Elements running, wasn't really using it anymore. Disabled it and restarted, and it looks like the problem is gone. I still have Rectangle with a whole bunch of keyboard mappings running, and this would be much harder to replace or stop using, but so far it doesn't seem to interfere with AltTab. I will report back if the issue reappears.

Well...it did reappear. I did not reinstall Karabiner Elements. Restarting it seems to help, for a while at least.

@rcwmt
Copy link

rcwmt commented Oct 13, 2024

Would it help to give Alt-Tab a higher priority compared to BTT / Karabiner etc.? Could Alt-Tab become a "Input Monitoring App?"

@lwouis
Copy link
Owner

lwouis commented Oct 13, 2024

@rcwmt as far as i know, there is no way to set the priority of input capture between macOS apps. It's not exposed to the user through some kind of list, and there is no API for the app to call to claim for themselves. Priority is decided by the order in which apps are launched, i believe.

It's not advised to have multiple apps capture the same inputs. Shortcuts shouldn't overlap otherwise you'll run into issues

@Longwelwind
Copy link

Longwelwind commented Oct 14, 2024

Any solution regarding the cursor being on the way of the windows making the cycle get stuck, even cycling by itself? I'll provide a video.

Screen.Recording.2024-09-14.at.20.15.46.mov

I'm having the same issue. If I Alt+Tab and if the cursor is on the overlay when it appears, it will sometimes quickly cycle randomly through the open windows:

Screen.Recording.2024-10-14.at.12.03.04.mov

(Note that I only pushed on Alt+Tab once in the video)

I enabled Hide window thumbnails to make the overlay smaller so that the issue happens less. I disabled all Input Monitoring apps in Privacy & Security in MacOS settings.

Thanks for an otherwise great app!

Edit: Solved it by remvoving all the apps in Input and Monitoring (instead of just disablign them) and them rebooting my Mac.

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

Could everyone in this thread please update to the latest version of AltTab, and see if it has fixed the issue like it did form some users?

Thank you 🙇

@Yazi27
Copy link

Yazi27 commented Oct 18, 2024

@lwouis Latest update does fix it indeed. Thank you very much 😄

@kaiyihuo
Copy link

kaiyihuo commented Nov 1, 2024

Latest update fixes it for me too.

@lwouis
Copy link
Owner

lwouis commented Nov 7, 2024

I'll close this ticket since there seems to be nothing to do on AltTab side.

Some issues were due to external software interfering
Some issues seem fixed on the latest version of AltTab
Some issues already have tickets to track them (e.g. #3117)

Thank you 🙇

@lwouis lwouis closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests