Skip to content
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

EventEmitter memory leak #28368

Closed
rex4539 opened this issue Nov 3, 2024 · 2 comments
Closed

EventEmitter memory leak #28368

rex4539 opened this issue Nov 3, 2024 · 2 comments
Labels
A-Memory Memory leaks, leak hunting tools O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@rex4539
Copy link

rex4539 commented Nov 3, 2024

Steps to reproduce

  1. Log in to Element.

Outcome

What did you expect?

No memory leaks.

What happened instead?

2024-11-03T03:50:43.127Z W Possible EventEmitter memory leak detected. 11 RoomState.events listeners added. Use emitter.setMaxListeners() to increase limit
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 RoomState.events listeners added. Use emitter.setMaxListeners() to increase limit
2024-11-03T03:50:44.792Z W Possible EventEmitter memory leak detected. 11 RoomState.members listeners added. Use emitter.setMaxListeners() to increase limit
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 RoomState.members listeners added. Use emitter.setMaxListeners() to increase limit

Operating system

macOS 15.1

Application version

Element Nightly 2024110101

How did you install the app?

https://packages.element.io/nightly/install/macos/index.html

Homeserver

matrix.org

Will you send logs?

Yes

@rex4539
Copy link
Author

rex4539 commented Nov 3, 2024

log-1.log

@dosubot dosubot bot added A-Memory Memory leaks, leak hunting tools O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Nov 3, 2024
@t3chguy
Copy link
Member

t3chguy commented Nov 3, 2024

11 listeners makes a memory leak not. If it was hundreds or growing then it'd be a leak. This is just a very shared model.

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Memory Memory leaks, leak hunting tools O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

2 participants