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

Blank/Frozen Video Recording on Chrome v87 #9265

Closed
kamalbennani opened this issue Nov 20, 2020 · 9 comments · Fixed by #9301
Closed

Blank/Frozen Video Recording on Chrome v87 #9265

kamalbennani opened this issue Nov 20, 2020 · 9 comments · Fixed by #9301

Comments

@kamalbennani
Copy link

kamalbennani commented Nov 20, 2020

Current behavior

I think that the issue has been reported a couple of times but the context was quite different.

So the issue here is that the Cypress Video Recording is Frozen or only shows the Cypress Frame Layout on Chrome V87.

It's pretty straightforward to reproduce the issue, just download the latest version of Chrome (v87), write a small Cypress test, and run cypress using headless mode targeting chrome, and voilà.

For now, we've managed to partially resolve the issue by downgrading the Chrome version to v85.

Screenshot 2020-11-20 at 22 25 36

Versions

Cypress version: v5.6.0 and v5.2.0
Chrome version: V87

@randing89
Copy link

Looks like the same issue as I am getting here: #9267

@you1anna
Copy link

Also getting this issue, seems to be Chrome 87

@jweingarten
Copy link

jweingarten commented Nov 24, 2020

I have the same thing. Cypress 5.6 and Chrome 87. I went back to Chrome 86 and it works again. Cypress 6.0 and Chrome 87 do not work either. Cypress 6.0 and Chrome 86 work.

On Chrome 87 you see this

Finished processing: /foobar/tests    (0 seconds)
15:01:55                           /artifacts/videos/next.js.mp4   

It's always 0 seconds

@mduft
Copy link

mduft commented Nov 24, 2020

This started happening for me after upgrade to Cypress 6.0.0 which has Electron 86. Videos are no longer usable.
Also screenshots don't seem to work - whatever cypress tells me screenshots it made for failing tests are not present on disc at all.

@forehalo
Copy link
Contributor

forehalo commented Nov 24, 2020

Just found the reason:
TLDR, chromium throttles frame rate with Page.screencastFrameAck. If no ACK replied, what cypress does, the maximum count of frames server will receive is 3.

https://chromium.googlesource.com/chromium/src/+/1c762fa1266fda75231b9ac7b515318fc5328b4d
https://chromium.googlesource.com/chromium/src/+/1c762fa1266fda75231b9ac7b515318fc5328b4d/content/browser/devtools/protocol/page_handler.cc#881
https://chromium.googlesource.com/chromium/src/+/1c762fa1266fda75231b9ac7b515318fc5328b4d/content/browser/devtools/protocol/page_handler.cc#960

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Nov 25, 2020

I can recreate this issue. The video is blank/frozen when run in Chrome 87, which will now affect 6.0 users recording in Electron since that has been updated to Chrome 87.

Updated to mention Edge video

@karanshah-browserstack
Copy link

The issue is also reproducible on edge 87 browser which was released recently.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 30, 2020

The code for this is done in cypress-io/cypress#9301, 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: needs review The PR code is done & tested, needs review label Nov 30, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 30, 2020

Released in 6.0.1.

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

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

Successfully merging a pull request may close this issue.

8 participants