Skip to content

Fix Workspace.remove_object leaking Inbox-side registrations - #49

Merged
ericgozzi merged 1 commit into
mainfrom
fix/object-removal-registry-leak
Sep 4, 2026
Merged

Fix Workspace.remove_object leaking Inbox-side registrations#49
ericgozzi merged 1 commit into
mainfrom
fix/object-removal-registry-leak

Conversation

@ericgozzi

Copy link
Copy Markdown
Collaborator

remove_object() only forgot the Outbox's persisted material/visibility slots for a removed guid, never the Inbox's own geometry_registry, metadata_registry, object_actions_registry, buttons callback map, or (for a Brep) its brep_viewmesh_registry entry. Any workflow that repeatedly removes and re-adds objects under the same guid built up an unbounded set of stale entries for the life of the process.

Adds Inbox.forget_geometry(), called from remove_object() alongside the existing Outbox cleanup.

remove_object() only forgot the Outbox's persisted material/visibility
slots for a removed guid, never the Inbox's own geometry_registry,
metadata_registry, object_actions_registry, buttons callback map, or
(for a Brep) its brep_viewmesh_registry entry. Any workflow that
repeatedly removes and re-adds objects under the same guid built up an
unbounded set of stale entries for the life of the process.

Adds Inbox.forget_geometry(), called from remove_object() alongside the
existing Outbox cleanup.

@gonzalocasas gonzalocasas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! the PR's description is very hard to read, but that affects nothing anyway ;)

@ericgozzi
ericgozzi merged commit 52bd8be into main Sep 4, 2026
4 checks passed
@ericgozzi
ericgozzi deleted the fix/object-removal-registry-leak branch September 4, 2026 14:49
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