cypress: The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Current behavior
1) Select of Lenguage
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Please search Cypress documentation for possible solutions:
Check if there is a GitHub issue describing this crash:
https://github.com/cypress-io/cypress/issues
Consider opening a new issue.
Platform: linux (Ubuntu - 20.04) Cypress Version: 8.6.0
Desired behavior
run the tests correctly
Test code to reproduce
n/a is private
Cypress Version
8.6.0
Other
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Please search Cypress documentation for possible solutions:
Check if there is a GitHub issue describing this crash:
https://github.com/cypress-io/cypress/issues
Consider opening a new issue.
Platform: linux (Ubuntu - 20.04)
Cypress Version: 8.6.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functional-test@1.0.0 scripts: cypress run
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functional-test@1.0.0 scripts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 27 (3 by maintainers)
Commits related to this issue
- Fix Cypress version because of issue https://github.com/cypress-io/cypress/issues/18464 — committed to tdex-network/tdex-app by deleted user 3 years ago
- Enable video to work around bug in cypress library See GitHub thread for more details https://github.com/cypress-io/cypress/issues/18464 — committed to transcom/mymove by gidjin 2 years ago
- Enable video to work around bug in cypress library See GitHub thread for more details https://github.com/cypress-io/cypress/issues/18464 — committed to transcom/mymove by gidjin 2 years ago
- Roll back to Cypress 8.5.0 There is an issue in version 8.6.0 of cypress that carries into 9.2.1 which is causing the build to fail. Below is a link to the report of the issue. Rolling back until the... — committed to transcom/circleci-docker by gidjin 2 years ago
- Roll back to Cypress 8.5.0 There is an issue in version 8.6.0 of cypress that carries into 9.2.1 which is causing the build to fail. Below is a link to the report of the issue. Rolling back until the... — committed to transcom/mymove by gidjin 2 years ago
- Roll back to Cypress 8.5.0 There is an issue in version 8.6.0 of cypress that carries into 9.2.1 which is causing the build to fail. Below is a link to the report of the issue. Rolling back until the... — committed to transcom/mymove by gidjin 2 years ago
- downgrade cypress to make it work on github actions: https://github.com/cypress-io/cypress/issues/18464 — committed to Robert-Nickel/lightbulb-learning by samuba 2 years ago
- Roll back to Cypress 8.5.0 There is an issue in version 8.6.0 of cypress that carries into 9.2.1 which is causing the build to fail. Below is a link to the report of the issue. Rolling back until the... — committed to transcom/mymove by gidjin 2 years ago
thanks @a11smiles!
--browser chromeworked for me.7.6.0and9.5.0on GitHub Action yes it was previously running electron by defaultI have the same issue for version 12.6.0/12.5.1, this is soo annoying…
Still happens on: Cypress: 10.3.0 Browser: Electron 100 (headless) Node Version: v16.13.2 MacOS: 12.4 M1
Workaround with removing video: false helps.
Dear Cypress guru’s What information do you need to debug and fix this? I can’t upgrade to 8.6.0, 8.7.0 or 9.0.0, all have this crash issue. It happens sometimes, during a test run in between tests, so the run did actually start, and then the test runner just stops
I’m running on Azure Devops and get this log on either of those versions:
Part of the log where this starts:
This log also contains this error, which I think is caused by ubunty virtual machine and has no influence on this crashing, since it has been there before
I got the same error after upgrading to 8.6.0 Downgrading to 8.5.0 fixed the crashes.
I ran Cypress with
DEBUG=cypress:*in mynxrepo, i.e.:Which printed out that the system is
Missing X server or $DISPLAY. Sounds like a quite clear message 😅. Unfortunately, I don’t understand yet why it is missing, since I am installing the dependencies, especiallyxvfb🤔.Due to some “internal” reasons we need to install the NVIDIA drivers (Tesla T4), X11, TurboVNC (for 2D X server) and VirtualGL (for 3D X server) in our
Dockerfile:My feeling is that this installation conflicts with Cypress preventing it from finding/using an x server.
Does maybe someone have an idea to overcome that 💐? Maybe starting
xvfbmanually, like written in the docs?Update
Indeed it looks like we needed to start
TurboVNCmanually with/opt/TurboVNC/bin/vncserver ${DISPLAY}The pipeline is green ✔️ 🎉!
These are the new logs:
I ran into this issue when running cypress 9.5.3 on jenkins using cypress/base:14.17.3 docker image. Deleteing
video: falsefrom cypress.json as @sakulstra said fixed the problem. So weird…Still happening to me with 9.6.0, every single time I exit Cypress runner cleanly on my M1 Mac.
Interestingly enough this may be an issue with Electron, not Cypress, which could be why people are having intermittent issues regardless of what version of Cypress they’re running.
I was getting the same errors for each spec file. I then added ‘–browser chrome’ as a parameter. Now, I only get the error when Cypress first “opens” in my CI pipeline, but all of my spec files run without issue now.
Hmm really @sakulstra . I’ve also set video to true in the mean time… So maybe that then solved it? For me it is good for now, so I will not test this through. But for the future it would be good if cypress heroes would still fix this regression on 8.6.0
btw Lucas, you can limit the slowing down by video recording by adding to your cypress.json { “videoCompression”: false, “videoUploadOnPasses”: false, }
Made a super weird observation on that. Setting
video: trueseems to “solve” the issue for me (slowing down the ci quite a bit though) - very weird as this seems pretty much unrelated.