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

Permission callout shown even though permissions are granted #3801

Open
alt-tab-macos-bot opened this issue Nov 3, 2024 · 25 comments
Open
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue

Comments

@alt-tab-macos-bot
Copy link

This issue was opened by a bot after a user submitted feedback through the in-app form.

From: [email protected]

Message:

I have just uploaded to v7.1.1 and I have a "AltTab is running without Screen Recording permissions. Thumbnails won't show" warning when i click on the dropdown menu.

When I then click on "check permissions", it says "AltTab needs some permissions" HOWEVER, both Accessibility and Screen Recording are both shown as "allowed" in green text.

So the warning is not correct.

Debug profile

  • App version: 7.1.1
  • App preferences:
    • MSAppCenter310AppCenterUserDefaultsMigratedKey: 1
    • MSAppCenter310CrashesUserDefaultsMigratedKey: 1
    • MSAppCenterInstallId: BE250456-F8B5-4153-B5AB-57D0D0CDE1A2
    • MSAppCenterNetworkRequestsAllowed: 0
    • MSAppCenterPastDevices: {length = 1145, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000385 }
    • MSAppCenterSessionIdHistory: {length = 460, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000156 }
    • MSAppCenterUserIdHistory: {length = 455, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000151 }
    • NSNavLastRootDirectory: /Applications
    • NSNavPanelExpandedSizeForOpenMode: {928, 539}
    • NSStatusItem Preferred Position Item-0: 6548
    • NSWindow Frame NSNavPanelAutosaveName: -314 -339 928 539 0 0 2560 1415
    • NSWindow Frame SUUpdateAlert: 970 775 620 398 0 0 2560 1415
    • SUAutomaticallyUpdate: 0
    • SUEnableAutomaticChecks: 0
    • SUHasLaunchedBefore: 1
    • SULastCheckTime: 2024-11-03 10:02:06 +0000
    • SUUpdateRelaunchingMarker: 0
    • alignThumbnails: 0
    • appearanceSize: 0
    • appearanceVisibility: 0
    • blacklist: [{"ignore":"0","bundleIdentifier":"com.McAfee.McAfeeSafariHost","hide":"1"},{"ignore":"0","bundleIdentifier":"com.apple.finder","hide":"2"},{"ignore":"2","bundleIdentifier":"com.microsoft.rdc.macos","hide":"0"},{"ignore":"2","bundleIdentifier":"com.teamviewer.TeamViewer","hide":"0"},{"ignore":"2","bundleIdentifier":"org.virtualbox.app.VirtualBoxVM","hide":"0"},{"ignore":"2","bundleIdentifier":"com.parallels.","hide":"0"},{"ignore":"2","bundleIdentifier":"com.citrix.XenAppViewer","hide":"0"},{"ignore":"2","bundleIdentifier":"com.citrix.receiver.icaviewer.mac","hide":"0"},{"ignore":"2","bundleIdentifier":"com.nicesoftware.dcvviewer","hide":"0"},{"ignore":"2","bundleIdentifier":"com.vmware.fusion","hide":"0"},{"ignore":"2","bundleIdentifier":"com.apple.ScreenSharing","hide":"0"},{"ignore":"2","bundleIdentifier":"com.utmapp.UTM","hide":"0"},{"ignore":"0","bundleIdentifier":"com.highcaffeinecontent.radio","hide":"1"},{"ignore":"0","bundleIdentifier":"com.macpaw.site.theunarchiver","hide":"1"}]
    • crashPolicy: 2
    • hideThumbnails: false
    • holdShortcut: ⌘
    • iconSize: 15
    • maxHeightOnScreen: 72
    • maxWidthOnScreen: 73
    • preferencesVersion: 7.1.1
    • rowsCount: 5
    • showTabsAsWindows: true
    • theme: 0
    • updatePolicy: 0
    • windowMaxWidthInRow: 17
    • windowMinWidthInRow: 17
  • Applications: 84
  • Windows: 6
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: true, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 18446744073709551615, spaceIndex: 9223372036854775807}
    • {isFullscreen: false, isWindowlessApp: true, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 18446744073709551615, spaceIndex: 9223372036854775807}
  • OS version: Version 12.7.6 (Build 21H1320)
  • OS architecture: x86_64
  • Locale: en_GB (current)
  • Spaces: 1
  • Dark mode: Light
  • "Displays have separate Spaces": checked
  • Hardware model: iMac17,1
  • Screens: 1
    • {x: 0.0, y: 0.0, width: 2560.0, height: 1440.0}
  • CPU model: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  • Memory size: 34.36 GB
  • Active CPU count: 8
  • Current CPU frequency: 4.0 Ghz
  • Resource utilization:
    • CPU: 0.1%
    • Memory: 77M+
    • Threads count: 11

@wilky761
Copy link

wilky761 commented Nov 3, 2024

Screenshot 2024-11-03 at 09 58 00

@wilky761
Copy link

wilky761 commented Nov 3, 2024

Screenshot 2024-11-03 at 10 03 59

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Nov 3, 2024
@lwouis
Copy link
Owner

lwouis commented Nov 3, 2024

Hi @wilky761,

I can't reproduce this issue on my side.

It is always happening for you, or just sometimes? Does it remain if you restart AltTab? When you restart your mac?

Thank you 🙇

@lwouis lwouis added the bug Something isn't working label Nov 3, 2024
@lwouis lwouis changed the title [In-app feedback] Permission callout shown even though permissions are granted Nov 3, 2024
@wilky761
Copy link

wilky761 commented Nov 3, 2024

Hi there, thanks for the reply. It's only happened since upgrading to v7.1.1. I've tried restarting the app, and also rebooting my iMac, but I still have the issue......the app works by the way, no problem. I just have this incorrect message about permissions when I click on the app.

Screenshot 2024-11-03 at 19 48 27 Screenshot 2024-11-03 at 19 48 34 Screenshot 2024-11-03 at 19 49 08

@karamfd
Copy link

karamfd commented Nov 3, 2024

I'm seeing the same warning on the latest version. I'm using Mac OS Monterey 12.7.6

@lwouis lwouis added the macOS 12 macOS 12 Monterey specific issue label Nov 3, 2024
@lwouis
Copy link
Owner

lwouis commented Nov 3, 2024

You're both on macOS 12.7.6. It may be specific to that version.

@lwouis
Copy link
Owner

lwouis commented Nov 3, 2024

Could you please run this custom build from Terminal.app and share the logs here?

@houzixiashanxiedaima
Copy link

macOS 13.7.1 has the same issue.

@wilky761
Copy link

wilky761 commented Nov 5, 2024

V7.2.0 has not fixed it. I still have the "without screen recording permissions" message, and when I click on "grant permissions", the app crashes.

@lwouis
Copy link
Owner

lwouis commented Nov 5, 2024

Does it crash or does it just quit? If it crashes, you'll get asked to send a crash report on the next launch. Is it the case? If it is please send the report.

Also could you please share this?

Thank you

@houzixiashanxiedaima
Copy link

houzixiashanxiedaima commented Nov 5, 2024

Hi, I tried the custom build and open from terminal, still get the same issue.
the permission is enabled in system setting, i also tried to re-enabled permission, but not work.
There is no crash, just upgrade from older version from brew.

18:06:24.412 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:24.500 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:24.601 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:24.700 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:24.800 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:24.900 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.000 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.100 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.200 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.300 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.400 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.504 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.603 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.755 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.806 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:25.900 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.000 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.100 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.200 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.302 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.400 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-05 18:06:26.500 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false

@lwouis
Copy link
Owner

lwouis commented Nov 5, 2024

These logs tell us that the fonction screenRecordingIsGranted_ to check permissions returns false.

After the initial launch, and permissions are granted, AltTab will check if permissions are still granted, every 5s. If the permission is not granted, AltTab will restart.

I'm surprised that AltTab is not restarting on your machine. I also don't see logs starting with isHidden, which I added in that build. Perhaps you didn't share them here?

Thank you

@dimitristsilis
Copy link

dimitristsilis commented Nov 5, 2024

I have the same problem in v7.2.0 in MacOS Ventura. The app works normally despite the warning:
Στιγμιότυπο οθόνης 2024-11-05, 1 22 52 μμ
Unrelated, but I just completed the Greek translation of the app. Please include it in the next release.

@houzixiashanxiedaima
Copy link

These logs tell us that the fonction screenRecordingIsGranted_ to check permissions returns false.

After the initial launch, and permissions are granted, AltTab will check if permissions are still granted, every 5s. If the permission is not granted, AltTab will restart.

I'm surprised that AltTab is not restarting on your machine. I also don't see logs starting with isHidden, which I added in that build. Perhaps you didn't share them here?

Thank you

Hi, i tried the custom build again, there is no isHidden print.
When start in Terminal, there is a permission page show, but i already Allowed all required permissions:
iShot_2024-11-06_16 09 11

The full log is
2024-11-06 16:09:11.982 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.081 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.182 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.281 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.381 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.481 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.582 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.682 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.781 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.882 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:12.981 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:13.082 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:13.182 ❤️ ERROR SystemPermissions.swift:19 screenRecordingIsGranted() - false false 2024-11-06 16:09:13.233 ❤️ ERROR PermissionsWindow.swift:31 windowWillClose() - Before using this app, you need to give permission in System Preferences > Security & Privacy > Privacy > Accessibility. Please authorize and re-launch. See https://help.rescuetime.com/article/59-how-do-i-enable-accessibility-permissions-on-mac-osx 2024-11-06 16:09:13.236 ❤️ ERROR PermissionsWindow.swift:31 windowWillClose() - Before using this app, you need to give permission in System Preferences > Security & Privacy > Privacy > Accessibility. Please authorize and re-launch. See https://help.rescuetime.com/article/59-how-do-i-enable-accessibility-permissions-on-mac-osx

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

@houzixiashanxiedaima you need to grant Terminal.app the permissions, if you launch AltTab from the Terminal.

I'm confused. You mentioned that you opened via the Terminal the previous time as well, yet that time, you said that the permission windows was all green, no?

Thank you

@houzixiashanxiedaima
Copy link

@houzixiashanxiedaima you need to grant Terminal.app the permissions, if you launch AltTab from the Terminal.

I'm confused. You mentioned that you opened via the Terminal the previous time as well, yet that time, you said that the permission windows was all green, no?

Thank you

I apologize for the confusion. Let me be more specific:

  • When I open from Terminal, a popup appears indicating that I haven't granted accessibility and screen recorder permissions;
  • When I open by double-clicking, it notifies me that screen recorder permission hasn't been granted, but the functionality works normally;
  • I have already granted both these permissions to AltTab in the system settings.

The one who got all green windows is @wilky761

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

When I open by double-clicking, it notifies me that screen recorder permission hasn't been granted, but the functionality works normally;

Do you mean you see the permission window, or the callout in the menubar menu?

Could you please share a video?

Thank you

@michkozak
Copy link

Experiencing this too. AltTab 7.2.0, macOS Ventura 13.7.1, M1 MacBook Air.

Screenshot 2024-11-06 at 21 40 05

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

Could you please share a video?

Thank you

@michkozak
Copy link

@lwouis I recorded a short 35s video, but unfortunately it's ~100MB, and GitHub won't allow anything bigger than 10MB.

@michkozak
Copy link

@lwouis Here's the video on YouTube.

@lwouis
Copy link
Owner

lwouis commented Nov 7, 2024

Thank you @michkozak! I can't find any clue. Looking at the code, it's a mystery: the same permission check is done to paint the background green as is done to display the purple callout. I can't imagine why it wouldn't be sync'd :/

@michkozak
Copy link

Fortunately, unlike #3819, this one is only a UI bug, everything works as expected :).

@phazei
Copy link

phazei commented Nov 8, 2024

Have you tried removing the app from the permissions and readding it? Not just clicking the slider in the permissions window, but the "-" at the bottom. I recently had a permissions issue like that and doing that helped fix it.

@wilky761
Copy link

wilky761 commented Nov 8, 2024

Have you tried removing the app from the permissions and readding it? Not just clicking the slider in the permissions window, but the "-" at the bottom. I recently had a permissions issue like that and doing that helped fix it.

I tried this, but it didn't work. Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

8 participants