-
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
Aw Snap Out Of Memory Issue #28662
Comments
I have just had the same issue yesterday, as we do many combinations for exploration tests. Even for a most simplified case it could be reproduced the memory leak: import { range } from 'lodash-es';
describe('Find Memory Leak', () => {
range(1, 500).forEach((i) => {
it('Yeah - ' + i, () => {
cy.visit('https://google.com');
cy.get('body').click();
});
});
}); After 140 / 500 the memory is already 3 GB ( Upd: It even crashed with the following message
Upd: I didn't mention but all those configs adjustment didn't help, settings keptInMemory to 5, and run in chrome with MemoryManagement resulted the same issue. |
I've been experiencing the same thing with our suite, it's been a problem for over a year. I've been working on finding a workaround but haven't been able to yet. It's definitely an issue with Cypress. |
I too agree with this, running many test cases at once is throwing this error! |
at this point imo the best solution is to migrate to playwright like the rest of the world. cypress is just shrugging issues under the rug and calling it a day. just search for all the OOM issues reported before and you'll have pretty good idea what will happen to this one. |
Same for me. No fix. |
I recently starting porting our codebase over to playwright. It's very similar in syntax, so the migration is pretty easy. Playwright runs faster, better, more reliably, has more features, and costs far less. At this point sticking with Cypress is shooting yourself in the foot. I tried to give them a chance to fix the show stopping issues but all that ever gets done are closed issues without any resolution. |
Same thing for me - never was an issue with Electron, but here we are |
Any update on this? Workaround? It is a blocker for executing more tests on CI as memory is not released between tests. |
Any updates @jennifer-shehane ? |
@banjahman how long did it take you to migrate to Playwright? How many tests did you have? |
For me, changing the Cypress version from 3.11.0 to 3.6.0 helped. Might work as a workaround for some. I also have experimentalMemoryManagement enabled. |
@stepanroznik It'd be great to have an example for us to reproduce this. We/d be very interested in tracking down a performance regression. |
This problem has been bothering me for two years now |
Hey, as mentioned the second comment even the most basic tests crash: #28662 (comment) |
Going to close this as a duplicate of #27415 (comment) |
Test code to reproduce
we have 476 teste cases in our project so far when we execute them together browser crash and give us Aw Snap Out Of Memory
error it happen when we run bunch of test cases together. But when we run the individually they run good. can you please help us to resolove that issue
Cypress Mode
cypress run
Cypress Version
v12.17.2
Browser Version
v120
Node version
v20.5.1
Operating System
windows 10
Memory Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: