-
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
shared memfd open() failed: Function not implemented | trying to run cypress in WSL #4145
shared memfd open() failed: Function not implemented | trying to run cypress in WSL #4145
Comments
We haven't seen this issue before. I suggest you try the troubleshooting tips from WSL: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting Could you run Cypress in debug mode mode and print the logs here also? |
Here is the debugged o/p below
|
Any finding with this issue? Please let me know anything extra you need.. |
No, I don't know what is causing this error. Seems isolated to WSL. |
@pandasanjay, I'm having the same issue. Were you able to find a workaround? |
@justin-bits WSL 1 I didn't find the solution yet. With WSL 2 you can run Headless mode without any issue. I think we can run the Cypress open also, but might need some env config. |
Thanks for the tip, but I wasn't able to get Cypress open working under WSL 2. It starts without error, but the GUI never opens. It looks like Cypress does not support running under Windows WSL / Ubuntu. This will prevent me from testing against local builds (which natively run on Linux and won't build on Windows without WSL). |
+1 |
Just ran into the same issue. Is there any solution for this? |
I ended up abandoning trying to get WSL to work and ended up running application builds and Cypress in Git Bash after changing the shell: |
Finally I found a way which working awesome without any issue in WSL2! First we have to setup X server (Which is a Desktop like environment) for WSL2. Then try to run cypress and you will see the UI is working. |
@pandasanjay I'm still having no luck. In fact, here's a ss of getting the same error IN XFCE4 under WSL2: Anyone else gone down this road? Or is headed Cypress just not going to work under WSL? If so, Cypress folks, this is a bit of a showstopper; there are more devs than you might think working under WSL(2) these days -- just FYI. |
Looks like this is probably the root cause: microsoft/WSL#3542 |
Resolved: for me, it was a no-brainer. Although I had WSL2 installed, I hadn't set it as the default subsystem. So when I (re)installed Debian, it used WSL1. Switching to WSL2 (and running under xfce/firefox) worked. So make sure to do a |
I see the exact same error running Pale Moon browser on WSL1, when a video is run using it. This would suggest that WSL1 is involved, as it uses an emulated kernel, unlike WSL2, which uses a real Linux kernel. Best to use WSL2 if you don't want to see this error message with any application used in an emulated Linux environment, and this would include use of cypress-io. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior:
I am using WSL as my development env. Now when I am trying to run Cypress . This gives me
shared memfd open() failed: Function not implemented
Steps to reproduce: (app code and test code)
Versions
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
Is this a issue with cypress?
The text was updated successfully, but these errors were encountered: