electron / electron-quick-start

Clone to try a simple Electron app

Home Page:https://electronjs.org/docs/latest/tutorial/quick-start

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exited with signal SIGTRAP

taylortreece opened this issue · comments

Hello, I have tried cloning this repo along with manually following the docs, and I am getting this error when running npm start:

/home/taylor/dev/electron-quick-start/node_modules/electron/dist/electron exited with signal SIGTRAP

I have traced the file only to find that electron within the dist directory is a file that cannot be read by vscode since it is a binary file or something of the sort. Does anyone know what this might be? I have googled around and posted to StackOverflow, but I have no idea how to resolve this. Any guidance would be appreciated. Thanks!

Hi @taylortreece, happy American thanksgiving! 🦃

This might have been a regression found in Electron 16 specifically for Linux: electron/electron#31885

Do you still encounter the bug if you downgrade to Electron 15? You can manually do that in package.json or just check out the 15-x-y branch in this repo.

commented

Hello, I have tried cloning this repo along with manually following the docs, and I am getting this error when running npm start:

/home/taylor/dev/electron-quick-start/node_modules/electron/dist/electron exited with signal SIGTRAP

I have traced the file only to find that electron within the dist directory is a file that cannot be read by vscode since it is a binary file or something of the sort. Does anyone know what this might be? I have googled around and posted to StackOverflow, but I have no idea how to resolve this. Any guidance would be appreciated. Thanks!

1.  Xserver setup ok, for example export DISPLAY=127.0.0.1:0.0
2. start WSL as Administrator.
2.  cd /tmp/electron-quick-start/node_modules/electron/dist
3.  sudo chown root chrome-sandbox
    sudo chmod 4755 chrome-sandbox
4.  npm start
5.  the x-windows should be displayed and some alarms in shell.

electron-app

In my case this was fixed by updating the "main" entry in package.json:

"main": "main.js",