question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Praveentrpcommented, Jul 25, 2022

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.

0reactions
Pradyyy-rgbcommented, Nov 22, 2022

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

Actual behavior: image

image

same error when running with Edge Then opened with Electron

error: image

When I run it with npx cypress open from the admin terminal , It throws Uploading image.png…

I’m not allowed to run it as non admin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
If you're having an issue during installation of Cypress, try removing the contents of the Cypress cache. This will clear out all installed...
Read more >
Jun 2019 - cypress-io/cypress - Gitter
Hi All! I use cypress-tags + cucumber) And I want to run test ... occurred in the main process Uncaught Exception: Error: Failed...
Read more >
Cypress failed to start on Windows - Stack Overflow
Try this npx cypress install --force then use npx cypress open.
Read more >
Running Cypress tests in parallel in GitHub Actions without ...
Making Cypress run in parallel can speed up your build times and help you have more confidence your app works correctly.
Read more >
Cypress Tips and Tricks - Gleb Bahmutov
Read the docs Run Cypress on your own CI Record success and. ... If a client-side error happens while the E2E Cypress test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found