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

active-win not working after release #121

Open
thanhnvpk01168 opened this issue Jul 18, 2021 · 5 comments
Open

active-win not working after release #121

thanhnvpk01168 opened this issue Jul 18, 2021 · 5 comments

Comments

@thanhnvpk01168
Copy link

thanhnvpk01168 commented Jul 18, 2021

This is the error when i log in catch

my code:
let result=""
try {
result = await activeWindow()
} catch (error) {
console.log("erorr: ",JSON.stringify(error))
}

error:
{
"killed":false,
"code":null,
"signal":"SIGILL",
"cmd":"/Users/myname/Documents/projecttest/dist/mas/AppTest.app/Contents/Resources/app.asar.unpacked/node_modules/active-win/main",
"stdout":"",
"stderr":""
}

Environment:
macOS Big Sur 11.2.3
electron:11.2.1
node: 14.15.0
active-win: 7.6.0

Can anyone help me urgently?
thanks in advance

@ahmedmukhtar1133
Copy link

ahmedmukhtar1133 commented Aug 10, 2021

@thanhnvpk01168 how fid you fix it? Me also facing the same issue on BigSur but in development environment as well.

@cesarvarela
Copy link

Are you guys using electron forge?

@ahmedmukhtar1133
Copy link

Nope, I'm not using any boilerplate.

@smearumi
Copy link

smearumi commented Nov 9, 2021

I'm facing the same issue. Has anyone already resolved the issue? Best regards.

@ambarvm
Copy link
Contributor

ambarvm commented Dec 8, 2021

This could be due to the app not having the screen recording permission and getting killed by macOS. Does the permission prompt show up in your case?
If not, try manually adding the screen recording permission to the binary active-win/main shown in the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants