-
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
WSL | Electron 5.0 is producing gpu_data_manager_impl_private display compositor crashing #5526
Comments
Looks like some users have fixed it by passing a flag to Electron: puppeteer/puppeteer#3774 (comment) @adomyaty55foundry You can try patching your const child = cp.spawn(executable, electronArgs, stdioOptions) Add this line: electronArgs.push('--disable-features=VizDisplayCompositor') |
@flotwig Awesome it did progress but interestingly the
but it didnt stop it continued past that error and then Cypress pop'd but now getting this: |
@flotwig Reinstalled all my browsers still no budge. Atleast we are closer Here's the current issue now after putting that patch you mentioned manually: |
@flotwig I got it to work... not sure what made it work but the only thing I did is I ran 'sudo chown -R $USER ' on the /test folder that houses Cypress and it ran fine. Is this patch going to be merged in in a future patch assuming in 5.0.1 or so? I hate for me to upgrade in the future only to break again and me applying the same suggested patch again manually |
@flotwig What actions need to be taken for Cypress here? |
New little info: Updated to 3.6 same situation, I had to manually patch my WSL as mentioned above by @flotwig which made it work after :) I think we should look into giving this as passable flag from CLI maybe to Force OFF the GPU HW accelerator. I can tell you that the trend of Windows users using WSL to basically run a Linux Dev env. is growing sizable amount. WSL possiblly can't handle the GPU acceleration maybe WSL 2 can but that's still ways off till release |
@flotwig @jennifer-shehane Will this get patched? I updated to 3.6.1 and still have to manually patch this up with electronArgs.push("--disable-features=VizDisplayCompositor") ? It seems like more harm is done when we force hardware acceleration especially for WSL users |
@adomyaty55foundry I'm not sure we want to enable this feature for ALL users, since it only seems to affect WSL. I think we could add an optional environment variable, like
This is not currently prioritized as we don't know of too many people using WSL, but you are welcome to open a pull request with the patch and we will review it and get it in as soon as possible. |
@flotwig I'm happy to say WSL2 works PERFECTLY with hardware accel. Go microsoft! I took the risk and updated my system to use WSL2 instead This issue is solved by using WSL2 and by the way it is fast and amazingly less buggy. |
@jennifer-shehane I would close this issue but also make sure this info in this ticket is something you guys can be aware or even better document in cypress docs that Cypress works with WSL2 due to hardware limitations with WSL1 |
Closing - see this issue for WSL1 issue #5918 |
Current behavior:
WSL | Electron 5.0 is producing
gpu_data_manager_impl_private
display compositor crashing. Not able to do acypress run
oropen
due to this blocking issue. This was never a problem till I just upgraded to Cypress 3.5Desired behavior:
Works okay and normal like how it did before the upgrade to 3.4
Steps to reproduce: (app code and test code)
Setup: WSL (Ubuntu 18.04, Win10, Cypress 3.4)
DEBUG=cypress* ./node_modules/.bin/cypress openconfigFile=dev
I'm guessing this is related to Electron 5.0 upgrade that is part of 3.5 upgrade
Versions
Setup: WSL (Ubuntu 18.04, Win10, Cypress 3.4)
The text was updated successfully, but these errors were encountered: