electron-userland / electron-webpack

Scripts and configurations to compile Electron applications using webpack
https://webpack.electron.build/
903 stars 170 forks source link

Segmentation fault on Windows 11 #471

Open danie007 opened 1 year ago

danie007 commented 1 year ago

Error Message

$ electron-webpack dev
error Command failed with exit code 3221225477.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/c/Users/*/AppData/Roaming/npm/yarn: line 14:  1789 Segmentation fault      node "$basedir/node_modules/yarn/bin/yarn.js" "$@"

On win11, I often observe this error while starting our Electron application. When I try this exact code in Ubuntu22.04 it's working perfectly.

On Windows, if I repeat (2 or 3 times) it'll start the app, hence it's occasionally (but frequently) failing.

I use yarn to manage the commands and I'm not sure whether it's an issue with yarn or electron-webpack

Any help would be highly appreciable, thanks in advance.

I've also raised this command on electron repo: https://github.com/electron/electron/issues/35295