Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action stuck at Warning: vkCreateInstance: Found no drivers! #1136

Closed
morremeyer opened this issue Mar 2, 2024 · 15 comments
Closed

Action stuck at Warning: vkCreateInstance: Found no drivers! #1136

morremeyer opened this issue Mar 2, 2024 · 15 comments
Assignees
Labels
unexpected behavior User expected result, but got another

Comments

@morremeyer
Copy link

morremeyer commented Mar 2, 2024

We're having runs on PRs with this action get stuck with

Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
    at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
    at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

for hours.

It looks like once this error occurs, the action keeps running indefinitely until it will be terminated by GitHub.

See for example:

This started at 2024-02-28T18:50Z with https://github.com/envelope-zero/frontend/actions/runs/8085573515?pr=1550.

I did some research, but could not find anything for this error related to cypress so far.

@MikeMcC399
Copy link
Collaborator

@morremeyer

This does not look like an error caused by the Cypress GitHub Action. There is an identical stack trace on https://askubuntu.com/questions/1477966/using-chromium-with-vulkan which may help you. You might want to try testing with different browsers such as the built-in Electron or Google Chrome instead of Chromium.

In the meantime, I suggest to add a timeout to prevent the job hanging for a long time.

@MikeMcC399 MikeMcC399 added the unexpected behavior User expected result, but got another label Mar 2, 2024
@MikeMcC399 MikeMcC399 self-assigned this Mar 2, 2024
@morremeyer
Copy link
Author

@MikeMcC399 Thanks for the pointers! I'll dig into this and document any findings here in case anyone runs into it in the future.

morremeyer added a commit to envelope-zero/frontend that referenced this issue Mar 2, 2024
To have a shot at fixing cypress-io/github-action#1136, we'll
test with Electron
@morremeyer
Copy link
Author

Since this posed the danger of leading me to the realm of "understanding display drivers", which I do not have desire to explore, I decided to see what happens if I switch the tests to Electron.

Doing so did not get rid of the error message, as can be seen in https://github.com/envelope-zero/frontend/actions/runs/8124771638/job/22206650558?pr=1576, where it occurs once

However, the run does not get stuck when this error pops up.

I'm going to count this as a win.
Thanks @MikeMcC399 for the poke in the right direction!

@roadSurfer
Copy link

roadSurfer commented Mar 5, 2024

We are seeing this when using Cypress 13.6.6 and Electron 118 when running tests within the cypress/browsers:node-18.14.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1 image as part of a GitLab pipeline. The error apperas on ubuntu 22.04 and CentOS 7 Docker hosts.

Another error which may be related only appears on the CentOS hosts:

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

However any hangs are intermittent and I have not been able to pin down what the actual cause is. It might just be coincidence that the message appears around the time of a hang.

Is there any other logging/debugging we should enable?

Edit: I am a pillock, just realised this issue is againt github-action specifically and not the cypress project in general. Apologies for the noise.

@MikeMcC399
Copy link
Collaborator

@roadSurfer

It looks like there are multiple users experiencing an issue with vkCreateInstance, however you say that you are seeing this in a GitLab pipeline.

This is the issue list for the Cypress GitHub JavaScript Action. So problems on GitLab don't belong here.

Can I ask you to please submit a new issue to the main Cypress issue list on https://github.com/cypress-io/cypress/issues ?

Regarding:

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

In my experience this is an error which often shows on headless systems and it can be ignored.

@MikeMcC399
Copy link
Collaborator

@roadSurfer

No problem about being in the wrong issue list! 🙂

@MikeMcC399
Copy link
Collaborator

@morremeyer

Since other users are also reporting this issue and the root cause is still unclear, can I ask you if you are running Cypress in a Docker container or not?

@morremeyer
Copy link
Author

@MikeMcC399 Sure! If the action doesn't use docker under the hood, then no.

This is the configuration we currently use: https://github.com/envelope-zero/frontend/blob/3b4effc9aff0814ccd49b933dfad8c8a1348e26b/.github/workflows/workflow.yml#L67-L84

@MikeMcC399
Copy link
Collaborator

@morremeyer

Many thanks for your confirmation! Hopefully it will soon become clear what is causing this issue!

No, GitHub Actions does not use Docker in any hidden way., only if it is explicitly configured, for instance like the following in a workflow:

    container:
      image: cypress/browsers:latest
      options: --user 1001

@sbrawner
Copy link

sbrawner commented Mar 6, 2024

@morremeyer

Many thanks for your confirmation! Hopefully it will soon become clear what is causing this issue!

No, GitHub Actions does not use Docker in any hidden way., only if it is explicitly configured, for instance like the following in a workflow:

    container:
      image: cypress/browsers:latest
      options: --user 1001

I am using it in docker/kube and am having this exact issue. Backing down a version to see if it still occurs.

@MikeMcC399
Copy link
Collaborator

@sbrawner

Thanks for contributing your experience too! To test if this might be related to the Electron upgrade in cypress@13.6.5 from 25.8.4 to 27.1.3 you might like to try reverting to cypress@13.6.4.

@marcdix
Copy link

marcdix commented Mar 7, 2024

@MikeMcC399 I just googled for the error as I got it when running after updating Cypress to 13.6.6. I downgraded to 13.6.4 as you suggested and the error is gone. Hope this helps to identify the culprit. Thanks for everyones efforts.

@MikeMcC399
Copy link
Collaborator

@marcdix

I downgraded to 13.6.4 as you suggested and the error is gone.

Many thanks for your feedback! I passed that on to other users to try out as well.

@roshnimridha04
Copy link

@MikeMcC399 Is there a plan to resolve this issue in future release of cypress as downgrading version to 13.6.4 works?

@MikeMcC399
Copy link
Collaborator

@roshnimridha04

Is there a plan to resolve this issue in future release of cypress as downgrading version to 13.6.4 works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

6 participants