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 #171

Open
axetroy opened this issue Jun 1, 2024 · 0 comments
Open

Memory leak #171

axetroy opened this issue Jun 1, 2024 · 0 comments

Comments

@axetroy
Copy link

axetroy commented Jun 1, 2024

Environments

  • Framework name: none
  • Framework version: none
  • Component name: none
  • Component version:none
  • Testable Address(optional):none

Description

I found that after each instantiation, there would be Selecto instances that were not destroyed and kept occupying memory.

I have such a scenario, which often needs to be created and then destroyed, which brings memory leaks to my application.

Here are the steps I took to reproduce:

  1. Open story book welcome page and open devTool
  2. Trigger GC in devTool
  3. Take memory snapshot 1
  4. Open another page in storage book (eg. Select in real time)
  5. Go back to story book welcome page
  6. Trigger GC in devTool
  7. Take memory snapshot 2

Snapshot 1:

截屏2024-06-01 13 14 23

Snapshot 2:
截屏2024-06-01 13 15 15

Diff snapshot:

截屏2024-06-01 13 11 07

Theoretically, when the page is switched, the Selecto object should be destroyed and recycled by GC, but in fact it is not.

Selecto@295827 Still accessible

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

No branches or pull requests

1 participant