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

Memory leak with previewImagesInEditor #579

Closed
p1gp1g opened this issue Jan 24, 2024 · 0 comments · Fixed by #592
Closed

Memory leak with previewImagesInEditor #579

p1gp1g opened this issue Jan 24, 2024 · 0 comments · Fixed by #592
Labels

Comments

@p1gp1g
Copy link
Contributor

p1gp1g commented Jan 24, 2024

Describe the bug
There is a memory leak if the textarea contains many images (like 20+) with previewImagesInEditor = true. The application's memory usage amounts to GB and is constantly increasing.

This has been tested with Firefox on Windows and Linux.

To Reproduce
I've attached an example, which is the demo with some images and previewImagesInEditor = true. The images come from https://fr.wikipedia.org/wiki/Chat.

Steps to reproduce the behavior:

  1. Download and unzip poc.zip
  2. Open a simple http server where the files were extracted
  3. Open about:processes with Firefox to see the memory consumption
  4. Open the http server webpage with Firefox
  5. See the memory usage increasing
  6. Close the webpage if you don't want your browser being killed out of memory

Version information

  • OS: Windows, Linux
  • Browser: Firefox 121.0
  • EasyMDE version: 2.18.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant