-
Notifications
You must be signed in to change notification settings - Fork 696
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
Error launching app | Electron exited with signal SIGTERM. | Electron exited with code 3489660927. #1515
Comments
It's not a bug in either. You can rule out Fiddle by saving the fiddle to disk and running it directly with Electron and see the same result (via The library you're using, |
How would one go about "catching" the error then? and why does the same code work "as is" in node? |
You can't catch the error, the error is coming from a separate process which is being spawned and failing to start. It works in Node.js because the module was designed for Node.js and is intending to spawn Node.js with the |
Thanks @dsanders11 , I finally understood what you meant: the issue is that ~/testElectron$ ./node_modules/electron/dist/electron -e "console.log('hey')"
Error launching app
Unable to find Electron app at /home/lopezom/testElectron/console.log('hey')
Cannot find module '/home/lopezom/testElectron/console.log('hey')'
Require stack:
- /home/lopezom/testElectron/node_modules/electron/dist/resources/default_app.asar/main.js
- |
I added the following code to the template electron fiddle in
main.js
(complete gist available here) to investigate an issue I am having developing an extension in vscode:Note that the above code works when running through node and the expected output is:
In electron fiddle (0.34.5 in Windows; Electron v27.0.4), the app fails to launch with the following error (pasting as image below, as the text can't be copied from the popup).
The error message starts with "Error launching app" and then complains about being Unable to find Electron app at
C:\Users\myusername\AppData\Local\Temp\electron\electron-fiddle-randomString\
and the following seems to be this code from the xmlhttprequest libraryIn the console, there is no error message, except for either "Electron exited with signal SIGTERM." or "Electron exited with code 3489660927.".
Is this a bug in
electron/fiddle
orelectron/electron
, or am I missing something? As I am testing using fiddle, I am submitting the issue here, but I suspect it might be from electron.The text was updated successfully, but these errors were encountered: