https://cypress.io logo
Cypress Electron hangs/crashes
# i-need-help
l
Hi I have E2E test which does repeated actions for 4 times Due to company proxy reason I have only electron browser to test. Test runs fine in headless mode , but in headed/open with electron browser , test crashes always. Sometimes it crashes in after hook , sometimes in mid of test. Can’t find any useful logs in DEBUG , if there any specific logs to look for Electron Any suggestions really appreciated Thanks Gayathri
m
Hi @limited-fish-66138 Which version of Cypress are you using?
l
Cypress 10.7.0
Debug logs says : cypress:server:util socket_allowed allowed socket closed,removing {local port:}
m
There have been some fixes to Electron in later versions. Also in Cypress 10.10.0 Electron was updated from v19 to v21. Are you able to update to a later version, either 10.11.0 or 12.10.0?
l
Sure will give a try
Tried with 12.9 issue remains the same , as test runs successfully in headless mode can i ignore endless loop or code changes ? And concentrate more on memory leaks ?
m
If you have a reproducible public example you could submit an issue on https://github.com/cypress-io/cypress/issues, however Electron v21 will soon be updated to a later version, so you will not be able to get an immediate fix. If possible try out a test on a non-Electron browser like Google Chrome to confirm that the problem only happens with Electron.
3 Views