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

On Sequoia beta 3 (Mac os 15.0), it keeps says screen recording is not allowed even it's allowed , and don't have popup like before #3477

Closed
hyungchulc opened this issue Jul 10, 2024 · 64 comments
Labels
bug Something isn't working macOS 15 macOS 15 Sequoia specific issue unactionable Further action is not possible due to lack of information or support

Comments

@hyungchulc
Copy link

Describe the bug

On Sequoia beta 3 (Mac Os 15.0), it keeps says screen recording is not allowed even it's allowed , and don't have popup like before, which asks if I want to keep give the permission.

Screenshots / video

Screenshot 2024-07-11 at 03 21 59 AM@2x

Steps to reproduce the bug

  1. Open AltTab in beta 3
  2. Doesn't work

Your environment

  • AltTab version: Latest, 6.71.0
  • macOS version: 15.0
@hyungchulc hyungchulc added the bug Something isn't working label Jul 10, 2024
@falchion10
Copy link

Having this issue as well. Just updated to 15.0 Developer Beta 3

@UnknownCrafts
Copy link

UnknownCrafts commented Jul 10, 2024

Ignore my instructions, please check this: #3477 (comment)

Edit: just for extra clarification I am also on MacOS 15 dev beta 3

I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.

Workaround:

NOTE: Please click the "Later" option instead of "quit and restart", this might not be obvious in the video due to compression.

video.mp4

Edit: If the workaround does not work then, add AltTab without removing it in the privacy and security settings.

@AChangXD
Copy link

Running into this as well

@AChangXD
Copy link

Edit: just for extra clarification I am also on MacOS 15 dev beta 3

I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.

Workaround:

video.mp4

Removing + adding back didn't fix it for me. I had to add it without removing it and it fixed itself. Seems more like a MacOS issue though

@UnknownCrafts
Copy link

Edit: just for extra clarification I am also on MacOS 15 dev beta 3
I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.
Workaround:
video.mp4

Removing + adding back didn't fix it for me. I had to add it without removing it and it fixed itself. Seems more like a MacOS issue though

I will add that as an alternative to the original comment.

@Ethansev
Copy link

Edit: just for extra clarification I am also on MacOS 15 dev beta 3
I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.
Workaround:
video.mp4

Removing + adding back didn't fix it for me. I had to add it without removing it and it fixed itself. Seems more like a MacOS issue though

Not working for me unfortunately but worth a shot. I'll play with it a bit and see what I can do. Also on MacOS 15 dev beta 3.

@AChangXD
Copy link

@Ethansev Try restarting/reinstalling

@AChangXD
Copy link

I created a ticket in the feedback app, I'd recommend anyone running into this issue to do the same.

@hyungchulc
Copy link
Author

Made it work with just clicking "Later" in the pop-up...!!

@andogq
Copy link

andogq commented Jul 11, 2024

This worked for me too! Remove AltTab from the list in Screen & System Audio Recording, and close the AltTab warning window. Re-open AltTab, and follow the prompts to give it screen recording permissions in settings. When it says that the program must be quit and re-opened, then click Later and it will work.

@UnknownCrafts
Copy link

Made it work with just clicking "Later" in the pop-up...!!

I was afraid that people would not be able to see the options due to the video compression, but in the video I am clicking the "Later" option instead of "quit and restart"

I will add a disclaimer in my original comment.

@jhaemin
Copy link

jhaemin commented Jul 11, 2024

This worked for me too! Remove AltTab from the list in Screen & System Audio Recording, and close the AltTab warning window. Re-open AltTab, and follow the prompts to give it screen recording permissions in settings. When it says that the program must be quit and re-opened, then click Later and it will work.

@andogq It works. Thanks.

@BossscoLeung
Copy link

Workaround:

NOTE: Please click the "Later" option instead of "quit and restart", this might not be obvious in the video due to compression.

@UnknownCrafts Thanks for the temporarily workaround, it works!

@Anastandstealb
Copy link

I also am facing the same issue and later is not working for me

@judge2020
Copy link

andogq's suggestion is what worked for me.

@lwouis lwouis added the macOS 15 macOS 15 Sequoia specific issue label Jul 11, 2024
@lwouis
Copy link
Owner

lwouis commented Jul 11, 2024

Related: #3427

@XicoMontalvao
Copy link

Here I have already tested everything that was said above and it did not work again, neither this nor the Shottr

@pauldvu
Copy link

pauldvu commented Jul 12, 2024

Okay, so I think I kind of figured out why the workaround may not be working for some people. Let me go ahead and share with you some things you can try.

Okay, so the first thing you want to do is reset the consent control prompts, which is different from resetting the privacy and security entry. Rather, ensure that you reset the entire consent prompt.

tccutil reset ScreenCapture com.lwouis.alt-tab-macos && 
tccutil reset Microphone com.lwouis.alt-tab-macos && 
tccutil reset Camera com.lwouis.alt-tab-macos && 
tccutil reset Accessibility com.lwouis.alt-tab-macos

This is important because it will allow you to see the prompts again in order to do the next steps.

image Okay, here. You want to go ahead and open system settings and then add it.

image

Okay. It's at this point, where this is the checkpoint. You want to make sure that you see the screen recording? It's green and set to allowed.

image

Okay. And then after that, you want to go ahead and press, later.

Lastly, you simply want to do that for accessibility.

What's important to note is that you want to make sure. That. You're seeing both go green, essentially. When you're hitting the later button, so you have to reset. your control cassette props hope it helps

@UnknownCrafts
Copy link

Okay, so I think I kind of figured out why the workaround may not be working for some people. Let me go ahead and share with you some things you can try.

Okay, so the first thing you want to do is reset the consent control prompts, which is different from resetting the privacy and security entry. Rather, ensure that you reset the entire consent prompt.

tccutil reset ScreenCapture com.lwouis.alt-tab-macos && 
tccutil reset Microphone com.lwouis.alt-tab-macos && 
tccutil reset Camera com.lwouis.alt-tab-macos && 
tccutil reset Accessibility com.lwouis.alt-tab-macos

This is important because it will allow you to see the prompts again in order to do the next steps.

image Okay, here. You want to go ahead and open system settings and then add it.
image

Okay. It's at this point, where this is the checkpoint. You want to make sure that you see the screen recording? It's green and set to allowed.

image Okay. And then after that, you want to go ahead and press, later.

Lastly, you simply want to do that for accessibility.

What's important to note is that you want to make sure. That. You're seeing both go green, essentially. When you're hitting the later button, so you have to reset. your control cassette props hope it helps

This works perfectly.

@XicoMontalvao
Copy link

Captura de Tela 2024-07-12 às 20 13 00
not

@UnknownCrafts
Copy link

Captura de Tela 2024-07-12 às 20 13 00
not

Just give the accessibility permission again by clicking the button and then it should work perfectly

@YousufSSyed
Copy link

Having this issue as well

@IsaacBraydon
Copy link

Edit: just for extra clarification I am also on MacOS 15 dev beta 3
I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.
Workaround:
video.mp4

Removing + adding back didn't fix it for me. I had to add it without removing it and it fixed itself. Seems more like a MacOS issue though

You can try these steps:

  1. Run AltTab until it showed permission is required.
  2. Switch to the permission settings and disable AltTab's permission that you're troubling with. (Use 'Later' instead of 'Restart&Reopen', and do not remove it from the list right now).
  3. Use Command+Q close AltTab.
  4. Reopen AltTab manually after confirmed AltTab's permission is disabled & not removed from the permission list.
  5. AltTab would still require permission at this run.
  6. REMOVE AltTab's permission from the list & add AltTab again to the list & grant the permission.
  7. AltTab can be used during this login session but you might do it again after restart.
  • Seems like something wrong with Sequoia's permission management system while updated to Beta 3. Apple might repair this after next update.

@engageintellect
Copy link

+1 😢

@HTA86
Copy link

HTA86 commented Jul 14, 2024

Ignore my instructions, please check this: #3477 (comment)

Edit: just for extra clarification I am also on MacOS 15 dev beta 3

I would like to confirm this issue and also give a workaround. Unfortunately the workaround does not persist during restarts but it is still better than not being able to use AltTab, ofc you can redo the steps after each restart.

Workaround:

NOTE: Please click the "Later" option instead of "quit and restart", this might not be obvious in the video due to compression.

video.mp4

Edit: If the workaround does not work then, add AltTab without removing it in the privacy and security settings.

Thank you for sharing the workaround! I can confirm that I am also experiencing the same issue on macOS 15.0 Beta 3. The suggested workaround works for me.

@hahayupgit
Copy link

This worked for me too! Remove AltTab from the list in Screen & System Audio Recording, and close the AltTab warning window. Re-open AltTab, and follow the prompts to give it screen recording permissions in settings. When it says that the program must be quit and re-opened, then click Later and it will work.

+1 had this same issue and this worked! Thank you!

@Bleushift
Copy link

Same issue here. Updated to later Beta on Mac. Unfortunately, none of the suggestions here have worked.

@ThomasWaldmann
Copy link

#3477 (comment) <- this only worked for me after changing the binary to /usr/bin/tccutil.

Otherwise I only got some "Usage: ..." output.

@Larsen2k4
Copy link

Larsen2k4 commented Aug 5, 2024

A little update with Sequoia Beta 5: Apple finally eased the constant nagging on screen permissions by allowing access for one week before asking again. (Works for Alttab and other apps I use)

@danielskowronski
Copy link

This still happens on macOS 15.0 beta 6 (624A5320a) and I have an open FB ticket with them since early July. The issue is both with AltTab spamming macOS API with requests and macOS allowing message storm to annoy users by running any executable calling that API.

Even with the latest change from Apple that introduces 1 month whitelist option, AltTab triggers the same pattern (it doesn't start showing just after AltTab gets launched on login, rather when the computer is in Power Nap or just left with the screen turned off):

AltTab

Anyone who's using macOS Beta should file a feedback ticket with Apple so they get enough system diagnostics to figure out what's allowing this behaviour.

@Larsen2k4
Copy link

Not happening here on Sequoia Beta 6 (PowerNap turned off) - AltTab requests have been completely silent for me after the first allowance.

@danielskowronski
Copy link

After two days, I can confirm that issue seems to be gone after the first allowance.

I have AltTab installed since Sonoma, so it seems that on Sequoia Beta 6 the problem lies only with AltTab being persistent in requesting permission it partially had been granted (and macOS allowing it to annoy user).

@ejbills
Copy link

ejbills commented Sep 9, 2024

I'm guessing that the root cause of this issue is the way AltTab checks if the permission is granted.

AltTab doesn't use the official API for this. Instead it uses a workaround that consist in making a call to another API, and seeing if we get a result. If we don't, we assume that the permission is not granted. If we do, we assume that it is granted.

Hi there @lwouis, DockDoor has a similar permissions page which works on macOS 15 Sequoia without issues
Screenshot 2024-09-09 at 12 56 50 PM
.

Feel free to port the logic to AltTab:
Observable object: https://github.com/ejbills/DockDoor/blob/539ef09e72e0ff24b2bf722704b84523bc4d1f08/DockDoor/Components/PermissionsView/PermissionsChecker.swift#L4
Used in a view: https://github.com/ejbills/DockDoor/blob/539ef09e72e0ff24b2bf722704b84523bc4d1f08/DockDoor/Components/PermissionsView/PermissionsView.swift#L6

Hope this helps. 👍

@lwouis
Copy link
Owner

lwouis commented Sep 9, 2024

Hi @ejbills,

Thank you for sharing your implementation to help us!

I think we use the same exact implementation. In other words, I think yours will suffer from the same problems:

Thank you 🙇

@ejbills
Copy link

ejbills commented Sep 9, 2024

I think we use the same exact implementation. In other words, I think yours will suffer from the same problems:

Oh man... thanks for the heads up! hahaha

@lwouis
Copy link
Owner

lwouis commented Sep 19, 2024

I've updated to Sequoia today, and on first login was greeted with the new dialog:

image

It is confusing because I didn't press to Allow. Yet I could still use AltTab.
On a second launch, I got the dialog again, didn't allow again, and still could use AltTab.
On a third launch, the dialog didn't show up and I could use AltTab.

I don't understand what the message means, and why I can ignore it and still use AltTab. What is the purpose of this dialog?

@lwouis
Copy link
Owner

lwouis commented Sep 19, 2024

I see that Snagit has the same issue They posted this 3 days ago.

DisplayLink posted this, a while ago, confirming that it's not linked to which API is used.

@MannavaVivek
Copy link

Yeah, there are many apps out there that are throwing the same popup. If Apple doesn't want to give them the permission, not much the apps can do on their own

@ejbills
Copy link

ejbills commented Sep 19, 2024

what is the purpose of this dialog?

It happens regardless of which screen recording API you use. You can't get around it.

@lwouis
Copy link
Owner

lwouis commented Sep 19, 2024

Indeed, I got it with Google Chrome doing window sharing with Google Meet.

I'll close this ticket as the beta is over, and it's just now the way things are on macOS. Nothing we can do about it on our side. Apple decides the UX.

@lwouis lwouis closed this as completed Sep 19, 2024
@lwouis lwouis added the unactionable Further action is not possible due to lack of information or support label Sep 19, 2024
@danielskowronski
Copy link

@lwouis so do I get it right that no changes to address this were made between 6.72.0 and 6.73.0 ? I've missed the update of AltTab, but macOS is on latest version - Sequoia 15.1 Beta (24B5070a). Overnight the below happened:

image

I'll bump AltTab, leave the system the same way and let you know if anything changed. I still treat this as issue in both macOS which allows spam (FB ticket is still open_ and AltTab, because of the way how it requests permissions. I have other software which uses the same APIs, and it's able to recognize that consent wasn't given, so it does not re-request it until user goes to system settings and grants it.

@lwouis
Copy link
Owner

lwouis commented Oct 9, 2024

Hi @danielskowronski

Sorry to hear you're facing this issue. I can confirm that v6.73.0 didn't do anything about this. As I mentioned when I closed this issue, it's the new macOS UX. Nothing our app can do about it.

Your screenshot looks pretty crazy. There shouldn't be anything AltTab can do to cause this. Thus I think it's a bug in the Beta you're on. I'm on the public release of Sequoia 15.0 and I've never seen this with any app. All apps now ask this dialog, but only once.

I have other software which uses the same APIs, and it's able to recognize that consent wasn't given, so it does not re-request it until user goes to system settings and grants it.

AltTab is not requested consent. It's not asking for this dialog to show up. MacOS is doing that on their own. AltTab asks permission initially to access. Once you grant permissions, it just does its job. MacOs added its own layer on top of that, and pops its own dialog without AltTab asking for anything. We can't control when it pops and how many dialogs. That's purely on macOS side, unfortunately.

Thank you

@danielskowronski
Copy link

That starts to be an interesting case - it only shows when I'm away from machine and never when I actually trigger AltTab by keyboard. Could you please point me to the line in code which should be triggering this behaviour? It's either some background loop in AltTab or macOS runs periodic checks and triggers this warning.

Maybe it's something about app manifest or package signature? I have bunch of other apps that are actively using "Screen & System Audio Recording" APIs and so far, those requests show only for AltTab (although I'm not sure when I started using AltTab - there's a chance it was on early days of Sequoia and something got stuck in a weird way; BTW - already tried to remove AltTab from settings and re-adding it).

For reference, here are other apps from the same category on my machine - Alfred 5, Bartender, CleanShot X, DDPM, Chrome, Logitech G HUB, PixelSnap, Step Two and TeamViewer Host.

Looking at the latest release notes (https://developer.apple.com/documentation/macos-release-notes/macos-15_1-release-notes#New-Features) it seems like maybe macOS thinks I don't use AltTab often so that's why it shows warning randomly. But to confirm that, someone would need to compile an app that requests ScreenCaptureKit normally and then never does anything with it...

@lwouis
Copy link
Owner

lwouis commented Oct 9, 2024

AltTab takes screenshot of the window anytime it gets notified by macOS that a window was changed. For example, when a window is resized, minimized, title changes, etc. It's not on a timer. It's when a window thumbnail should be refreshed.

@danielskowronski
Copy link

danielskowronski commented Oct 10, 2024

I left my system with VM running overnight and both host (with 7.0.0) and VM (with 6.73.0) experienced the issue yet again, but this time I have crucial hint why system prompt is show for AltTab while it's supposed to be idle in background. It's crashing and forking hard - when I came back, there were 20-30 instances of AltTab.app running and closing system prompt spawned more.

image

Both permissions were "green" before it started crashing and are after restarting app, so it looks like after crash, new instance is not recognized by macOS TCC as legitimate one.

It can be easily reproduced by running VM (I used VirtualBuddy with macOS 15.1 beta 6 and having just AltTab left running for several hours. My host has normal PowerNap settings, but I can rerun this with something in background that would keep it awake.

#3653 seems to describe similar behaviour in 7.0.0 specifically

Edit: can it be related to policy auto-update? It could explain why it only happened on my systems somewhere between midnight and 10 CEST

Edit 2: some weird behaviour that's similar to what was described can be triggered by launching AltTab from some other process (e.g. from Terminal instead of Finder) and also by launching more than one instance at the same time. Especially, launching executable /Applications/AltTab.app/Contents/MacOS/AltTab always shows user didn't consent to recording, while open /Applications/AltTab.app starts properly.

@lwouis
Copy link
Owner

lwouis commented Oct 10, 2024

Hey @danielskowronski,

Thank you for the exhaustive report. It's very useful!

I'm surprised to see all these instances. We have a ticket about multiple instances #1840, however it's for 2-3 instances, when the user inadvertently sets up multiple Login Items for AltTab for instance. It's not AltTab opening itself.

The way AltTab can open itself does exist. It will open a new instance of the same app (same location), then terminate the current instance. You can see implementation here:

func restart() {

When does this happen and why? It happen generally when AltTab has already validated that macOS permissions are granted, then somehow it seems to lose these permissions. This can happen for instance if the user grants permissions, uses AltTab for a while, then decide to remove permissions while AltTab is still open. If that happens, AltTab will restart, and show the permissions screen to let the user know that permissions are required to operate.

Looking at the implementation again, I'm confused how there could be multiple instances. The code clearly creates a new instance, then immediately terminates.

I wonder if perhaps the new macOS dialog prevents termination, if it's open? Maybe it pops up, then AltTab tries to restart, is blocked because this pop-up is open, and then the new instance has the same thing happen, etc?

I don't know how to test this, as the new dialog randomly appears. I don't know of a way to force it to happen.

@lwouis lwouis reopened this Oct 10, 2024
@sinkr
Copy link

sinkr commented Oct 23, 2024

Having the same issue on Sequoia 15.0.1 and have tried everything above to no avail. I get the permissions happy, then the app never loads again.

FWIW, other apps like Jump Desktop Connect and Bartender request similar accesses and they still work, so this feels to be very Alt-Tab related.

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

Hi,

This ticket has become too big, with too many different discussions happening inside.
Furthermore, the issues seem unactionable, and due to macOS.
Finally, they seem to only happen on Beta versions of macOS, which is Apple's responsibility to fix when they break things.

I'll close the ticket for now. Please open a new one if you face an issue on a stable macOS release 👍

Thank you 🙇

@lwouis lwouis closed this as completed Nov 6, 2024
@sinkr
Copy link

sinkr commented Nov 6, 2024

I doubt this will change your mind and I am resolved to having lost the money paid for the license and the lesson learned therein, however I am not on a beta and I am unable to use Alt-Tab consistently across 3 MacBooks all running Sequoia 15.1.

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

I am resolved to having lost the money paid for the license and the lesson learned therein

I don't understand. What are you refering to here?

Your previous post indicates different symptoms than this thread. You seem to face #3819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS 15 macOS 15 Sequoia specific issue unactionable Further action is not possible due to lack of information or support
Projects
None yet
Development

No branches or pull requests