Windows 10_Getting an error "GPU process launch failed: error_code=18" while trying to open cypress test runner.
See original GitHub issueCurrent behavior
Console log: `Note: You have set the environment variable:
CYPRESS_RUN_BINARY=C:\Cypress\9.3.1\Cypress\Cypress.exe
This overrides the default Cypress binary path used.
Found binary version 9.1.0 installed in C:\Cypress\9.3.1\Cypress`
!! Warning: Binary version 9.1.0 does not match the expected package version 9.3.1
These versions may not work properly together.
It looks like this is your first time using Cypress: 9.1.0
Verified Cypress! C:\Cypress\9.3.1\Cypress
Opening Cypress…
[22552:0126/205620.709:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.725:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.742:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.758:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.772:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.799:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.712:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.788:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205620.793:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18 [22552:0126/205628.793:FATAL:gpu_data_manager_impl_private.cc(417)] GPU process isn’t usable. Goodbye.
Desired behavior
Cypress test runner should be successfully open.
Test code to reproduce
-
To install the cypress latest version using the below command. (As GitHub has been blocked on-premise, we are using the below command for the installation) CYPRESS_INSTALL_BINARY=‘C:/CypressInstallables/cypress-win-9.1.0.zip’ CYPRESS_CACHE_FOLDER=‘C:/Cypress’ npm i cypress --sev-dev
-
Cypress 9.3.1 got successfully installed.
-
Environment variable has been set in the System variables. CYPRESS_RUN_BINARY=C:\Cypress\9.3.1\Cypress\Cypress.exe
-
npx cypress open
Cypress Version
9.3.1
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (2 by maintainers)
Top GitHub Comments
Solution:
This has resolved my issue. Hope it will resolve for you guys as well.
Hello everyone, I have been facing the exact same issue as mentioned above,
Spec: Laptop:Microsoft surface and with every browser it has shown different kind of error, Cypress 9.5.3 installed not from web Env variable: Name: ELECTRON_EXTRA_LAUNCH_ARGS, Value: --disable-gpu-sandbox npx cypress run Name: NVM_HOME, Value: c:/users/username/AppData/Roaming/nvm System variable: HTTP_Proxy, value: ‘proxy set’ with port 8080
When I open the runner with
./node_modules./bin/cypress open
on an admin git bash it open the runner successfully Then I select my browser as chrome And I click on the action.spec.jsActual behavior:
same error when running with Edge Then opened with Electron
error:
When I run it with
npx cypress open
from the admin terminal , It throwsI’m not allowed to run it as non admin