question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress hangs during `cypress open` and `cypress run` after opening browser (4.6.0)

See original GitHub issue

Current behavior:

Running tests hangs.

With cypress run, it times out having never begun the first test.

Screen Shot 2020-05-21 at 9 44 20 PM

With cypress open, the Test Runner browser opens, but the test doesn’t start running for 30+ minutes. It appears blank.

Screen Shot 2020-05-21 at 10 02 11 PM

The culprit seems to be this line. Surrounding it with console.time/timeEnd results in it taking over 30 minutes to run.

Test code to reproduce

This can be seen in the Cypress Dashboard internal tests. Still trying to narrow it down to an easily reproducible (and publicly-postable) case.

Versions

Cypress 4.6.0

Current Workaround

Downgrade to Cypress 4.5.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
flotwigcommented, May 26, 2020

@chrisbreiding is it catastrophic backtracking from the regex? I don’t think you need regexCommentStyle1 according to the spec:

image

https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit

0reactions
cypress-bot[bot]commented, May 26, 2020

Released in 4.7.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v4.7.0, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
Open Cypress via cypress open · Go to Developer Tools -> View App Data · This will take you to the directory in...
Read more >
cypress-io/cypress - Gitter
Anyone running cypress headless using kubernetes ? In my case its picking up 5 feature files to run and after running the first...
Read more >
End-To-End Testing with Cypress - Learn With Jason
So after a while I joined other startups and when I started using Cypress ... Cypress open is the first time you want...
Read more >
cypress: Versions - Openbase
Upgraded the Chromium browser version used during cypress run and when ... The experience when opening a new project via cypress open has...
Read more >
@cypress/request | Yarn - Package Manager
Cypress's fork of a simplified HTTP request client. ... @cypress/request - Simplified HTTP client ... This is a fork of request for use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found