Open freddidierRTE opened 2 years ago
Hi @freddidierRTE . Thank you for opening an issue. I tried giving this a reproduction here on my ubuntu machine but didn't have any luck reproducing it. Would you be able to work with the reproduction to reproduce this issue for us?
Hi @AtofStryker , i reproduced it with you test code
New element , if i put back in foreground the task in the shell , it stop freezing and execute the test ,debug logs (see the fg shell command in the log )
cypress:server:controllers:spec sending spec { filePath: '/home/didierfre/.config/Cypress/cy/production/projects/cypress-issue-24255-e09ff01d732e7f6af3fe5463a2257406/bundles/cypress/support/e2e.js' } +
19ms
GET /__cypress/tests?p=cypress/support/e2e.js 200 975.319 ms - -
cypress:server:socket-base automation:request get:cookies { domain: 'localhost' } +7s
cypress:server:automation:cookies getting:cookies { domain: 'localhost' } +0ms
cypress:server:automation:cookies received get:cookies [] +2ms
cypress:server:socket-base backend:request { eventName: 'reset:server:state', args: [] } +23ms
cypress:proxy:http:util:buffers resetting buffers +8s
cypress:server:remote-states resetting remote state +481ms
cypress:server:socket-base backend:request { eventName: 'exec', args: [ { cmd: 'ls', timeout: 60000, env: {} } ] } +13ms
fg
./node_modules/.bin/cypress open
cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 56920 } +9s
cypress:server shell /bin/bash profile ~/.bash_profile +0ms
cypress:server cy.exec found shell /bin/bash +0ms
cypress:server and is running command: ls +0ms
cypress:server in folder: /home/didierfre/projets/opfab/git/cypress-issue-24255 +0ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
I reproduce it as well with the provided electron browser
@freddidierRTE maybe I am missing something. What command in your terminal did you run or did you just one of the provided npm scripts to reproduce?
Starting from the root of your github repository :
Test 1 : In the shell :
./node_modules/.bin/cypress open
Launch test via UI
--> works as intended
Test 2 : In the shell
./node_modules/.bin/cypress open &
Launch test via UI --> It freezes
Test 3:
In the shell
./node_modules/.bin/cypress open &
Launch test via UI --> It freezes
In the shell :
fg
--> works as intended
interesting. I gave this a go and wasn't able to get this to freeze but it did crash on me every time I tried to run ./node_modules/.bin/cypress open &
I am experiencing this as well with Cypress 12.9.0.
I run it with nx e2e project-e2e
(https://nx.dev).
The weird thing is it just started happening.
Current behavior
On a linux OS using chrome with version cypress version 10.10.0 (pb reproduce with previous versions as well) , node version 14.20.1
Launch cypress in background : ./node_modules/.bin/cypress open &
Execute following test :
When launching cypress in foreground (./node_modules/.bin/cypress open) it works
Desired behavior
exec works when launching cypress in background
Test code to reproduce
Cypress Version
10.10.0
Node version
14.20.1
Operating System
Ubuntu 20.04.2 LTS
Debug Logs
Other
No response