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

fix: memory leak on reloading #631

Merged
merged 1 commit into from
Nov 15, 2022
Merged

fix: memory leak on reloading #631

merged 1 commit into from
Nov 15, 2022

Conversation

dubisdev
Copy link
Contributor

We were reloading only the two renderer processes. This was causing the main process to continue subscribed to older renderers that were not existing.

(node:22748) MaxListenersExceededWarning: Possible EventEmitter memory leak detected.
11 render-view-deleted listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

Now when using the reload command, both the main process and the renderer processes will be reloaded. This makes Cerebro to reload a bit slower but avoids memory leaks.

@dubisdev dubisdev merged commit e1a6545 into master Nov 15, 2022
@ogustavo-pereira ogustavo-pereira deleted the fix-memory-leak branch February 5, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants