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 in foxglove panels from improper usage of states #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achim-k
Copy link

@achim-k achim-k commented Sep 2, 2024

This PR fixes a memory leak in your sensor status panel (@duke-robotics/sensors-status-panel). The main change is to remove state from the dependency array which would cause the useEffect hook to be executed every time state changes, causing a memory leak

Note: It's likely that there are more of such memory leaks in other panels, I haven't checked these.

@achim-k achim-k changed the title Fix memory leak in sensor status panel Fix memory leak in foxglove sensor status panel extension Sep 2, 2024
@maxwellmlin
Copy link
Member

@achim-k Thank you for your contribution. We'll review this in a future club meeting and also check our other panels for this memory leak.

@nathanaelren nathanaelren changed the title Fix memory leak in foxglove sensor status panel extension Fix memory leak in foxglove panels from improper usage of states Sep 7, 2024
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.

2 participants