Skip to content

[🐛 Bug]: Possible EventEmitter memory leak detected at SessionManager #14297

@mato533

Description

@mato533

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

v20.18.0

Mode

WDIO Testrunner

Which capabilities are you using?

{
    browserName: 'chrome',
}

What happened?

Too many listener were registered at SessionManager.
As a result following log is appeared.

https://github.com/webdriverio/webdriverio/actions/runs/13893726286/job/38870400774

[0-2] (node:7859) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 command listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

What is your expected behavior?

The log is not appeared.

How to reproduce the bug.

Run CI and check the log for test runner.

Relevant log output

[0-2] (node:7859) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 command listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions