Skip to content

Memory leak fix - #945

Merged
Micheal Parks (micheal-parks) merged 27 commits into
mainfrom
memory-leak-fix
Aug 14, 2026
Merged

Memory leak fix#945
Micheal Parks (micheal-parks) merged 27 commits into
mainfrom
memory-leak-fix

Conversation

@micheal-parks

@micheal-parks Micheal Parks (micheal-parks) commented Aug 14, 2026

Copy link
Copy Markdown
Member

Overview

Fixes a memory leak discovered by Dan, but can be reproduced by re-rendering any geometry coming from a .ply or .stl many times.

The fix is twofold: first destroy and recreate <T> components that have new incoming geometries. This fix isn't sufficient alone and causes a major performance regression since T component setup and destroy is nontrivial. The second part is to do equality tests for mesh geometries just like we do with primitives, and only update entities if the geometry has changed.

@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 67b2929

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@viamrobotics/motion-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-14 17:26 UTC

@micheal-parks
Micheal Parks (micheal-parks) merged commit 2880ef6 into main Aug 14, 2026
8 checks passed
@micheal-parks
Micheal Parks (micheal-parks) deleted the memory-leak-fix branch August 14, 2026 17:26
@claude claude Bot mentioned this pull request Aug 14, 2026
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.

3 participants