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

Cypress hung up trying to run a spec - won't resolve #17627

Closed
ccannawright opened this issue Aug 5, 2021 · 89 comments · Fixed by #23001
Closed

Cypress hung up trying to run a spec - won't resolve #17627

ccannawright opened this issue Aug 5, 2021 · 89 comments · Fixed by #23001
Assignees

Comments

@ccannawright
Copy link

ccannawright commented Aug 5, 2021

Current behavior

Can't reproduce this locally - but intermittently when running specs via circleci (so far 50% of the time) - one of the specs (never the same one), spins causing circleci to timeout. When I look at the run in the Cypress dashboard it shows all the rest of the specs have passed except for that one and it's just constantly saying it is running - but shows no test results. https://dashboard.cypress.io/projects/zb7814/runs/1686/overview is an example. When I rerun the tests they all pass again so it looks like there's an issue with the cypress runner. This just started happening when we upgraded to 8 - specifically 8.2

The error from circleci is:

ERR_TIMED_OUT (-7) loading '<specUrl>'
Error: ERR_TIMED_OUT (-7) loading '<specUrl>
    at rejectAndCleanup (electron/js2c/browser_init.js:217:1457)
    at Object.failListener (electron/js2c/browser_init.js:217:1670)
    at Object.emit (events.js:315:20)

After saying it was still running for several hours on the Cypress dashboard - it finally stopped and showed this error message:
"The run started, but never completed. This can happen when the run is canceled from CI or when Cypress crashes during running tests.

Check your CircleCI #557d91f7-1bed-4c21-9f3c-9a4850bc64ad logs for more information. Archive this run to remove it from the runs list and analytics."

Desired behavior

Cypress not to get hung up

Test code to reproduce

Since it fails on a different spec each time, it doesn't seem to be related to actual test code

Cypress Version

8.2.0

Other

No response

@jennifer-shehane
Copy link
Member

Runs automatically cancel after 1.5 hours of not getting a signal from CI for the current run.

Could you run Cypress in debug mode mode and print the entire set of logs here for a hanging spec?

I can't directly see any relation to 8.2.0 knowing what's in there. Were there any other changes made to your code/app/CI settings?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Aug 6, 2021
@rbayliss
Copy link

We've also started seeing this very sporadically since upgrading from 8.0.0 -> 8.2.0. I've seen it 2x in ~50 runs, so it's definitely not something I can reliably replicate yet.

@ccannawright
Copy link
Author

debug mode seems to only work locally, not in circleci where I'm seeing the issue

@baviereteam
Copy link

I have noticed the same problem on my attempt to upgrade to 8.2.0, on 100% of my 8.2.0 builds on Jenkins (but not always on the same spec). The time between starting Cypress and the failure happening isn't consistent (ranges from 5 to 15 minutes).
No problems on 8.0.0. The same test run also executes correctly with 8.2.0 on my own (Windows 10) computer.
However, when I enable debug mode (with DEBUG=*), I can't reproduce it anymore and the whole test run passes.

Is there something else I can look into to help identify the cause of this problem?

@danmaftei
Copy link

Some more notes:

  • We're on Cypress 7.6.0
  • It occurs very rarely (twice out of hundreds of runs)
  • The timeout happens about a minute after Cypress logs "Running: <spec.js>"
  • Has only happened on the first spec of the test suite, and after the timeout, no more tests are run and the cypress run --config video=true command exits with exit code 1

@sergeikabuldzhanov
Copy link

Seeing a lot more occurrences of this error after upgrading from 8.2.0 to 8.3.0. Affected almost every run.

@gbparada28
Copy link

We're having this exact same issue when running in CI after upgrading from 6.6.0 to 8.0.0. Tried upgrading further to 8.3.0 but the problem remains. The weird part is that the issue seems to not happen when we run with the debug mode. Normally it occurs almost every run. Some of the plugins we're using are cypress-cucumber-preprocessor and cypress-visual-regression if the information would be of any use.

@rbayliss
Copy link

I can confirm the fact that it doesn't seem to happen with debug mode enabled (tried a dozen or so test runs). We do not use cypress-cucumber-preprocessor or cypress-visual-regression plugins.

@gbparada28
Copy link

We found a workaround. Could not reproduce the problem anymore after disabling video recording (setting "video": false in cypress.json). But unfortunately we have no more info than this about the problem.

@joelmeiller
Copy link

The Error happens in our Azure Pipeline as well (Cypress 8.3.1).
Trying now to disable video and see if that does the trick. Thanks for the hint! 🙌🏻

@verheyenkoen
Copy link
Contributor

verheyenkoen commented Sep 3, 2021

Noticed the same on GitHub Action runs. Failed at the same point (while loading our catalog/services.spec.js file) 5 or 6 times in the last 10 days, however some test runs also completed successfully within that period.

Failing GitHub Action run
Raw log

@pyttroll
Copy link

pyttroll commented Sep 9, 2021

Random tests have been failing with the same ERR_TIMED_OUT error for the last 3 weeks.
Our test suite has 88 tests, parallelized on 6 machines.
Note that this only happen to 1 random spec per run, we always get 87 successes and one time out, but the spec timing out randomly changes.

@pyttroll
Copy link

pyttroll commented Sep 9, 2021

We found a workaround. Could not reproduce the problem anymore after disabling video recording (setting "video": false in cypress.json). But unfortunately we have no more info than this about the problem.

Disabling videos did not work for us.

@rebel-l
Copy link

rebel-l commented Sep 23, 2021

We can reproduce this issue on every run with Cypress 8.2.0 and above. As already mentioned in #17998 we use Jenkins with Docker running on image cypress/base:14.17.0.

Maybe someone is able to get more out of the debug log? What I see is that every test scenario ends with cypress:server:browsers killing browser process (line 1), followed by cypress:server:browsers browser process killed (line 5). As the next test scenario starts cypress:server:browsers browsers.kill called with no active instance (line 20) appears and then it crashes. But that seems to be the case for every other test scenario running before.

[2021-09-23T10:44:17.081Z]   cypress:server:browsers killing browser process +2m
[2021-09-23T10:44:17.081Z]   cypress:server:preprocessor removeFile /home/ubuntu/workspace/e2e_DPX-160203/cypress/integration/Doozer2.0/LIVE/30352 - Availability - Contractor is not available in six weeks but is already selected in a draft order.feature +2m
[2021-09-23T10:44:17.081Z]   cypress:server:preprocessor base emitter plugin close event +0ms
[2021-09-23T10:44:17.081Z]   cypress:server:preprocessor base emitter native close event +0ms
[2021-09-23T10:44:17.081Z]   cypress:server:browsers browser process killed +1ms
[2021-09-23T10:44:17.081Z] 
[2021-09-23T10:44:17.081Z]   (Video)
[2021-09-23T10:44:17.081Z] 
[2021-09-23T10:44:17.081Z]   -  Started processing:  Compressing to 30 CRF                                                     
[2021-09-23T10:44:27.028Z]   -  Finished processing: /home/ubuntu/workspace/e2e_DPX-160203/cypress/videos/LIVE/3    (9 seconds)
[2021-09-23T10:44:27.028Z]                           0352 - Availability - Contractor is not available in six we               
[2021-09-23T10:44:27.028Z]                           eks but is already selected in a draft order.feature.mp4                  
[2021-09-23T10:44:27.028Z] 
[2021-09-23T10:44:27.028Z] 
[2021-09-23T10:44:27.028Z] ────────────────────────────────────────────────────────────────────────────────────────────────────
[2021-09-23T10:44:27.028Z]                                                                                                     
[2021-09-23T10:44:27.028Z]   Running:  LIVE/30353 - Availability - Contractor sets non-availability for the         (90 of 276)
[2021-09-23T10:44:27.028Z]              next two weeks, then receives a supplement request.feature                             
[2021-09-23T10:44:27.028Z]   cypress:network:cors Parsed URL { port: '443', tld: 'it', domain: 'doozer' } +12s
[2021-09-23T10:44:27.028Z]   cypress:server:browsers browsers.kill called with no active instance +10s
[2021-09-23T10:44:27.028Z]   cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } } +1ms
[2021-09-23T10:44:27.028Z]   cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } +0ms
[2021-09-23T10:44:59.045Z]   cypress:server:cypress exiting with err Error: ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/30353%20-%20Availability%20-%20Contractor%20sets%20non-availability%20for%20the%20next%20two%20weeks,%20then%20receives%20a%20supplement%20request.feature'
[2021-09-23T10:44:59.045Z]     at rejectAndCleanup (electron/js2c/browser_init.js:213:985)
[2021-09-23T10:44:59.045Z]     at Object.failListener (electron/js2c/browser_init.js:213:1198)
[2021-09-23T10:44:59.045Z]     at Object.emit (events.js:315:20)
[2021-09-23T10:44:59.045Z]  {
[2021-09-23T10:44:59.045Z]   errno: -7,
[2021-09-23T10:44:59.045Z]   code: 'ERR_TIMED_OUT',
[2021-09-23T10:44:59.045Z]   url: 'https://stage.doozer.it/__/#/tests/integration/LIVE/30353%20-%20Availability%20-%20Contractor%20sets%20non-availability%20for%20the%20next%20two%20weeks,%20then%20receives%20a%20supplement%20request.feature'
[2021-09-23T10:44:59.045Z] } +2h
[2021-09-23T10:44:59.045Z] ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/30353%20-%20Availability%20-%20Contractor%20sets%20non-availability%20for%20the%20next%20two%20weeks,%20then%20receives%20a%20supplement%20request.feature'
[2021-09-23T10:44:59.045Z] Error: ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/30353%20-%20Availability%20-%20Contractor%20sets%20non-availability%20for%20the%20next%20two%20weeks,%20then%20receives%20a%20supplement%20request.feature'

@haworku
Copy link

haworku commented Sep 23, 2021

We have seen this issue as well and it disturbed our CI flow in Github Actions. We had one day last week where every PR, even on multiple reruns, was hitting this. Before that, it happened only occasionally for a period of about a week and half leading up.

A few things we tried:

  • disabling the video - did not seem to help.
  • pinning cypress version down or up (most recent) - did not appear to help. Tried a few variations of this.
  • pinning cypress github action version down (so using a specific version instead of the general uses: cypress-io/github-action@v2 in our github workflow) - did not appear to help.
  • adding Cypress debug logs to our runs (DEBUG: 'cypress:*') - appeared to resolve the issue. Will update if the issue happens again but for several days now we haven't seen a recurrence. This follows what @baviereteam and @gbparada28 reported. Did confirm the issue seemed to stop but that removing the DEBUG environment again causes the error again.
Running:  workflow/submissionForm/submission.spec.ts                     (11 of 12)
ERR_TIMED_OUT (-7) loading 'https://xxxxxxx.cloudfront.net/__/#/tests/integration/workflow/submissionForm/submission.spec.ts'
Error: ERR_TIMED_OUT (-7) loading 'https://xxxxxxxxx.net/__/#/tests/integration/workflow/submissionForm/submission.spec.ts'
    at rejectAndCleanup (electron/js2c/browser_init.js:213:985)
    at Object.failListener (electron/js2c/browser_init.js:213:1198)
    at Object.emit (events.js:315:20)

Test run failed, code 1
More information might be available above
Cypress module has returned the following error message:
Could not find Cypress test run results
Error: Could not find Cypress test run results

@verheyenkoen
Copy link
Contributor

I noticed this failing on almost every scheduled GitHub Action run last week for one project but since about a day of four it is working again consistently. Was the problem on the dashboard end maybe?

@rebel-l
Copy link

rebel-l commented Sep 24, 2021

I've looked again on our logs to find a solution or at least a workaround as this issue blocks us from upgrading. I share here a log of one test (as an example of many others) where everything works as expected. The steps are usually executed in ~700ms:

  1. cypress:server:browsers getBrowserLauncher
  2. cypress:server:browsers opening browser
  3. cypress:network:connect (3 times) => my guess it's the network proxy to intercept()with, alsways running on port 37737
  4. cypress:server:browsers browser opened
  5. cypress:network:connect successfully connected
[2021-09-23T10:26:54.369Z]   cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } } +0ms
[2021-09-23T10:26:54.370Z]   cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } +0ms
[2021-09-23T10:26:54.370Z]   cypress:network:connect successfully connected { opts: { port: 37737, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 } +6s
[2021-09-23T10:26:54.370Z]   cypress:network:connect successfully connected { opts: { port: 37737, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 } +30ms
[2021-09-23T10:26:54.929Z]   cypress:network:connect successfully connected { opts: { port: 37737, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 } +579ms
[2021-09-23T10:26:54.929Z]   cypress:server:browsers browser opened +675ms
[2021-09-23T10:26:55.186Z]   cypress:network:connect successfully connected { opts: { port: 37737, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 } +133ms

If I compare it to the test where it fails:

  1. cypress:server:browsers getBrowserLauncher
  2. cypress:server:browsers opening browser
  3. cypress:server:cypress exiting with err Error: ERR_TIMED_OUT

My guess would be that Electron wasn't able to start within 30sec, but can it also be that the proxy is not ready in time? Free memory is is still enough, also free disk space. CPU is also not more than 30%.
Second question I have: Does anybody know if the TIMEOUT from step 3 could be increased? (but my guess it won't help anyway).

[2021-09-23T10:44:27.028Z]   cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } } +1ms
[2021-09-23T10:44:27.028Z]   cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } +0ms
[2021-09-23T10:44:59.045Z]   cypress:server:cypress exiting with err Error: ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/30353%20-%20Availability%20-%20Contractor%20sets%20non-availability%20for%20the%20next%20two%20weeks,%20then%20receives%20a%20supplement%20request.feature'

@rebel-l
Copy link

rebel-l commented Sep 28, 2021

Ok I did around 30 rund and only 3 have been successful. The last successful run was with Cypress 8.4.1. What worked in these 3 successful runs:

  1. use parameter DEBUG="cypress:*
  2. turn video capture off in cypress.json => "video": false
  3. turn video capture on in cypress.json => "video": true && use parameter DEBUG="cypress:server:browsers,cypress:server:video"

What I see in the logs on usual start of a test is the following:

[2021-09-24T16:37:11.714Z]   cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:plugins plugin event registered? { event: 'before:browser:launch', isRegistered: false } +18ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: 'ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers' } +2ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libavutil      56. 24.101 / 56. 24.101' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libavcodec     58. 42.100 / 58. 42.100' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libavformat    58. 24.100 / 58. 24.100' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libavdevice    58.  6.101 / 58.  6.101' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libavfilter     7. 46.101 /  7. 46.101' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libswscale      5.  4.100 /  5.  4.100' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libswresample   3.  4.100 /  3.  4.100' } +0ms
[2021-09-24T16:37:11.714Z]   cypress:server:video capture stderr log { message: '  libpostproc    55.  4.100 / 55.  4.100' } +0ms
[2021-09-24T16:37:12.273Z]   cypress:server:socket-base socket connected +3s
[2021-09-24T16:37:12.273Z]   cypress:server:browsers browser opened +671ms

At the point where it crashes it does the following:

[2021-09-24T16:37:43.230Z]   cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '91.0.4472.164', path: '', majorVersion: 91, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.', isHeadless: true, isHeaded: false } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:plugins plugin event registered? { event: 'before:browser:launch', isRegistered: false } +15ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: 'ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers' } +3ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516' } +1ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libavutil      56. 24.101 / 56. 24.101' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libavcodec     58. 42.100 / 58. 42.100' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libavformat    58. 24.100 / 58. 24.100' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libavdevice    58.  6.101 / 58.  6.101' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libavfilter     7. 46.101 /  7. 46.101' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libswscale      5.  4.100 /  5.  4.100' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libswresample   3.  4.100 /  3.  4.100' } +0ms
[2021-09-24T16:37:43.230Z]   cypress:server:video capture stderr log { message: '  libpostproc    55.  4.100 / 55.  4.100' } +0ms
[2021-09-24T16:38:15.226Z] ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/25826%20-%20Contractor%20Selection%20-%20Verified%20contractors%20should%20be%20marked%20on%20the%20contractor%20card.feature'
[2021-09-24T16:38:15.226Z] Error: ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/25826%20-%20Contractor%20Selection%20-%20Verified%20contractors%20should%20be%20marked%20on%20the%20contractor%20card.feature'
[2021-09-24T16:38:15.226Z]     at rejectAndCleanup (electron/js2c/browser_init.js:213:985
[2021-09-24T16:38:15.226Z]     at Object.failListener (electron/js2c/browser_init.js:213:1198)
[2021-09-24T16:38:15.226Z]     at Object.emit (events.js:315:20)

What I read from these two logs is that after the video capture is initialized Cypress starts to connect to a socket cypress:server:socket-base socket connected. And this step fails after 32 seconds.

@jennifer-shehane does this information (and maybe my other posts) help to tackle this issue? the full logs have a size between 20MB and 1.3GB ... I think that's not very helpful. I can try also some different settings if you want.

@rbayliss
Copy link

rbayliss commented Sep 28, 2021

Ooh, nice capture, @rebel-l! Just from a quick inspection, it seems like it's getting hung opening Electron - it's making it to here, but getting hung up somewhere in here. It seems useful if you were able to rerun the same tests using:

DEBUG="cypress:server:browsers,cypress:server:browsers:electron,cypress:server:video"

(just adding debugging of cypress:server:browsers:electron). That might let us narrow this down to a particular operation.

@rbayliss
Copy link

Actually... I think I might have spotted something. If debug is enabled for cypress:server:browsers:electron, debug gets called with a truncated, cloned version of the response. If it's not enabled, it gets called with the full version. No clue why that might be causing issue, but it at least gives us a clue as to why this is impossible to replicate in debug mode.

If I'm right about that, adding the debug string I suggested above will make it impossible to reproduce the issue (and hence, could be a more targeted temporary fix than DEBUG=*).

@rebel-l
Copy link

rebel-l commented Sep 29, 2021

@rbayliss I did another run with the debug string you suggested. The result was that it failed. The debug output itself when it fails is the following:

[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libavutil      56. 24.101 / 56. 24.101' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libavcodec     58. 42.100 / 58. 42.100' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libavformat    58. 24.100 / 58. 24.100' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libavdevice    58.  6.101 / 58.  6.101' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libavfilter     7. 46.101 /  7. 46.101' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libswscale      5.  4.100 /  5.  4.100' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libswresample   3.  4.100 /  3.  4.100' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:video capture stderr log { message: '  libpostproc    55.  4.100 / 55.  4.100' } +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron launching browser window to url: https://stage.doozer.it/__/#/tests/integration/LIVE/4203 - Authentication - Login by role (Doozer).feature +1ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron debugger attached +3ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron debugger: sending Browser.getVersion with params undefined +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron setting user agent to: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 +1ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron clearing cache +0ms
[2021-09-29T11:10:34.565Z]   cypress:server:browsers:electron debugger: received response to Browser.getVersion: { jsVersion: '9.1.269.39', product: 'Chrome/91.0.4472.164', protocolVersion: '1.3', revision: '@71b891b9c69c9f760dcc31ce9bf0a79eb76f1668', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.4.1 Chrome/91.0.4472.164 Electron/13.2.0 Safari/537.36' } +0ms
[2021-09-29T11:11:06.564Z] ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/4203%20-%20Authentication%20-%20Login%20by%20role%20(Doozer).feature'
[2021-09-29T11:11:06.564Z] Error: ERR_TIMED_OUT (-7) loading 'https://stage.doozer.it/__/#/tests/integration/LIVE/4203%20-%20Authentication%20-%20Login%20by%20role%20(Doozer).feature'
[2021-09-29T11:11:06.564Z]     at rejectAndCleanup (electron/js2c/browser_init.js:213:985)
[2021-09-29T11:11:06.564Z]     at Object.failListener (electron/js2c/browser_init.js:213:1198)
[2021-09-29T11:11:06.564Z]     at Object.emit (events.js:315:20)
[2021-09-29T11:11:06.564Z] 
[2021-09-29T11:11:06.564Z]   cypress:server:browsers browsers.kill called with no active instance +30s
[2021-09-29T11:11:06.564Z]   cypress:server:browsers:electron debugger detached due to { reason: 'target closed' } +30s

It seems it can start and connect to electron but then the connection gets lost after it recieved the browser version. The logs around a test where Electron was started successfully looks like:

[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libavutil      56. 24.101 / 56. 24.101' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libavcodec     58. 42.100 / 58. 42.100' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libavformat    58. 24.100 / 58. 24.100' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libavdevice    58.  6.101 / 58.  6.101' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libavfilter     7. 46.101 /  7. 46.101' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libswscale      5.  4.100 /  5.  4.100' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libswresample   3.  4.100 /  3.  4.100' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:video capture stderr log { message: '  libpostproc    55.  4.100 / 55.  4.100' } +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron launching browser window to url: https://stage.doozer.it/__/#/tests/integration/LIVE/10034 - My Account User changes password.feature +1ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron debugger attached +2ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron debugger: sending Browser.getVersion with params undefined +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron setting user agent to: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron clearing cache +0ms
[2021-09-29T08:33:50.256Z]   cypress:server:browsers:electron debugger: received response to Browser.getVersion: { jsVersion: '9.1.269.39', product: 'Chrome/91.0.4472.164', protocolVersion: '1.3', revision: '@71b891b9c69c9f760dcc31ce9bf0a79eb76f1668', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.4.1 Chrome/91.0.4472.164 Electron/13.2.0 Safari/537.36' } +0ms
[2021-09-29T08:33:50.818Z]   cypress:server:browsers:electron debugger: enable Console and Network +643ms
[2021-09-29T08:33:50.818Z]   cypress:server:browsers:electron debugger: sending Console.enable with params undefined +0ms
[2021-09-29T08:33:50.818Z]   cypress:server:browsers:electron debugger: received response to Console.enable: {} +40ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: sending Page.setDownloadBehavior with params { behavior: 'allow', downloadPath: '/home/ubuntu/workspace/e2e_DPX-160203/cypress/downloads' } +0ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: received response to Page.setDownloadBehavior: {} +0ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron maybe recording video { onScreencastFrame: [Function (anonymous)] } +0ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: sending Page.startScreencast with params { format: 'jpeg', everyNthFrame: 5 } +0ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: received response to Page.startScreencast: {} +1ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: sending Network.enable with params { maxTotalBufferSize: 0, maxResourceBufferSize: 0, maxPostDataSize: 0 } +0ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers browser opened +688ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron debugger: received response to Network.enable: {} +2ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron console message: { column: 32, level: 'log', line: 190956, source: 'console-api', text: 'console.clear', url: 'https://stage.doozer.it/__cypress/runner/cypress_runner.js' } +26ms
[2021-09-29T08:33:50.819Z]   cypress:server:browsers:electron console message: { column: 32, level: 'log', line: 190956, source: 'console-api', text: 'console.clear', url: 'https://stage.doozer.it/__cypress/runner/cypress_runner.js' } +47ms

I hope that helps you in your investigation. Let me know if I should try something else or provide more of the logs.

@rbayliss
Copy link

Thanks, @rebel-l. So where you're getting hung up specifically is here (so unsurprisingly, we're getting hung up waiting for the initial page to load). I think we can disregard what I said above - that specific debug string obviously isn't the magic cure.

At this point, I'm at a loss. There's a timeout error being caught by Electron itself after ~30 seconds. In my testing trying to find a reproducible test case, I've been unable to make that happen (only sporadically, in CI, with our full test suite and configuration, and with debug off). I think this needs further investigation from the Cypress team, who will need a reproducible test case.

@pistazie
Copy link

pistazie commented Oct 7, 2021

I can confirm we having this issue failing ~%50 of our test runs. Retries eventually pass.

We are running on AWS CodeBuild with AWS Linux.

I tried mitigating it by providing much bigger machines but it doesn't seem to resolve the issue.

This has been the same for many 8.x.x Cypress versions we tried.

@meastes
Copy link

meastes commented Oct 8, 2021

We ran into this issue as well when upgrading to 8.x and have rolled back to 7.7.0. I tried a bunch of 8.x versions, but they all had the same issue. We'll have to stay on 7.x until this is resolved.

@Elizaveta1105
Copy link

Have the same issue on 8.6.0.
video: false doesn't help

Have someone resolved the issue?

@rebel-l
Copy link

rebel-l commented Oct 12, 2021

Have the same issue on 8.6.0. video: false doesn't help

Have someone resolved the issue?

Nope, everyone is doing a workaround. Most of the people go back to latest 7.x version. As we switched from 6.x to 8.5.0 currently and spend a lot effort to get there, we decided to turn off video captuirng as soon as it is fixed. It's a very bad solution as we need a second run with only failed test and video capturing on and pray that this is fast enough that it don't break.

I hope the people from Cypress will give that more priority soon. Again: I can offer my help to run a development version on our setup and share logs afterwards.

@mjhenkes
Copy link
Member

@Fgerthoffert, i haven't been able to reproduce since that last run. I think you're ok to migrate since we haven enough to attempt a recreation in my forked repo.

Thanks so much for all the info and help you've provided thus far. I'll be out until the week after the 4th of july and attempt to re-create again.

@Fgerthoffert
Copy link

@mjhenkes sounds good, we'll continue with the migration.

This issue is quite critical for us, it's pretty impactful on our other repo.

@romankhomitskyi
Copy link

@mjhenkes sounds good, we'll continue with the migration.

This issue is quite critical for us, it's pretty impactful on our other repo.

So this is fixed in 10 version , isn't it?

@nagash77 nagash77 assigned nagash77 and mjhenkes and unassigned nagash77 Jul 12, 2022
@mjhenkes
Copy link
Member

This issue may be related to #22631. Still working on getting a reliable recreation.

@mjhenkes
Copy link
Member

@romankhomitskyi, what makes you say this issue is fixed in version 10?

@romankhomitskyi
Copy link

@romankhomitskyi, what makes you say this issue is fixed in version 10?

Sorry, misunderstood comments

@cypress-bot cypress-bot bot added stage: investigating Someone from Cypress is looking into this and removed stage: awaiting response Potential fix was proposed; awaiting response labels Jul 20, 2022
@mjhenkes
Copy link
Member

Some updates here. I've been able to get a semi reliable recreation, about 1 failure for every 4 builds. I was also able to get debug logs (attached are a successful and unsuccessful run)

The pertinent sections start at line 17506 for the successful run and 17553 of the unsuccessful run

Successful

cypress    |   1 passing (1m)
cypress    | 
cypress    | 2022-07-25T17:24:20.483Z cypress-verbose:server:browsers:cdp_automation received networkRequestWillBeSent { documentURL: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', frameId: 'B0F262015EA1FC565DA732CA5D864D3B', hasUserGesture: false, initiator: { stack: { callFrames: [Array] }, type: 'script' }, loaderId: 'B35EEE06842656D0B32E31847ED1FD94', request: { headers: { Referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, initialPriority: 'Low', isSameSite: true, method: 'GET', mixedContentType: 'none', referrerPolicy: 'strict-origin-when-cross-origin', url: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI' }, requestId: '548.291', timestamp: 539.736914, type: 'Script', wallTime: 1658769860.450553 }
cypress    | 2022-07-25T17:24:20.484Z cypress-verbose:proxy:http:util:prerequests queuing pre-request to be matched later { requestId: '548.291', method: 'GET', url: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI', headers: { Referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'script', originalResourceType: 'Script' } [ { requestId: '6070057BBD5FA1444DCAB2AA738935E8', method: 'GET', url: 'http://jahia:8080/__cypress/iframes/integration/createContent.spec.ts', headers: { Referer: 'http://jahia:8080/__/', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'other', originalResourceType: 'Document' }, { requestId: '548.50', method: 'GET', url: 'http://jahia:8080/__cypress/tests?p=cypress/support/index.js', headers: { Referer: 'http://jahia:8080/__cypress/iframes/integration/createContent.spec.ts', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'xhr', originalResourceType: 'XHR' }, { requestId: '548.51', method: 'GET', url: 'http://jahia:8080/__cypress/tests?p=cypress/integration/createContent.spec.ts', headers: { Referer: 'http://jahia:8080/__cypress/iframes/integration/createContent.spec.ts', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'xhr', originalResourceType: 'XHR' }, { requestId: '548.38', method: 'GET', url: 'http://jahia:8080/__cypress/runner/fonts/fa-regular-400.woff2', headers: { Origin: 'http://jahia:8080', Referer: 'http://jahia:8080/__cypress/runner/cypress_runner.css', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'font', originalResourceType: 'Font' }, { requestId: 'B35EEE06842656D0B32E31847ED1FD94', method: 'GET', url: 'http://jahia:8080/jahia/jcontent/jcontentSite/en/content-folders/contents', headers: { Referer: 'http://jahia:8080/__/', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'other', originalResourceType: 'Document' }, { requestId: '548.97', method: 'GET', url: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABQCAYAAABcbTqwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZ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JVVEKRlwG6TZeQ3bUuBZZI64oBSVuAulGXlGwGUlAXE60N0EpSk6Ji0A6kR7idUQYDyFvnQ3z6mBFyRtxmeZVlFhSDIN0RRk2VCCK4kAFoigOVCCK4kAFoigOVCCK4kAFoigOVCCK4uD/0/XD3qo0DHEAAAAASUVORK5CYII=', headers: { Referer: 'http://jahia:8080/', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'image', originalResourceType: 'Image' }, { requestId: '548.271', method: 'GET', url: 'http://jahia:8080/modules/jahia-page-composer/javascript/locales/en.json', headers: { Referer: 'http://jahia:8080/jahia/jcontent/jcontentSite/en/content-folders/contents', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', 'X-Requested-With': 'XMLHttpRequest' }, resourceType: 'xhr', originalResourceType: 'XHR' }, { requestId: '548.272', method: 'GET', url: 'http://jahia:8080/modules/jahia-developer-tools/javascript/locales/en.json', headers: { Referer: 'http://jahia:8080/jahia/jcontent/jcontentSite/en/content-folders/contents', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', 'X-Requested-With': 'XMLHttpRequest' }, resourceType: 'xhr', originalResourceType: 'XHR' }, { requestId: '548.273', method: 'GET', url: 'http://jahia:8080/modules/jahia-category-manager/javascript/locales/en.json', headers: { Referer: 'http://jahia:8080/jahia/jcontent/jcontentSite/en/content-folders/contents', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', 'X-Requested-With': 'XMLHttpRequest' }, resourceType: 'xhr', originalResourceType: 'XHR' }, { requestId: '548.274', method: 'GET', url: 'http://jahia:8080/modules/jahia-repository-explorer/javascript/locales/en.json', headers: { Referer: 'http://jahia:8080/jahia/jcontent/jcontentSite/en/content-folders/contents', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', 'X-Requested-With': 'XMLHttpRequest' }, resourceType: 'xhr', originalResourceType: 'XHR' } ]
cypress    | 2022-07-25T17:24:20.489Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:20.489Z cypress-verbose:server:video:frames skipping video frame { skipped: 425 }
cypress    | 2022-07-25T17:24:20.490Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:20.490Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:20.491Z cypress:proxy:http:request-middleware proxying request { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: '*/*', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } } }
cypress    | 2022-07-25T17:24:20.492Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI IncomingRequest waiting for prerequest
cypress    | 2022-07-25T17:24:20.492Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI IncomingRequest matches pending pre-request { requestId: '548.291', method: 'GET', url: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI', headers: { Referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36' }, resourceType: 'script', originalResourceType: 'Script' }
cypress    | 2022-07-25T17:24:20.493Z cypress:server:server-base Getting remote state: { auth: null, props: { port: '8080', tld: 'jahia', domain: '' }, origin: 'http://jahia:8080', strategy: 'http', visiting: false, domainName: 'jahia', fileServer: null }
cypress    | 2022-07-25T17:24:20.493Z cypress:server:server-base Getting remote state: { auth: null, props: { port: '8080', tld: 'jahia', domain: '' }, origin: 'http://jahia:8080', strategy: 'http', visiting: false, domainName: 'jahia', fileServer: null }
cypress    | 2022-07-25T17:24:20.495Z cypress:network:agent addRequest called { isHttps: false, href: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI' }
cypress    | 2022-07-25T17:24:20.495Z cypress:network:agent got family { family: 4, href: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI' }
cypress    | 2022-07-25T17:24:20.495Z cypress:server:stream_buffer stream buffer writeable final called
cypress    | [mochawesome] Report JSON saved to /home/jahians/results/reports/cypress.json
cypress    | 
cypress    | 2022-07-25T17:24:20.522Z cypress:server:request received status code & headers on request { requestId: 'request213', statusCode: 200, headers: { 'content-type': 'text/javascript' } }
cypress    | 2022-07-25T17:24:20.523Z cypress:server:request successful response received { requestId: 'request213' }
cypress    | 2022-07-25T17:24:20.526Z cypress:proxy:http:response-middleware received response { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/styles.js?t=M3QI', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: '*/*', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } }, incomingRes: { headers: { expires: 'Thu, 25 Aug 2022 03:54:20 GMT', 'cache-control': 'public, max-age=2678400', 'last-modified': 'Thu, 09 Jun 2022 15:07:13 GMT', 'content-type': 'text/javascript', 'content-length': '5579', date: 'Mon, 25 Jul 2022 17:24:20 GMT', 'keep-alive': 'timeout=20', connection: 'keep-alive' }, statusCode: 200 } }
cypress    | Mon, 25 Jul 2022 17:24:20 GMT cypress:net-stubbing:server:intercept-response InterceptResponse { req: { url: '/modules/ckeditor/javascript/styles.js?t=M3QI' }, request: undefined }
cypress    | 2022-07-25T17:24:20.537Z cypress:server:server-base Getting remote state: { auth: null, props: { port: '8080', tld: 'jahia', domain: '' }, origin: 'http://jahia:8080', strategy: 'http', visiting: false, domainName: 'jahia', fileServer: null }
cypress    | 2022-07-25T17:24:20.537Z cypress:network:cors Parsed URL { port: '8080', tld: 'jahia', domain: '' }
cypress    | 2022-07-25T17:24:20.538Z cypress:proxy:http:response-middleware injection levels: { isInitial: false, wantsInjection: false, wantsSecurityRemoved: true }
cypress    | 2022-07-25T17:24:20.538Z cypress:server:server-base Getting remote state: { auth: null, props: { port: '8080', tld: 'jahia', domain: '' }, origin: 'http://jahia:8080', strategy: 'http', visiting: false, domainName: 'jahia', fileServer: null }
cypress    | 2022-07-25T17:24:20.539Z cypress:proxy:http:response-middleware removing JS framebusting code
cypress    | 2022-07-25T17:24:20.539Z cypress:proxy:http:response-middleware ensuring resStream is plaintext
cypress    | 2022-07-25T17:24:20.582Z cypress:proxy:http:request-middleware proxying request { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/plugins/scayt/dialogs/dialog.css', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: 'text/css,*/*;q=0.1', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } } }
cypress    | 2022-07-25T17:24:20.583Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/plugins/scayt/dialogs/dialog.css IncomingRequest waiting for prerequest
cypress    | 2022-07-25T17:24:20.585Z cypress:proxy:http:request-middleware proxying request { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/plugins/tableselection/styles/tableselection.css', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: 'text/css,*/*;q=0.1', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } } }
cypress    | 2022-07-25T17:24:20.585Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/plugins/tableselection/styles/tableselection.css IncomingRequest waiting for prerequest
cypress    | 2022-07-25T17:24:20.606Z cypress:proxy:http:request-middleware proxying request { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/plugins/dialog/styles/dialog.css', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: 'text/css,*/*;q=0.1', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } } }
cypress    | 2022-07-25T17:24:20.606Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/plugins/dialog/styles/dialog.css IncomingRequest waiting for prerequest
cypress    | 2022-07-25T17:24:20.615Z cypress:proxy:http:request-middleware proxying request { req: { method: 'GET', proxiedUrl: 'http://jahia:8080/modules/ckeditor/javascript/plugins/copyformatting/styles/copyformatting.css', headers: { host: 'jahia:8080', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/8.7.0 Chrome/93.0.4577.82 Electron/14.1.0 Safari/537.36', accept: 'text/css,*/*;q=0.1', referer: 'http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', cookie: 'JSESSIONID=8D931E108208C87DE7E3DAA4E1D40055' } } }
cypress    | 2022-07-25T17:24:20.616Z cypress-verbose:proxy:http GET http://jahia:8080/modules/ckeditor/javascript/plugins/copyformatting/styles/copyformatting.css IncomingRequest waiting for prerequest
cypress    | 2022-07-25T17:24:20.627Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:20.627Z cypress-verbose:server:video:frames skipping video frame { skipped: 426 }

Failed

cypress    |   1 passing (1m)
cypress    | 
cypress    | 2022-07-25T17:24:35.556Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:35.563Z cypress-verbose:server:video:frames skipping video frame { skipped: 442 }
cypress    | 2022-07-25T17:24:35.564Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:35.565Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | [mochawesome] Report JSON saved to /home/jahians/results/reports/cypress.json
cypress    | 
cypress    | 2022-07-25T17:24:35.743Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:35.744Z cypress-verbose:server:video:frames skipping video frame { skipped: 443 }
cypress    | 2022-07-25T17:24:35.744Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:35.745Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:35.765Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:35.771Z cypress-verbose:server:video:frames skipping video frame { skipped: 444 }
cypress    | 2022-07-25T17:24:35.772Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:35.773Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:35.913Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:35.915Z cypress-verbose:server:video:frames skipping video frame { skipped: 445 }
cypress    | 2022-07-25T17:24:35.916Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:35.917Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:35.992Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:35.994Z cypress-verbose:server:video:frames skipping video frame { skipped: 446 }
cypress    | 2022-07-25T17:24:35.995Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:35.995Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:36.107Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:36.108Z cypress-verbose:server:video:frames skipping video frame { skipped: 447 }
cypress    | 2022-07-25T17:24:36.109Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:36.110Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:36.281Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:36.282Z cypress-verbose:server:video:frames skipping video frame { skipped: 448 }
cypress    | 2022-07-25T17:24:36.283Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:36.284Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:36.314Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:36.319Z cypress-verbose:server:video:frames skipping video frame { skipped: 449 }
cypress    | 2022-07-25T17:24:36.321Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:36.327Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}
cypress    | 2022-07-25T17:24:36.425Z cypress-verbose:server:video:frames writing video frame
cypress    | 2022-07-25T17:24:36.426Z cypress-verbose:server:video:frames skipping video frame { skipped: 450 }
cypress    | 2022-07-25T17:24:36.426Z cypress:server:browsers:electron debugger: sending Page.screencastFrameAck with params { sessionId: 1 }
cypress    | 2022-07-25T17:24:36.427Z cypress:server:browsers:electron debugger: received response to Page.screencastFrameAck: {}

Note the lack GET for http://jahia:8080/jahia/content-editor/en/create/59d45566-d61f-4ae9-9a07-b1517fdcac3d/jnt:bigText In the failed logs. It's hard to say what exactly is causing this, but it is the most telling difference in the logs.

Logs failed.txt
logs succeeded.txt

@Fgerthoffert
Copy link

@mjhenkes I'm not really surprised that some of the calls are missing in the failed logs if we assume that the failure is related to some process crashing. Cypress "crash" or "hangs", therefore does not execute what it's supposed to afterwards.

The issue here is why are we having such issues? what are we doing that would be triggering this type of behavior?

@mattvb91
Copy link

Surely some of the staff at cypress could weigh in on what they are running on their enterprise platform for their paying users? Im amazed how cypress themselves dont battle with this issue on their own platform because every single team ive worked with the biggest complaint is the amount of crashes and failures when running cypress in CI

@romankhomitskyi
Copy link

romankhomitskyi commented Jul 26, 2022

They don't battle with many more important issues: like Safari, runner performance, adequately preserve local storage and cookies, cy.origin, iframe, native events etc

I really have no idea why they prioritized component testing (you can see a lot of opened Pull requests with that stuff), since cypress has beed forced as e2e testing tool

@mjhenkes
Copy link
Member

I've narrowed this issue to having been introduced with version 8.6.0 based on my CI runs https://app.circleci.com/pipelines/github/mjhenkes/jcontent?branch=master
8.5.0 -> 8.6.0: v8.5.0...v8.6.0

Next I'll narrow down which commit in 8.6.0 specifically causes the hang.

@Antman261
Copy link

We have this issue with Cypress 8.1 as well as 8.5 😬

@mattvb91
Copy link

@mjhenkes how can we help from our side even if its just confirming something in logs or something? I have a private repo where I can pretty much replicate the failure 100% by just upgrading to cypress 10

@mjhenkes
Copy link
Member

mjhenkes commented Jul 28, 2022

@Antman261, It's likely that there are multiple "hanging" issues combined into this single thread. The example I currently have to work with was definitely introduced in cypress 8.6.0. The issues you're seeing in 8.1 and 8.5 are likely a different problem.

@mattvb91, the best thing I can have is a reproducible example I can test with and verify corrections. Barring that, you can do what I'm doing, narrow in on what release/commit caused the problem. With the example I currently have I've been methodically pairing down what the problem could be. First by determining which dependency update introduced the issue (Cypress), then which version (8.6.0) and now which commit. It would be harder for an outside contributor to test each commit but I'm happy to help get temporary test versions of cypress built. Finally providing debug logs (DEBUG=cypress*) may help, but they can also be really hard to parse and rely on our foresight to log out the right things.

For your hang in particular, was it introduced in Cypress 10? Lots of code changed between Cypress 9 and cypress 10, which will make it tough to narrow down. Do you have an issue for your crash? (Sorry in advance if i or someone else closed it as a dupe of this one 😳.

@mjhenkes
Copy link
Member

It seems this change is causing the hang: #18392

See my CI run evidence here:
https://app.circleci.com/pipelines/github/mjhenkes/jcontent?branch=master
All green builds up till i add in this change, then instantly red.

Now to dig into exactly what this change is causing.

@stychu
Copy link

stychu commented Jul 28, 2022

@mjhenkes this might be related #22590

@mjhenkes
Copy link
Member

I have a PR out to fix this hang: #23001

A big thanks to @Fgerthoffert. Without your help getting a reproducible example, I wouldn't have gotten anywhere.

This specific hang happened on Cypress versions 8.6.0 and greater when using electron and recording video.

I believe there are more hangs reported in this thread than just the one I am fixing. Help me get a reproducible example and I'll see what I can do. I may close this issue with this fix and use new issues for additional hangs.

If you cannot upgrade to Cypress 10.4.0, you'll have to lock into cypress 8.5.0 to avoid this hang. If there are enough of you that cannot upgrade, we can see about getting a 8.x or 9.x patch out, but I'd prefer it if we could avoid that.

@stychu, you may be right, once the PR is merged you can test the pre-release or wait for 10.4.0 to get released next week.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 29, 2022

The code for this is done in cypress-io/cypress#23001, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: investigating Someone from Cypress is looking into this label Jul 29, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 2, 2022

Released in 10.4.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.