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 Leakage When Navigating Away from Home Page with dash.register_page() #3074

Open
andre996 opened this issue Nov 13, 2024 · 0 comments
Labels
bug something broken P2 considered for next cycle

Comments

@andre996
Copy link

Describe your context

There are issues with memory leakage in our Dash application. Specifically, each time users navigate away from the home page, we observe a memory leak of about 15MB. Objects are getting detached but not fully removed, and each time the user changes tabs, new objects are created while the old ones are not removed.

  • replace the result of pip list | grep dash below
dash==2.17.0
gunicorn==20.0.4
pandas>=1.1.5
  • if frontend related, tell us your Browser, Version and OS
    • Browser chrome

Describe the bug

  • Navigation: We use dash.register_page() to add a new page to our application. Users navigate away from the home page using dcc.Location and dcc.Link
  • Component Setup: The home page layout includes an ag-Grid component within a dcc.Tabs component.
  • Callbacks: A callback renders content dynamically based on the selected tab within dcc.Tabs.

Expected behavior

Remove detached objects

Screenshots

Image

@gvwilson gvwilson changed the title [BUG] Memory Leakage When Navigating Away from Home Page with dash.register_page() Memory Leakage When Navigating Away from Home Page with dash.register_page() Nov 15, 2024
@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants