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

Free resources associated with layout and cached features when browsing to a new region in worker #4860

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

cmdcolin
Copy link
Collaborator

The current code fails to free resources associated with the layout, which includes a pointer to the features, when you browse to a new region

This is because it tries to clear the layout in a freeResourcesInClient function, but it needs to run on the worker

This changes it to run the code on the worker

@cmdcolin
Copy link
Collaborator Author

Possible fix towards #4844

@cmdcolin cmdcolin force-pushed the free_resources_in_worker branch 3 times, most recently from e6a1d0d to c9e05a3 Compare February 25, 2025 16:26
@cmdcolin
Copy link
Collaborator Author

i believe a tool like memlab should be employed to properly search for memory leaks https://github.com/facebook/memlab

@cmdcolin
Copy link
Collaborator Author

I can confirm that this should fix a major memory leak

Screenshot From 2025-02-27 17-18-25

there is a failing CI test but can be reviewed

@cmdcolin cmdcolin force-pushed the free_resources_in_worker branch from c9e05a3 to 480e5e8 Compare February 28, 2025 03:12
@cmdcolin cmdcolin force-pushed the free_resources_in_worker branch from 9d3fa99 to ab8d5f4 Compare February 28, 2025 03:46
@cmdcolin cmdcolin force-pushed the free_resources_in_worker branch from ab8d5f4 to 49d7311 Compare February 28, 2025 04:45
@cmdcolin cmdcolin force-pushed the free_resources_in_worker branch from 5967db3 to 37bb5ca Compare February 28, 2025 13:18
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.

1 participant