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 for Ketcher when it is opened inside modal #2912

Closed
Nitvex opened this issue Jul 11, 2023 · 2 comments · Fixed by #3027
Closed

Fix memory leak for Ketcher when it is opened inside modal #2912

Nitvex opened this issue Jul 11, 2023 · 2 comments · Fixed by #3027
Assignees
Labels

Comments

@Nitvex
Copy link
Collaborator

Nitvex commented Jul 11, 2023

Steps to Reproduce

  1. Open Ketcher inside modal
  2. Close the modal
  3. Open Ketcher again
  4. Repeat steps 1-3 multiple times

Actual behavior
User receives memory leak warning:
MicrosoftTeams-image (41)

Expected behavior
Memory leak is eliminated. No warning message is shown.

@Nitvex Nitvex added the bug label Jul 11, 2023
@Nitvex Nitvex added this to the Ketcher 2.13.0-rc.1 milestone Jul 11, 2023
@Nitvex Nitvex self-assigned this Jul 11, 2023
@Nitvex Nitvex changed the title Fix memory leak for Ketcher, when it is opened inside modal Fix memory leak for Ketcher when it is opened inside modal Jul 11, 2023
@Nitvex Nitvex assigned StarlaStarla and unassigned Nitvex Jul 19, 2023
StarlaStarla added a commit that referenced this issue Aug 3, 2023
@StarlaStarla StarlaStarla linked a pull request Aug 3, 2023 that will close this issue
8 tasks
StarlaStarla added a commit that referenced this issue Aug 7, 2023
StarlaStarla added a commit that referenced this issue Aug 7, 2023
StarlaStarla added a commit that referenced this issue Aug 8, 2023
Nitvex pushed a commit that referenced this issue Aug 9, 2023
Zhirnoff added a commit that referenced this issue Aug 9, 2023
…hen-it-is-opened-inside-modal

#2912 - fix memory leak for ketcher when it is opened inside modal
@hellhorse123
Copy link

I still get error:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 layout listeners added. Use emitter.setMaxListeners() to increase limit
when open/close modal with ketcher at many times

@rrodionov91
Copy link
Collaborator

Hi @hellhorse123
Thank you for notifying us. We will check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment