cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

ERROR:gpu_memory_buffer_support_x11.cc and vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

Open rahul-adpushup opened this issue 3 years ago • 2 comments
trafficstars

Getting the following error when running the cypress docker container. Screenshot 2022-09-19 at 11 32 57 PM

rahul-adpushup avatar Sep 19 '22 18:09 rahul-adpushup

Same, some of our CI specs are failing today.

FROM public.ecr.aws/cypress-io/cypress/base:16.17.0 and 14.18.1

All tests pass when running locally but consistently fail inside the container. I think our failures are unrelated but have been seeing the same error - maybe a coincidence?

omgaz avatar Sep 20 '22 05:09 omgaz

Getting a similar error. We've been using the cypress/included:10.8.0 image to build but the stack trace is showing errors in /root/.cache/Cypress/10.9.0. Tried updating Cypress in our project to 10.9.0 but no change in the error.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [329:1003/160222.553673:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

ericcmmi avatar Oct 03 '22 16:10 ericcmmi

Getting the same error in our Jenkins pipeline. Cypress 10.6.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[1113631:1029/200143.976854:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

laurentsd avatar Oct 30 '22 15:10 laurentsd

Same issue using cypress/included:10.11.0. Is there an update on this issue?

mschaefer-gresham avatar Nov 01 '22 16:11 mschaefer-gresham

I was also getting the same issue in MacOS running cypress/included:10.11.0.

The issue doesn't happen if you have xquartz setup. After xquartz is setup, you need to add a DISPLAY environment variable mapped to the ip/screen xquartz is listening on (e.g. export DISPLAY=192.168.1.8:0) then also pass that to the docker container as an environment variable when you run it. (e.g. docker run -e DISPLAY ...)

milmarqtan avatar Nov 12 '22 04:11 milmarqtan

is there any update on this? Or a workaround, Currently this is causing our tests on cypress 11 to hang for a very long time after running the ocmmand.

dqiubread avatar Nov 21 '22 15:11 dqiubread

same issue. this should be looked at. latest one that worked was prior to 10.11

poponuts avatar Nov 28 '22 22:11 poponuts

same problem for our app :-(

laurentsd avatar Nov 28 '22 23:11 laurentsd

+1

DesaiHimani avatar Nov 29 '22 20:11 DesaiHimani

Same, some of our CI specs are failing today.

FROM public.ecr.aws/cypress-io/cypress/base:16.17.0 and 14.18.1

All tests pass when running locally but consistently fail inside the container. I think our failures are unrelated but have been seeing the same error - maybe a coincidence?

After doing some research, it seems those messages dont really mean much. I had to log out all the errors by running the following command and it showing me where it was erroring/hanging in the logs DEBUG=cypress:* cypress run --config-file cypress.config.js --spec "cypress/e2e/start.spec.js"

dqiubread avatar Nov 29 '22 20:11 dqiubread

Found this solution which makes the errors go away: https://repo1.dso.mil/platform-one/big-bang/apps/library-charts/gluon/-/issues/7

# Start virtual monitor
export DISPLAY=:1
Xvfb :1 -screen 0 1024x768x16 2>/dev/null &

# After running test, stop virtual monitor
# We probably don't need this since the container will be killed after we run anyways
unset DISPLAY
kill %1

jchi2241 avatar Dec 01 '22 06:12 jchi2241

@vai0 Hi!! Could you tell me where to find this file "Xvfb"?

This extract is from the web that you shared on that link. "To fix this, you can add a virtual monitor with Xvfb (which is a dependency of Cypress):"

Thanks

abdulflorez avatar Dec 13 '22 19:12 abdulflorez

@vai0 Hi!! Could you tell me where to find this file "Xvfb"?

This extract is from the web that you shared on that link. "To fix this, you can add a virtual monitor with Xvfb (which is a dependency of Cypress):"

Thanks

If you’re using the cypress’ docker image it should already exist

jchi2241 avatar Dec 13 '22 19:12 jchi2241

Getting the same error when loading the metamask extension in a docker container. Works locally.

Githiora avatar Dec 21 '22 17:12 Githiora

Any update on this issue? I am using cypress/included:12.3.0 docker image and getting the same error. All my specs are being reported as Pending

====================================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔           sanity_spec.js                  393ms       76        -        -       76        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        393ms       76        -        -       76        -  

I am not sure if this is related to the actual issue but I don't see any other helpful log which I can use to debug this issue.

Note: I am upgrading from Cypress 8 to Cypress 12. Everything works fine on Cypress 8

Thanks

praveentata avatar Feb 06 '23 20:02 praveentata

  • The problem also appears running in GitHub Ubuntu runners. See https://github.com/cypress-io/cypress/issues/25357

MikeMcC399 avatar Feb 09 '23 19:02 MikeMcC399

We're also often getting the same error here, running in CircleCI with Cypress 12.3.0. Is there any update on this?

mkruisman2 avatar Feb 14 '23 16:02 mkruisman2

@mkruisman2

We're also often getting the same error here, running in CircleCI with Cypress 12.3.0. Is there any update on this?

Could you confirm exactly which error message you are getting?

MikeMcC399 avatar Feb 14 '23 16:02 MikeMcC399

@mkruisman2

We're also often getting the same error here, running in CircleCI with Cypress 12.3.0. Is there any update on this?

Could you confirm exactly which error message you are getting?

@MikeMcC399 This is the exact error that I see:

libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[187:0214/151525.172753:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Can't run because you've entered an invalid browser name.

Browser: chrome was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - firefox
 - electron
Can't run because you've entered an invalid browser name.

Browser: chrome was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - firefox
 - electron

Exited with code exit status 1

mkruisman2 avatar Feb 14 '23 16:02 mkruisman2

@mkruisman2

Can't run because you've entered an invalid browser name.

You should probably look at why this is happening. It seems you have chosen to use Chrome, but it is not found.

Generally errors like

libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[187:0214/151525.172753:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

don't stop tests from running.

For the error message

[187:0214/151525.172753:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

I posted a workaround in https://github.com/cypress-io/cypress/issues/25357 to add the environment variable ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu' for GitHub Actions. I'm not familiar with CircleCI, so I don't know if that would be the same syntax there.

MikeMcC399 avatar Feb 14 '23 16:02 MikeMcC399

I am also getting the same error with cypress/included:12.6.0 while running the pipeline on circleci. But this does not fail my tests.

image

MaksuCode avatar Feb 22 '23 00:02 MaksuCode

We're also seeing this whilst using cypress/browsers:node-18.14.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1

image

AJMcKane avatar Feb 27 '23 21:02 AJMcKane

@AJMcKane OT: Where did you get these images cypress/browsers:node-18.14.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1 from? Searching this repo i can't find more recent ones?

tester-at-bmi avatar Mar 09 '23 00:03 tester-at-bmi

@tester-at-bmi

Where did you get these images cypress/browsers:node-18.14.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1 from? Searching this repo i can't find more recent ones?

Check https://hub.docker.com/r/cypress/browsers/tags

image

If you want to follow up about why you can't find it under https://github.com/cypress-io/cypress-docker-images/tree/master/browsers then I suggest you open a new issue.

MikeMcC399 avatar Mar 09 '23 07:03 MikeMcC399

# Start virtual monitor
export DISPLAY=:1
Xvfb :1 -screen 0 1024x768x16 2>/dev/null &

# After running test, stop virtual monitor
# We probably don't need this since the container will be killed after we run anyways
unset DISPLAY
kill %1

I've not been able to get this workaround to work, does anyone have an example they can point me to?

ceddlyburge avatar Apr 28 '23 11:04 ceddlyburge

@ceddlyburge

Have you tried the workaround from https://github.com/cypress-io/cypress-docker-images/issues/747#issuecomment-1430057716?

ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'

MikeMcC399 avatar Apr 28 '23 11:04 MikeMcC399

I have, it also didn't work for me. It's just a snippet though, so I'm wondering if I'm applying it in the right place?

Also, the xvfb solution mentioned (link below) states that disabling the gpu doesn't work, as the error happens before the browser is started: https://repo1.dso.mil/big-bang/product/packages/gluon/-/issues/7

It would be good to look at the config for something that has used a workaround successfully

ceddlyburge avatar Apr 28 '23 12:04 ceddlyburge

@ceddlyburge

It would be good to look at the config for something that has used a workaround successfully

Which version of Cypress are you using? What environment are you running in?

MikeMcC399 avatar Apr 28 '23 12:04 MikeMcC399

HI Mike, I'm using cypress/included:12.4.1. And the tests are written for cypress 12.3.0 Cheers, Cedd

ceddlyburge avatar Apr 28 '23 14:04 ceddlyburge

@ceddlyburge

cypress/included:12.4.1.

Sorry I don't have that online, but maybe somebody else can contribute?

MikeMcC399 avatar Apr 28 '23 14:04 MikeMcC399