electron: [Bug]: GPU process launch failed when running from network share

Preflight Checklist

Electron Version

37.2.0

What operating system are you using?

(tested on) Windows

Operating System Version

(tested on) Windows 10 22H2 and Windows 11

What arch are you using?

x64

Last Known Working Electron version

13.6.9

Expected Behavior

The GPU process launch error should not appear and the electron gui should open.

Actual Behavior

When I run an electron program after version 13.6.9 from a mapped network share my electron app doesn’t open and I get this error:

> electronversiontest@1.0.0 start
> electron .


[7896:0624/150429.768:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150429.910:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150429.919:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150429.925:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150429.960:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150429.969:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150430.051:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150430.080:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150430.082:ERROR:gpu_process_host.cc(996)] GPU process launch failed: error_code=18
[7896:0624/150430.082:FATAL:gpu_data_manager_impl_private.cc(449)] GPU process isn't usable. Goodbye.

The error does not appear if I run the exact same project from my local system drive (C:).

Testcase Gist URL

No response

Additional Information

The error does not appear when running electron with the --no-sandbox flag and the electron app opens.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 15
  • Comments: 26 (1 by maintainers)

Most upvoted comments

This affects us, too. --no-sandbox is not an option for production environments.

Currently we cannot build a portable client with an electron version above 13.6.9 but on the other hand some corporate firewalls start blocking clients with old versions of chromium (like in electron 13.6.9 which includes chromium 91.0.4472.164, released July 2021).

So any improvement on this issue would be highly appreceated.

Created and ran the project on a network drive, which caused this error. I ran --in-process-gpu using app.commandLine.appendSwitch("--in-process-gpu"); at the top of my file, and the window opened but it was blank. I tried --no-sandbox and it worked fine, but there are some reasons not to deactivate the sandbox. I moved my project to my local drive, and it worked without any command line additions

help!!!

It’s failed launch for me please get it fixed i have tried multiple times to get it to work.