question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating videos creates memory-leak warning on the 11th test in testcafe docker image testcafe:1.20.0

See original GitHub issue

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:

  • Chrome 103.0.5060.114 / Alpine Linux 3.17_alpha20220715

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

  1. (install docker desktop)
  2. clone repo
  3. run docker build . -t test
  4. run 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Aug 4, 2022

Release v1.20.1-rc.2 addresses this.

0reactions
github-actions[bot]commented, Sep 6, 2022

Release v2.0.1-alpha.1 addresses this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

testcafe - UNPKG
20, * TestCafe test fails if you specify a custom option as a command line argument ([#6426](https://github.com/DevExpress/testcafe/issues/6426)).
Read more >
testcafe - npmfs
Debugging in the Docker image can now be enabled with the `--inspect` and ... TestCafe no longer creates temporary video files in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found