Windows render-process-gone launch-failed (exitCode 18) occurs only when running as Administrator
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
37
What operating system(s) are you using?
Windows
Operating System Version
Windows 10 ,Windows 11
What arch are you using?
x64
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
When launching an Electron app with GPU enabled, the render process should start successfully regardless of whether the app is running with normal or administrator privileges.
Actual Behavior
When running the app as Administrator, the render process fails immediately with the following error:
render-process-gone { reason: "launch-failed', exitCode: 18 }
If the same app is run with normal user privileges, it starts correctly.
Testcase Gist URL
No response
Additional Information
Adding the no-sandbox and disable-gpu-sandbox options at startup makes the app work even under Administrator mode. This indicates that the issue is likely related to Electron’s sandbox implementation conflicting with elevated permissions. Not all machines reproduce the issue, only certain Windows configurations with GPU enabled.
Source: electron/electron