-
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
Clicking "View App Data" on Linux crashes Cypress #20774
Comments
I wasn't able to reproduce this on a Mac in 9.5.1. |
Hi @flotwig, I would like to help but I was not able to reproduce the error on my environment. What can I do to try to help?
|
@viniciuspietscher hmm, what is your DE? how are you launching Cypress? |
@flotwig I'm using i3, I opened inside the project folder on the terminal using the command: |
I spent some time today reproducing and debugging this issue. The "crash" as it were would actually be fixed by upgrading to the upstream I believe that the root cause of the issue, is that there is no browser installed on the reporter's machine. Anyone should be able to reproduce this problem simply by uninstalling Firefox, Chromium, Chrome, etc. from their minimal Linux system. There is a list of browsers checked for existence, which is defined in the local version of xdg-open provided by the @flotwig: I think the issue would be resolved by running @viniciuspietscher: I think that you can not reproduce the issue because you do have one of the binaries referenced by I am not sure exactly what should be done with this bug, perhaps it would be nice to at least catch the exception and print out a usable error, i.e. "This feature requires a browser to be installed. We suggest installing x". I did notice that the version of In addition, the
Hope this helps resolve the issue somewhat. If anyone has suggestions on what could be done next to resolve the bug, let me know! Thanks. |
Small update: it would also be helpful to update to a later version of the xdg-open script in general. When testing this functionality under GNOME 3, I found that xdg-open is trying to execute |
Thanks for spending time getting to the root of this issue @jonhermansen
Interesting, I did have Firefox (and others) in my path at the time that I encountered this. Why would it be related to browsers anyways?
Electron also uses
We also use If you want to open a PR to fix this and ping me for a review, that would be very welcome. |
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. |
Seeing this crash on Cypress 12.12.0 on Ubuntu 22.04.
|
@MikeMcC399 Can you check if your BROWSER/DISPLAY environment variables are set, and also if you have any of these executables in your PATH?
The logic for how Cypress is attempting to pick a browser is here. Maybe something is off with your browsers command name. Or could be something else entirely. Its been a while since I looked at this issue. |
Also, your terminal may have different environment variable values set than what is available to Cypress. Depends on how you are launching the Cypress UI. |
I was able to reproduce on Ubuntu 22.04 and 23.04, however on Ubuntu 20.04 View App Data worked correctly. I will do a clean install of Ubuntu 22.04 and see what happens there. |
This issue is reproducible with Cypress 12.12.0 (Edit: also on 12.17.0) on a clean install of Ubuntu 22.04.2 LTS using Node.js 18.16.1. Install Ubuntu 22.04.02 from iso on VMware Workstation. Install prerequisites: sudo apt install curl
sudo apt install make
sudo apt install git
curl -L https://bit.ly/n-install | bash then mkdir cy-view-app-data
cd cy-view-app-data
git init
npm init -y
npm install cypress@12.12.0 -D
npx cypress open In Cypress desktop app which then crashes with the console output:
On Ubuntu it should be displaying the contents of Check with ls -al ~/.config/Cypress/cy/production
nautilus ~/.config/Cypress/cy/production |
@jonhermansen |
This issue remains unresolved in In Cypress desktop app ( console output stack trace for
Workaroundnautilus ~/.config/Cypress/cy/production |
This issue remains unresolved in
|
To reproduce:
Desired behavior: View App Data works, and errors with View App Data are gracefully handled.
The text was updated successfully, but these errors were encountered: