Kap: `mac-screen-capture-permissions` causing Unhandled Promise Rejection
Sentry Issue: KAP-BPC
macOS version: Monterey (12) Kap version: 3.5.3
Unhandled Promise Rejection
Error: Command failed: /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/mac-screen-capture-permissions/screen-capture-permissions
spawnSync /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/mac-screen-capture-permissions/screen-capture-permissions Unknown system error -86
at Function.module.exports.sync (/Applications/Kap.app/Contents/Resources/app.asar/node_modules/mac-screen-capture-permissions/node_modules/execa/index.js:168:25)
at exports.hasScreenCapturePermission (/Applications/Kap.app/Contents/Resources/app.asar/node_modules/mac-screen-capture-permissions/index.js:27:25)
at ensureScreenCapturePermissions (/Applications/Kap.app/Contents/Resources/app.asar/dist-js/common/system-permissions.js:64:23)
at /Applications/Kap.app/Contents/Resources/app.asar/dist-js/index.js:102:65
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 21
- Comments: 19 (3 by maintainers)
Commits related to this issue
- #1095 Update mac-screen-capture-permissions to 2.0.0 — committed to thethomasz/Kap by thethomasz 2 years ago
- #1095 Use different library for screen capture permission — committed to thethomasz/Kap by thethomasz 2 years ago
- #1095 Remember if Kap has already asked for screen capture permissions — committed to thethomasz/Kap by thethomasz 2 years ago
- #1095 Show fallback prompt if already asked for screen cap permissions — committed to thethomasz/Kap by thethomasz 2 years ago
- #1095 Show fallback prompt if already asked for screen cap permissions — committed to thethomasz/Kap by thethomasz 2 years ago
- #1095 Show fallback prompt if already asked for screen cap permissions — committed to thethomasz/Kap by thethomasz 2 years ago
Hi, tested on Macbook Pro 2021 (arm CPU, MacOS Mojave) with Kap 3.5.5 as suggested by @thethomasz:
PS: To install Rosetta, run
softwareupdate --install-rosetta --agree-to-licenseAs a troubleshooting step I tried manually granting Kap screen recording access (System Prefs -> Security -> Screen Recording -> Click ‘+’ and add Kap.app), but that did not help unfortunately
I’m running macOS 12.3 on an M1 Pro MacBook
Any chance of getting a fix for this for Macs without Rosetta installed?
I did two things and the error went away:
This error also occurs for me
UPDATE (25.09.23): For me the issue is resolved. I’m currently on
I ran into this after upgrading from Big Sur to Monterey on an Intel MacBook. I was eventually able to get things working after trying the following a few times:
When the System Preferences
Privacydialogue came up, I pressed-to remove Kap. I then clicked+to add/Applications/Kap.app. Quit Kap & re-open. I tried variations of this a few times and it didn’t work… so your mileage may vary!Also, the Kap issue tracker has a bunch of seemingly duplicate issues related to this problem.
I’m still seeing this on macOS 12.4 on an M1 computer. I tried a full reinstall, and also manually adding the screen recording permissions for Kap, but no luck. This machine currently does not have Rosetta installed, which could possibly be a factor (another machine with the same specs that does have Roesetta installed is not having this problem).