-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 video recording #1304
Comments
I am facing the same issue. In the headless mode I get the video but it is blank. |
@rgavinc, I cannot reproduce this bug with 1.4.2
|
I am using following command to run the tests in a headless mode. I see this issue in both cases i.e. if I run a single test or all the tests in a suite. To run all the tests I use following command
To run a single test I use following command
In both the cases, video is recorded but its bank (See screenshots attached) Also, we are not behind a corporate proxy. |
Unfortunately, we will have to have a reproducible repo that we can run to reproduce this. We have tried running some of our example repos - also in Windows, but have been unable to reproduce it. Can someone provide a repo/code to reproduce? |
The repo is private and something which I cannot share unfortunately. I can help with any other information that can help you reproduce this. Please let me know what all you need. Thanks! |
@ValerieThoma & @jennifer-shehane Can replicate this problem with my project, and yes we are behind a company proxy where https://api.cypress.io/is blocked. In headed mode, screenshots work per expected, they issue arises in headless mode where they are blank. A simple test like this will produce a blank screenshot in headless: describe('Sanity', function() {
it('True is true', function() {
cy.visit('https://news.ycombinator.com/'); // or any url
cy.screenshot('HN')
expect(true).to.equal(true)
})
})
BTW, Thank you for a great product and support! |
Can you try to set But for Windows, it should be something like set HTTP_PROXY "http://my-corporate-proxy-address" |
I'm having the same issue. I tried run the project I'm working on Ubuntu VM and it worked, I got video and images, but on Windows 10 the video is blank and the images are black. Perhaps a Xvfb library is missing for Windows or something like that? |
I have the same issue |
I'm seeing blank videos as well. This is with:
Screenshots are also blank. |
Xvfb is not used or needed in Windows. It's linux only. |
Can you all try Chrome instead of Electron to see if the screenshots aren't blank? |
Screenshots are working when I use Edit: Of course, I forgot that video capture is not available with Chrome. |
Can you update to We updated Also please be sure that you use |
For me is working now with version |
I am facing the same issue with video recording. In the headless mode the video is blank. |
We had the same problem, but it went away after two changes; we went from running the TFS-agent as an app to running it as a service and we changed the user. So it might a permission-issue. It might not be related to both of the changes, but this might give you something to try. |
Hi, I encountered this issue yesterday and managed to resolve it. Once I installed node, angular, & cypress using an admin profile and ran it using the same admin profile it was able to render both videos and screenshots in headless mode. Hopefully this helps debugging! Version: Cypress 3.1 |
I have the same problem |
@kvillega how to run or install cypress in admin mode? This is my first time using cypress and encountering the same issue. The content is to go to google.com and just search any keyword then click on images. When running via cypress desktop the snapshots/screenshots are good! (but no video) |
I have the same issue. Test running on TeamCity build agent. Only |
Can you try to add this code to the Try module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, args) => {
if (browser.name === 'electron') {
args['disable-gpu']
args['disable-d3d11']
return args
}
})
} |
No, nothing has changed:( Video and screenshots is empty |
Hi team, Is there any update to this issue? I am running into the exact same problem as @rgavinc where screenshots and video in headless electron returns blank but screenshot works in headed electron.
I am behind a corporate proxy and have tried the following to no avail:
My logs from *Edited to include versions used: |
Is this issue also resolved with PR #3531? |
@GlitchPerfect Oh, I really hope so! Can anyone run Cypress against the @flotwig Thoughts on this issue being resolved for proxy support? Would you be able to replicate this issue and verify? |
@jennifer-shehane Is this a network-related issue? I tried running Cypress with This comment says they are experiencing the issue but are not behind a corporate proxy, so it might not be related. |
@flotwig We've never been able to reproduce this, so we're unsure of the core issue. I just know some people mentioned proxy, so was hoping this may have been the issue. |
Just to close this old issue. The bug has been resolved for me. |
Yes, I am considering this to be resolved since there have not been really any mentions of this in nearly a year. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
Recorded video is returned blank.
Desired behavior:
Video to record normally.
How to reproduce:
When I run cypress I get both a video and snapshot returned to me but they are both blank. When I run cypress in headed mode I get a correct snapshot back but no video (since video recording isn't supported in headed mode).
Additional Info (images, stack traces, etc)
In headless mode:
In headed mode:
The text was updated successfully, but these errors were encountered: