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
-
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (4 by maintainers)
Solution:
This has resolved my issue. Hope it will resolve for you guys as well.