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

ERROR adm_helpers.cc Failed to query stereo recording #4351

Open
jennifer-shehane opened this issue May 31, 2019 · 27 comments
Open

ERROR adm_helpers.cc Failed to query stereo recording #4351

jennifer-shehane opened this issue May 31, 2019 · 27 comments
Labels
prevent-stale mark an issue so it is ignored by stale[bot] type: bug

Comments

@jennifer-shehane
Copy link
Member

jennifer-shehane commented May 31, 2019

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 😄

  • What OS/environment are you running this in? Is it only during cypress run? Is it only in CI?
  • Can you provide more information on what test code you ran exactly when this happened? Does it happen in the same spot each time?
  • Can you run your tests with cypress open, choose the Electron browser, open DevTools where this error occurs? What is logged here? Please provide.
  • Could you run Cypress in debug mode mode and print the logs here?
@jennifer-shehane jennifer-shehane added type: bug help wanted stage: needs information Not enough info to reproduce the issue labels May 31, 2019
@JimLaMarca
Copy link

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

@zitegeist
Copy link

zitegeist commented Jun 4, 2019

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
Copy link

iegik commented Jun 4, 2019

  • cypress run
  • same spot
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
Copy link

iegik commented Jun 4, 2019

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

@rdm
Copy link

rdm commented Jun 4, 2019

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
Copy link

germyjen commented Jun 6, 2019

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
Copy link

Tyki commented Jun 13, 2019


  ┌────────────────────────────────────────────────────────────────────────────┐
  │ 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
Copy link

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
Copy link

OgnjenPetrovic commented Jun 19, 2019

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
Copy link
Contributor

bahmutov commented Jun 19, 2019 via email

@OgnjenPetrovic
Copy link

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
Copy link

OgnjenPetrovic commented Jun 19, 2019

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
Copy link

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
Copy link

invasionofsmallcubes commented Jul 19, 2019

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
Copy link

ghost commented Jul 25, 2019

same on circleci

@luke-hopkins
Copy link

Same on Bitbucket Pipelines

@OgnjenPetrovic
Copy link

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

@lavender21
Copy link

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
Copy link

amcooper commented Oct 4, 2019

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
Copy link
Contributor

avallete commented Nov 28, 2019

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
Copy link

Same on AzureDevops. Tests are failing because of this.

@radimklaska
Copy link

I can confirm that the solution using ~/.asoundrc from #4351 (comment) works great on Jenkins. Thank you!

@avallete
Copy link
Contributor

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
Copy link

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
Copy link

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

lieut-data added a commit to mattermost/mattermost-plugin-playbooks that referenced this issue Jul 14, 2021
@nitzanashi
Copy link

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

@a8trejo
Copy link

a8trejo commented Apr 13, 2022

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

@cypress-bot cypress-bot bot added stage: icebox and removed stage: needs information Not enough info to reproduce the issue labels Apr 28, 2022
@nagash77 nagash77 added the prevent-stale mark an issue so it is ignored by stale[bot] label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prevent-stale mark an issue so it is ignored by stale[bot] type: bug
Projects
None yet
Development

No branches or pull requests