cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.67k stars 3.16k forks source link

ERROR adm_helpers.cc Failed to query stereo recording #4351

Open jennifer-shehane opened 5 years ago

jennifer-shehane commented 5 years ago

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

Anybody ever see this error [426:0925/144153.978531:ERROR:adm_helpers.cc(62)] Failed to query stereo recording. ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default

https://gitter.im/cypress-io/cypress?at=5baa499c01fb5f4ae11e547d

Feb 13 22:19

Hello. I'm seeing error Failed to query stereo recording - any idea how to fix this?

https://gitter.im/cypress-io/cypress?at=5c643c6f8328315decea88f9

May 21 19:25

Hello. My test run stopped prematurely right after this log message: [4861:0521/124346.631077:ERROR:adm_helpers.cc(62)] Failed to query stereo recording. Can anyone tell me what this is and how to fix it? Tx

https://gitter.im/cypress-io/cypress?at=5ce3f5520ac9852a95168552

May 30

Errors while running in CI (ECS) and does not issue exit code

I've gone to have a look around in the logs and it seems to have blown up here:

Screenshot-2019-05-30-at-10-17-58

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 πŸ˜„

JimLaMarca commented 5 years ago

I had the same error, Im using the electron browser, its only in the Cl, cypress open runs fine.

zitegeist commented 5 years ago

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"

iegik commented 5 years ago
It looks like this is your first time using Cypress: 3.3.1
[15:30:56]  Verifying Cypress can run /home/travis/.cache/Cypress/3.3.1/Cypress [started]
[15:30:57]  Verifying Cypress can run /home/travis/.cache/Cypress/3.3.1/Cypress [completed]
Opening Cypress...
====================================================================================================
  (Run Starting)
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Cypress:    3.3.1                                                                              β”‚
  β”‚ Browser:    Electron 61 (headless)   

...

[7281:0603/153128.566030:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
Build system information
Build language: node_js
Build group: stable
Build dist: trusty
Build id: 114124812
Job id: 205007979
Runtime kernel version: 4.4.0-101-generic
travis-build version: 0a1b60afb
Build image provisioning date and time
Tue Dec  5 19:58:13 UTC 2017
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty
iegik commented 5 years ago

I think, problem is that CI runs should not have any sound device chosen by default

rdm commented 5 years ago

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:

docker-compose -f docker-e2e.yml run --rm --no-deps cypress cypress run

But delving into docker images and layers in aws codebuildto debug cypress issues isn't my strong point...

germyjen commented 5 years ago

Hi, I'm having a similar problem using Jenkins. The tests run and pass, but all video artifacts are just blank black screens


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

  (Run Starting)

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Cypress:    3.2.0                                                                              β”‚
  β”‚ Browser:    Electron 59 (headless)                                                             β”‚
  β”‚ Specs:      3 found (homePage.js, subscribePage.js, subscribePageWorkflow.js)                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
────────────────────────────────────────────────────────────────────────────────────────────────────                                                                                              

  Running: homePage.js...                                                                  (1 of 3) 

  Home Page
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default

    βœ“ Header Subscribe button navigates to Subscribe flow (7636ms)

  1 passing (8s)
Tyki commented 5 years ago

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Cypress:  3.3.1                                                            β”‚
  β”‚ Browser:  Electron 61 (headless)                                           β”‚
  β”‚ Specs:    4 found (test.spec.js… β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
mikkotikkanen commented 5 years ago

Just to confirm that we also started getting these recently

ALSA lib confmisc.c:767:(parse_card) cannot find card '0' 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory 
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory 
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default 
ALSA lib confmisc.c:767:(parse_card) cannot find card '0' 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory 
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name 
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory 
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default

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

OgnjenPetrovic commented 5 years ago

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 
bahmutov commented 5 years ago

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 notifications@github.com 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.

OgnjenPetrovic commented 5 years ago

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

OgnjenPetrovic commented 5 years ago

Here is the entire log , it is realy simple test just go to page , fixture some data and validate tournament list

13:45:06 ================================================================================
13:45:06 
13:45:06   (Run Starting)
13:45:06 
13:45:06   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
13:45:06   β”‚ Cypress:  3.3.1                                                            β”‚
13:45:06   β”‚ Browser:  Electron 61 (headless)                                           β”‚
13:45:06   β”‚ Specs:    5 found (game_page/tournaments.spec.js, landing_page/lobby_game… β”‚
13:45:06   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
13:45:06 
13:45:06 
13:45:06 ────────────────────────────────────────────────────────────────────────────────
13:45:06                                                                                 
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 
    βœ“ CT2 - User is on position 23 on list and it is marked as You (33006ms)
13:46:24 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:46:24 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:46:24 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:46:24 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:46:24 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:46:24 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:46:24 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:46:24 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:46:24 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:46:24 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:46:24 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:46:28 [percy] snapshot taken: 'Testing turnaments section on game page CT3 -  User is on position 59 and it is marked as You'
13:46:41 
    βœ“ CT3 -  User is on position 59 and it is marked as You (37200ms)
13:47:02 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:47:02 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:47:02 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:47:02 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:47:02 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:47:02 ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
13:47:02 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
13:47:02 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
13:47:02 ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
13:47:02 ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
13:47:02 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
13:47:03 We detected that the Chromium Renderer process just crashed.
13:47:03 
13:47:03 This is the equivalent to seeing the 'sad face' when Chrome dies.
13:47:03 
13:47:03 This can happen for a number of different reasons:
13:47:03 
13:47:03 - You wrote an endless loop and you must fix your own code
13:47:03 - There is a memory leak in Cypress (unlikely but possible)
13:47:03 - You are running Docker (there is an easy fix for this: see link below)
13:47:03 - You are running lots of tests on a memory intense application
13:47:03 - You are running in a memory starved VM environment
13:47:03 - There are problems with your GPU / GPU drivers
13:47:03 - There are browser bugs in Chromium
13:47:03 
13:47:03 You can learn more including how to fix Docker here:
13:47:03 
13:47:03 https://on.cypress.io/renderer-process-crashed
13:47:03 
13:47:03   (Results)
13:47:03 
13:47:03   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
13:47:03   β”‚ Tests:        0                             β”‚
13:47:03   β”‚ Passing:      0                             β”‚
13:47:03   β”‚ Failing:      1                             β”‚
13:47:03   β”‚ Pending:      0                             β”‚
13:47:03   β”‚ Skipped:      0                             β”‚
13:47:03   β”‚ Screenshots:  0                             β”‚
13:47:03   β”‚ Video:        true                          β”‚
13:47:03   β”‚ Duration:     0 seconds                     β”‚
13:47:03   β”‚ Spec Ran:     game_page/tournaments.spec.js β”‚
13:47:03   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
13:47:03 
13:47:04 
13:47:04   (Video)
13:47:04 
13:47:04   - Started processing:   Compressing to 32 CRF
13:47:05 [percy] snapshot taken: 'Testing turnaments section on game page CT4 - User is on position larger then 100 and it is marked as You'
13:47:14   - Compression progress:  29%
13:47:24   - Compression progress:  63%
13:47:34   - Compression progress:  95%
13:47:35   - Finished processing:  
Cypress/cypress/videos/game_page/tournaments.spec.js.mp4 (31 seconds)
Undistraction commented 5 years ago

Same here on Gitlab:

[Tue Jun 25 2019 10:34:33 GMT+0000 (UTC)] "GET /static/example-986f22cb655629469901b31ebc890f7d.pdf" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.2.0 Chrome/59.0.3071.115 Electron/1.8.2 Safari/537.36"
[Tue Jun 25 2019 10:34:33 GMT+0000 (UTC)] "GET /static/d/791/path---faqs-21-a-f98-0hjVWnn8LVFg5dP1bOcUohH3U.json" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.2.0 Chrome/59.0.3071.115 Electron/1.8.2 Safari/537.36"
[Tue Jun 25 2019 10:34:33 GMT+0000 (UTC)] "GET /component---src-view-templates-faqs-js-de17e4cb8da2aea47ec6.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.2.0 Chrome/59.0.3071.115 Electron/1.8.2 Safari/537.36"
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
[Tue Jun 25 2019 10:34:33 GMT+0000 (UTC)] "GET /static/d/764/path---accessibility-274-05e-EoYyDLJoIxBWj2YXhQL5dWFHfw.json" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.2.0 Chrome/59.0.3071.115 Electron/1.8.2 Safari/537.36"
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
invasionofsmallcubes commented 5 years ago

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.

ghost commented 5 years ago

same on circleci

luke-hopkins commented 5 years ago

Same on Bitbucket Pipelines

OgnjenPetrovic commented 5 years ago

We were able to remove the issue by turning off sound in the application programmatically, after that all is working fine

lavender21 commented 5 years ago

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.

amcooper commented 4 years ago

We see the warnings on cypress run in CircleCI, on three of the nine files in the suite (warnings from one test file appear below). An attempt to implement this fix was effective, except that one of our tests clicks play buttons on podcast players, and the fix caused that test to fail.

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
avallete commented 4 years ago

I've been able to reproduce the bug in a MWE here

I've tested some scenarios:

  1. cypress:open does not throw the error with Electron 73 on my local Ubuntu Linux machine.
  2. cypress:run does not throw the error with Electron 73 on my local Ubuntu Linux machine.
  3. cypress:run does throw the error inside the Travis CI build with the Ubuntu image.

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:

  1. Using .asoundrc instead of /etc/asound.conf global system file. That way, we can do the change without being the root user and just add one line before the tests inside your CI.
  2. Instead of setting the soundcard to 'null', I've used default a configuration found here.

@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;

# Execute this command before running cypress:run
echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
AlirezaInGitHub commented 4 years ago

Same on AzureDevops. Tests are failing because of this.

radimklaska commented 4 years ago

I can confirm that the solution using ~/.asoundrc from https://github.com/cypress-io/cypress/issues/4351#issuecomment-559489091 works great on Jenkins. Thank you!

avallete commented 4 years ago

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 ?

malmyros commented 3 years ago

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 cypress.json configuration file.

echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
Michael-Robson commented 3 years ago

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

nitzanashi commented 2 years ago

Can reproduce this issue as well on GitHub Actions, is there any solution in the pipeline?

a8trejo commented 2 years ago

For GitHub Actions the workaround in the mentioned comment sort of works... but still gave a couple warnings (fewer though) such as: [5136:0411/210532.071893:ERROR:alsa_util.cc(204)] PcmOpen: default,No such file or directory [5136:0411/210532.071944:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,No such file or directory

So instead of using the default configuration from here, I do use the null values suggested in here

So basically just running echo -e 'pcm.!default {\n type plug\n slave.pcm "null"\n}' > ~/.asoundrc

Before the cypress github action