-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ERROR adm_helpers.cc Failed to query stereo recording #4351
Comments
I had the same error, Im using the electron browser, its only in the Cl, cypress open runs fine. |
this only happens using 'cypress run', and only within CI (TeamCity used), using electron browser. this script was run from an ECS-task definition into a built docker container (hosted in ECS). I'm also using the parallel and grouping features within this script "ecs": "./node_modules/.bin/cypress run --env configFile=prd --record --key ********* --reporter mocha-spec-json-output-reporter --parallel --group regressionParallel --ci-build-id CI_BUILD_ID" |
|
I think, problem is that CI runs should not have any sound device chosen by default |
I've been getting this error in aws codepipeline (specifically the test step of the acceptance stage of the pipeline, which is a codebuild stage) - another dev set this up, using automated tools, so I'm not sure exactly what information I can glean that would be relevant to you. Often this has been an intermittent failure and simply retrying gets past it. Today, I've hit half a dozen failures in a row. The command which seems to trigger this issue in my context would be:
But delving into docker images and layers in aws codebuildto debug cypress issues isn't my strong point... |
Hi, I'm having a similar problem using Jenkins. The tests run and pass, but all video artifacts are just blank black screens
|
|
Just to confirm that we also started getting these recently
Tests do pass successfully but this spam, as it happens everywhere makes logs rather hard to read We are running Cypress in AWS CodePipeline/CodeBuild |
Also same here and the tests crash the server after the run is finished
|
What website are you testing? Can we have the test code to recreate the problem?
…Sent from my iPhone
On Jun 19, 2019, at 08:15, Ognjen Petrovic ***@***.***> wrote:
Also same here and the tests crash the server after the run is finished
13:45:06 Running: game_page/tournaments.spec.js... (1 of 5)
13:45:10
13:45:10
13:45:10 Testing turnaments section on game page
13:45:30
✓ CT1 - User is not playing tournament (20535ms)
13:45:49 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:45:49 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:45:49 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:45:49 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:45:49 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:45:49 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:45:49 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:45:49 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:45:49 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:45:49 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:45:49 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:45:58 [percy] snapshot taken: 'Testing turnaments section on game page CT2 - User is on position 23 on list and it is marked as You'
13:46:04
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It is a gambling site, all other specs are working fine, I guess the issue is that on this page we load a game in an Iframe and there is a sound on also included. Guess we will have to add dummy audio drivers on the server. On my local machine, all works fine no errors |
Here is the entire log , it is realy simple test just go to page , fixture some data and validate tournament list
|
Same here on Gitlab:
|
Same on drone ci. edit: I left by accident Zendesk plugin enabled and the chat play a sound. I think the error needs to talk better because it is completely not understable this way. |
same on circleci |
Same on Bitbucket Pipelines |
We were able to remove the issue by turning off sound in the application programmatically, after that all is working fine |
I also have the same issue. we use buildkite. and it also caused the test random crash. After I changed the browser to chrome, it solved. no error log and no random crash. |
We see the warnings on
|
I've been able to reproduce the bug in a MWE here I've tested some scenarios:
So it seem that the issue come from an machine misconfiguration error as mentioned by @iegik and I'm really skeptical about if we can really fix it inside cypress project itself. Look more like we need to set some variables inside the CI build configuration before running the tests or maybe just silence the error. EDIT I've lightly changed the solution suggested by @amcooper inside my MWE to integrate it in a single line inside my CI build here. Changes I've made are:
@amcooper into my test inside MWE I do play the video (and so the sound), and still don't see this issue appear. Could you try my fix and tell you still see the error on your last test ? If so, could you please provide some information about the player you use so I'll be able to reproduce your error inside the MWE ? TLDR;
|
Same on AzureDevops. Tests are failing because of this. |
I can confirm that the solution using |
Since this issue is hanging on for a long time now, may I suggest a more "default" fix ? Maybe setting up a default ~/.asoundrc into all the different kitchensink-examples for all the CI configurations examples. That seem like a decent mitigation to me, what do you think of it ? |
I can confirm Avallete's solution works. Running the following script in Jenkins before running the Cypress tests fixed the issue. I also disabled video in the
|
I'm now seeing this in my Gitlab pipeline, but I haven't made any changes in my tests for over a week. If I go back to previous runs it wasn't present but now is |
Can reproduce this issue as well on GitHub Actions, is there any solution in the pipeline? |
For GitHub Actions the workaround in the mentioned comment sort of works... but still gave a couple warnings (fewer though) such as: So instead of using the default configuration from here, I do use the null values suggested in So basically just running Before the cypress github action |
Current behavior:
A few of our users have encountered this message while running Cypress, yet none of them have opened an issue concerning it, so here it is!
Sep 25 2018 21:13
Feb 13 22:19
May 21 19:25
May 30
Errors while running in CI (ECS) and does not issue exit code
Desired behavior:
To issue the proper exit code while running Cypress.
Steps to reproduce: (app code and test code)
Well, this is the question that requires investigating. I don't have more information than this error occurs sometimes.
Versions
Cypress 3.1.0+
Some relevant existing issues?
HELP NEEDED
If you are seeing this error, please help us fix it 😄
cypress run
? Is it only in CI?cypress open
, choose the Electron browser, open DevTools where this error occurs? What is logged here? Please provide.The text was updated successfully, but these errors were encountered: