Replies: 13 comments 25 replies
-
Hi @mschile. I'm still facing chrome crashes with But I should note that it happens rarely.
|
Beta Was this translation helpful? Give feedback.
-
Second run logs with |
Beta Was this translation helpful? Give feedback.
-
What kind of test run speed change are we expecting with this flag? |
Beta Was this translation helpful? Give feedback.
-
Hi @mschile. Thanks for your work on this. It is a showstopper bug for me/us. Unfortunately, I don't see any change in behavior. It still crashes the same way. Setting |
Beta Was this translation helpful? Give feedback.
-
Struggling with this since Cypress 11 appear. Finally in mine case it was solved with:
Increased performance |
Beta Was this translation helpful? Give feedback.
-
I started to follow the instructions to isolate my spec (https://github.com/dominics/cypress-test-tiny/blob/master/cypress/e2e/spec.cy.js) BUT this separate repo seems more solid than my real one, on memory usage. And memory usage is consistently lower there (when testing the same page). That makes me suspect something like the Webpack watch (which is a major difference between the setups - and CRA does some pretty weird and wonderful stuff (like adding an entrypoint for the HMR)) - It does seem like the percentage used goes up on repeated runs of that example spec though - so maybe it's still useful for reproduction? |
Beta Was this translation helpful? Give feedback.
-
Hey All, I've created a repository where one could easily reproduce the issue, the TL:DR if too many command log is generated in test case the cypress runner still can crash. I deliberately created a small webserver against which the test can be executed. |
Beta Was this translation helpful? Give feedback.
-
I installed V12.8.1 and turned experimentalMemoryManagement = true (numTestsKeptInMemory = 0), but I still get the Out of Memory issue. During the execution of the tests, I monitored the memory usage of the Cypress process and as long as the tests were executed properly there were no problems, but when the first test failed, it was executed again because retry = 1 was turned on. This is not a problem because the test should have failed, however the next test passed but the cypress process doubled the memory usage and all subsequent tests passed but the memory usage grew and after some time when the process reached 3GB Out Of Memory appeared. It seems to me that in the case when the test fails, there is a problem with memory leakage for some reason, especially if we have retry enabled, then the memory usage increases drastically and does not decrease during further execution. |
Beta Was this translation helpful? Give feedback.
-
(property) experimentalMemoryManagement: boolean Using Cypress 12.8.1 |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue, and I've tried with the probable solutions, i.e. added these 2 commands in my config file - numTestsKeptInMemory: 0 // this is not a good practice because - this is blocking cypress ton take screenshots at every step - surely I won't use this. In some article I read that cypress 13.6.4 they tried to optimize this memory management, And according to that I've updated the version. Again I downgraded the version, and the last problem solved. I can switch PC tabs. Can anyone please help me regarding this? |
Beta Was this translation helpful? Give feedback.
-
Vereinbarungen Anlegen.json |
Beta Was this translation helpful? Give feedback.
-
We've been using Cypress for a few weeks now and it constantly crashes with "Aw, Snap!" "Error code: Out of Memory" after running a spec 2-3 times, obviously this is very frustrating. I enabled experimentalMemoryManagement and set the memory debug environment variable. The debug log is attached. The test is only ~2 minutes long and a few dozen commands (although several times that in xhr requests) so it's rather frustrating that it crashes so quickly and so often. |
Beta Was this translation helpful? Give feedback.
-
I'm glad these memory logging options were added. I'm going to attach some results I've gathered from local experiments. The context of the test is a system with a complex, and very poorly optimized, form. The test takes about 4.5 minutes to fill out the form one time. I repeated ('burned') the test 10 times using Then I repeated the loop, but with command log disabled. That loop 'only' took 26 minutes. Then I used
10-fold loop, with command log: complex-form.with-command-log.burn-10.json complex-form.no-command-log.burn-10.json |
Beta Was this translation helpful? Give feedback.
-
Hey everyone 👋 , thanks for testing out the experimentalMemoryManagement feature to improve memory management within Chromium-based browsers!
We appreciate any and all feedback that you have to provide.
For any issues, please include the memory debug logs by performing one of the following steps:
CYPRESS_INTERNAL_MEMORY_SAVE_STATS
environment variable to1
ortrue
and include thecypress\logs\memory\<spec name>.json
file.DEBUG=cypress*memory
.If you have a larger bug to report, please file a dedicated issue.
Beta Was this translation helpful? Give feedback.
All reactions