cypress: Cypress v3.3.0 hangs
Current behavior:
After upgrading to Cypress v3.3.0, I’m experiencing hanging tests, similar to the ones described in https://github.com/cypress-io/cypress/issues/1235 and https://github.com/cypress-io/cypress/issues/1333. The DEBUG=cypress:* logs continuously show the following logs once it hangs:
cypress:server:timers child sending timer id 28 +6s
cypress:server:timers child sending timer id 29 +277ms
cypress:server:video capture stderr log { message: 'frame= 2793 fps= 27 q=13.0 size= 4608kB time=00:01:51.52 bitrate= 338.5kbits/s dup=2099 drop=0 speed=1.09x ' } +552ms
cypress:server:timers child sending timer id 30 +119ms
cypress:server:timers child sending timer id 31 +298ms
cypress:server:timers child sending timer id 32 +51ms
cypress:server:video capture stderr log { message: 'frame= 2805 fps= 27 q=12.0 size= 4608kB time=00:01:52.00 bitrate= 337.0kbits/s dup=2103 drop=0 speed=1.09x ' } +498ms
cypress:server:video capture stderr log { message: 'frame= 2819 fps= 27 q=13.0 size= 4608kB time=00:01:52.56 bitrate= 335.4kbits/s dup=2108 drop=0 speed=1.09x ' } +551ms
cypress:server:timers child sending timer id 33 +1s
cypress:server:timers child sending timer id 34 +86ms
cypress:server:video capture stderr log { message: 'frame= 2833 fps= 27 q=12.0 size= 4608kB time=00:01:53.12 bitrate= 333.7kbits/s dup=2118 drop=0 speed=1.09x ' } +593ms
cypress:server:video capture stderr log { message: 'frame= 2846 fps= 27 q=12.0 size= 4864kB time=00:01:53.64 bitrate= 350.6kbits/s dup=2122 drop=0 speed=1.09x ' } +510ms
Desired behavior:
Tests shouldn’t hang and all tests should pass. Desired behavior is restored when I revert to Cypress v3.2.0
Steps to reproduce: (app code and test code)
Unfortunately I don’t have a chance right now to try and set up a reproducible example. However, v3.3.0 consistently hangs, and v3.2.0 consistently passes.
Versions
Cypress: 3.3.0 Browser: Electron 61
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 10
- Comments: 21 (7 by maintainers)
My tests are also hanging in CI, but I’m not using video or iframes.
The original issue of seeing this warning in the console has been fixed since Cypress 3.5.0 when we updated Electron as part of https://github.com/cypress-io/cypress/pull/4720
Closing as resolved.
@jennifer-shehane What additional information would be helpful here? We have the same issue when running on Linux (Ubuntu) containers but the same code works fine on Mac. We are running tests on Chrome and have this issue with Cypress: 3.2.0
Same problem. Failed at Electron 61 but work well with Chrome. I don’t have either video embedded or iframes. After trying these steps, it’s now working for me.
C:\Users\***\AppData\Roaming. Where***is your username.yarnHello everyone. I’ve been seeing this issue for a while now (originally reported it in Aug '18 https://github.com/cypress-io/cypress/issues/2377) and haven’t been lucky to figure it out. Though yesterday I found out that when video encoding seems to hang it’s in fact due to browser not being killed properly.
Just after test finishes I see following in debug:
followed by request to tracking scripts that are fired on “unload” event from JS.
And what I’ve noticed is, that when the request is fired (browser is not killed fast enough?) in video it looks like that:
Ctrl+Cand/or pipeline timeout kills it)When the request isn’t fired (and only then) I receive
cypress:server:browsers browser process killedin the debug log.Edit:
I’ve just figured out a PoC to behaviour I’ve described, which is also consistent with problem I have on my page:
index.html:test.jsCan’t believe I didn’t notice that earlier but we do, in fact, have a prompt before closing the window on last page the test is visiting.
Here’s a video https://www.youtube.com/watch?v=2GjGaJI93Ow that’s being recorded.
@jennifer-shehane please have a look
My case has been the opposite - Chrome will sometimes hang whereas Electron never seems to. I’ve had this happen on 3.1.0, 3.2.0 and 3.3.1.
I don’t have a reproducible example I can share at the moment other than my DEBUG logs, which I would rather share privately. @jennifer-shehane if you think those could help let me know and please advise how I could share them.
Same here. If I run it locally the iframe that displays the UI in the middle is completely frozen. The log is like this
The UI won’t stuck if I ran the test in Chrome. Here is the log: