-
Notifications
You must be signed in to change notification settings - Fork 674
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
Creating videos creates memory-leak warning on the 11th test in testcafe docker image testcafe:1.20.0 #7188
Comments
Thank you for the shared information. I've reproduced the issue. |
Release v1.20.1-rc.2 addresses this. |
I still get this warning / memory leak on 10 concurrent tests inside a custom docker container |
Hi, @pschmolke ! |
Yes sure, I have a directory for tests that can run concurrently and ones that cannot. The output and cli param can be seen below:
Edit: Continues to exists in TestCafe version |
Hi @pschmolke Thank you for the information. I reproduced the issue. For the team: use the example from the description to reproduce the issue by adding the |
Release v2.0.1-alpha.1 addresses this. |
What is your Scenario?
Running multiple tests and recording videos for each
What is the Current behavior?
the 11th test throws a MaxListenersExceededWarning
(node:19) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 Page.screencastFrame listeners added to [Chrome]. Use emitter.setMaxListeners() to increase limit
(Use
node --trace-warnings ...
to show where the warning was created)What is the Expected behavior?
there should be no MaxListenersExceededWarning, after any number of tests
as of docker image version 1.19.0 no warning was thrown, so something might have changed in the amount of Page.screencastFrame listener that are registered
What is your public website URL? (or attach your complete example)
https://github.com/GeorgZentgraf/testcafe-bug
What is your TestCafe test code?
see test.spec.ts
Your complete configuration file
.testcaferc.json
Your complete test report
docker run test
Running tests in:
Getting Started
✓ 1
✓ 2
✓ 3
✓ 4
✓ 5
✓ 6
✓ 7
✓ 8
✓ 9
✓ 10
(node:19) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 Page.screencastFrame listeners added to [Chrome]. Use emitter.setMaxListeners() to increase limit
(Use
node --trace-warnings ...
to show where the warning was created)✓ 11
✓ 12
Screenshots
No response
Steps to Reproduce
docker build . -t test
docker run test
TestCafe version
docker image testcafe/testcafe:1.20.0
Node.js version
No response
Command-line arguments
default from testcafe docker image
Browser name(s) and version(s)
Chrome 103.0.5060.114
Platform(s) and version(s)
No response
Other
The warning doen't show, when using the testcafe image version 1.19.0
Might be related to #7047
The text was updated successfully, but these errors were encountered: