question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`mac-screen-capture-permissions` causing Unhandled Promise Rejection

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:13
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
mmeyer724commented, Apr 1, 2022

As 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

3reactions
xstast24commented, Aug 16, 2022

Hi, tested on Macbook Pro 2021 (arm CPU, MacOS Mojave) with Kap 3.5.5 as suggested by @thethomasz:

  • if Rosetta (x86_64 emulator) is NOT installed, Kap raises the exception and doesn’t work at all
  • if Rosetta is installed, Kap works –> Kap is not working on the pure ARM, but it works with the Rosetta emulator “workaround”.

PS: To install Rosetta, run softwareupdate --install-rosetta --agree-to-license

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control access to screen recording on Mac - Apple Support
Choose Apple menu > System Settings, then click Privacy & Security in the sidebar.
Read more >
Node.js v19.3.0 Documentation
If the function does not return a promise, assert.doesNotReject() will return a rejected Promise with an ERR_INVALID_RETURN_VALUE error. In both cases the error...
Read more >
HTMLMediaElement.play() - Web APIs | MDN
Failure to begin playback for any reason, such as permission issues, result in the promise being rejected. Syntax. play()
Read more >
React Native Camera shows blank screen with loading spinner
Unhandled promise rejection : Error: Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity.
Read more >
Camera - Expo Documentation
With the use of Camera , one can also take photos and record videos that are then saved to the app's cache. Morever,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found