-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Crashes when running with Node v14.x or Electron v12.x #103
Comments
It's either a bug in Maybe @johnharden would know. |
though i dont know why, but update package.json of active-in with: |
and if you want to use it in electron , just use electron-rebuild to rebuild it. |
@liuzhengdong2 Thank you for sharing. I was able to build with Electron v12 using this "trick" but the app does not stable. It crashes randomly. Usually in a few seconds. |
Try the latest version: https://github.com/sindresorhus/active-win/releases/tag/v7.0.0 |
Just tried. On the Windows 10 with Electron 12 and active-win 7. The whole app crashes when I try to get activeWindow for the same window more than one time. It shows me the next error
|
I created a small repo that demonstrates the issue - https://github.com/onikienko/electron-active-win-crash |
Experiencing the same issue!
|
I upgraded from Electron 10 to 12 and experienced the same problem. Moved to Electron 11.4.3 now and everything works again. On this occasion, I also upgraded to active-win 7.1 and saw the support for Windows UWP apps for the first time, works great 😍 |
active-win@7.1.0 and node v14.16.1(new install with necessary tool like buildTools)
get a good result:
so it works properly in this way. in my opinion, you maybe miss some buildTools in installation process. |
@liuzhengdong2 let activeWindow = require('./index.js')
console.log(activeWindow.sync())
console.log(activeWindow.sync()) |
I created a small and clean repo to demonstrate this issue on Windows 10 and Node v14 - https://github.com/onikienko/node-active-win-crash |
well, i encouter this problem too in this situation, sorry. |
Experiencing the same here with Node 14.x and Electron 12.x. Did some local tests and the error happens when calling |
I have the same problem node 14.x and electron 12.x |
Package |
Can confirm using |
What does your |
Interesting that this bug not present with Electron 13. It runs the same node.js v14.16. Strange. |
Windows 10
Electron v12.0.1
active-win v6.3.0 (same behavior with active-win v6.2.0)
While running with Electron v11.x everything works fine. But with v12 have next errors:
Possible because of Electron v12 started to use node v14.x. In Electron v11 it was node.js v12.x
The text was updated successfully, but these errors were encountered: