cypress: Windows 10_Getting an error "GPU process launch failed: error_code=18" while trying to open cypress test runner.

Current 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

  1. 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

  2. Cypress 9.3.1 got successfully installed.

  3. Environment variable has been set in the System variables. CYPRESS_RUN_BINARY=C:\Cypress\9.3.1\Cypress\Cypress.exe

  4. npx cypress open

Cypress Version

9.3.1

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

Solution:

  1. Try opening your IDE/git bash in non-admin mode.
  2. Run the command “./node_modules./bin/cypress open”
  3. Click on the feature file which you want to execute.

This has resolved my issue. Hope it will resolve for you guys as well.