-
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
wslbridge (Ubuntu on Windows) The display compositor is frequently crashing. #5918
Comments
Running into the same issue. |
There seems to be some indication that this may be solved by passing
Edit: remove incorrect way to set Electron flag |
It still fails for me.
I did run it on WSL2 on my personal machine and it worked (even without this plugin code), but my work machine is still on WSL1 until the required Windows update is out of beta. |
Sorry, I did not document this correctly. This error is coming when launching through Electron, so the instructions for sending this app switch to Electron are here: https://on.cypress.io/browser-launch-api#Modify-Electron-app-switches Can you set the following environment variable on your system, run Windows
Linux/OSX
|
I am having the same problem on WSL1 with cypress 3.8.2. I tried to use the environment variable workaround but it did not help. I noticed that this issue is also documented at #5526 where they suggested potentially implementing a slightly different environment variable, so I tried several variants (listed below). None worked. #Environment variables that don't work
export ELECTRON_EXTRA_LAUNCH_ARGS=--disable-features=VizDisplayCompositor
export EXTRA_ELECTRON_LAUNCH_ARGS=--disable-features=VizDisplayCompositor
export EXTRA_ELECTRON_ARGS=--disable-features=VizDisplayCompositor
export CYPRESS_ELECTRON_EXTRA_LAUNCH_ARGS=--disable-features=VizDisplayCompositor
export CYPRESS_EXTRA_ELECTRON_LAUNCH_ARGS=--disable-features=VizDisplayCompositor
export CYPRESS_EXTRA_ELECTRON_ARGS=--disable-features=VizDisplayCompositor @jennifer-shehane are you sure that environment variable is actually used by cypress? I will also mention that in the issue I linked above, another workaround was suggested that involves patching the file electronArgs.push('--disable-features=VizDisplayCompositor'); // add this line
var child = cp.spawn(executable, electronArgs, stdioOptions); // find this line Several people mentioned this worked for them with older Cypress versions, but I have not been able to get it to work with Cypress 3.8.2. EDIT: electronArgs.unshift('--disable-features=VizDisplayCompositor'); // add this line
var child = cp.spawn(executable, electronArgs, stdioOptions); // find this line Apparently the switch has to be added at the beginning of the argument array because any switches at the end come after "--" which signals to electron that those are application switches, not electron switches. (This appears to be a recent addition, because older versions didn't have a problem with the first version of the code.) Unfortunately cypress still crashed after I added the above patch, but this time it exited with a |
I'm also experiencing the same issues listed by @richworx and tried everything suggested. I've defaulted back to not using WSL1 (can't update to WSL2 at the moment) for now just to get around the issue. |
This comment has been minimized.
This comment has been minimized.
Recently I've been struggling with this issue with WSL 1, and I discovered a workaround. Here the tests I tried (WSL 1, not 2):
So, if you run everything with the standard windows command prompt (cmd.exe), and not with WSL, everything works fine, but you will also have to run the npm install with the command prompt, because I think that running npm install with WSL downloads something that's specific for Linux and not for Windows. Hope this helps someone! |
In addition to the above, I was able to run cypress from |
Still happens for me in Cypress 4.5.0, Win 10, WSL Ubuntu 16.04. |
I was able to successfully install and run this on wsl and cypress latest, I ran
So that's good news, but of course nothing is popping up, how would it I guess. But I'm wondering if there is a way for cypress to just print out a port so I can run it in a browser instead of a custom tool? |
You can do `cypress run` for CLI, or if you want to do `cypress open`,
you'll need to install: http://www.straightrunning.com/XmingNotes/
The browser spawned will be running in the linux subsystem.
…On Fri, May 8, 2020 at 9:40 PM Justin Chase ***@***.***> wrote:
I was able to successfully install and run this on wsl and cypress latest,
I ran cypress open and got:
Verifying Cypress can run /home/justin/.cache/Cypress/4.5.0/Cypress [started]
So that's good news, but of course nothing is popping up, how would it I
guess. But I'm wondering if there is a way for cypress to just print out a
port so I can run it in a browser instead of a custom tool?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5918 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIN7Y2IHHG3OGNOT6Z34SDRQSYAVANCNFSM4JYJFCGQ>
.
|
Not the way it should work but the easiest way it works. Thanks a lot! That should be written down in the troubleshooting as a workaround. Edit: This solution works only on WSL1 well because it's only working inside the windows filesystem where WSL2 is extremely slow at the moment. For WSL2 I've found this guide in an other issue: https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress |
Fwiw, while using WSL 1, I saw all the issues described by #5918 (comment) -- |
Just wanted to make sure everyone was aware of this comment showing how to get setup with WSL. #444 (comment) I'm not sure if this is completely up to date. |
Using cypress in a Ubuntu on Windows fails with an error:
Can someone help?
The text was updated successfully, but these errors were encountered: