You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a spec with 30+ tests, all the tests with number 30+ start failing due to memory issues WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance.
Research's shown that it might be related to the fact that the Detached Windows are kept in the memory. It can be easily reproduced by retrying a single test multiple times and then inspecting Memory snapshot. Detached Window instances in turn hold the pointers to the internal objects of our application preventing garbage collection.
Here I restarted test couple of times and the amount of Detached Windows grows.
None of the mentioned in the template of this issue options help:
experimentalMemoryManagement: true
numTestsKeptInMemory: 0
Cypress Mode
cypress run
Cypress Version
13.12.0
Browser Version
Chrome 125
Node version
v18.16.1
Operating System
macOS 14.4.1
Memory Debug Logs
cannot get them with the instructions provided
Other
No response
The text was updated successfully, but these errors were encountered:
That's right, it's the easiest way to reproduce and debug the issue. Initially we faced the issue during cypress run on CI after we added 30nth test to a spec.
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.
Test code to reproduce
We have a spec with 30+ tests, all the tests with number 30+ start failing due to memory issues
WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance
.Research's shown that it might be related to the fact that the
Detached Window
s are kept in the memory. It can be easily reproduced by retrying a single test multiple times and then inspecting Memory snapshot.Detached Window
instances in turn hold the pointers to the internal objects of our application preventing garbage collection.Here I restarted test couple of times and the amount of
Detached Window
s grows.None of the mentioned in the template of this issue options help:
experimentalMemoryManagement: true
numTestsKeptInMemory: 0
Cypress Mode
cypress run
Cypress Version
13.12.0
Browser Version
Chrome 125
Node version
v18.16.1
Operating System
macOS 14.4.1
Memory Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: