Skip to content

Fix stale annotation indices and redraw watchers after reload - #1914

Open
mattdawkins wants to merge 1 commit into
mainfrom
fix/annotation-reload-cleanup
Open

Fix stale annotation indices and redraw watchers after reload#1914
mattdawkins wants to merge 1 commit into
mainfrom
fix/annotation-reload-cleanup

Conversation

@mattdawkins

Copy link
Copy Markdown
Member

Reloading pipeline annotations could leave stale detections in the frame index and redraw watchers attached to a destroyed viewer. Clear the interval tree directly when replacing annotations, and mount the tooltip after LayerManager setup so its redraw watchers are disposed with the component.

Regression tests cover clearing and repopulating the frame index, stopping redraws after the old viewer unmounts, and updating the replacement viewer once.

Validation:

  • 58 tests passed across LayerManager, TrackStore, CameraStore, and desktop VIAME CSV serialization.
  • Type checking passed.
  • ESLint: no errors; two component-count warnings in the test file.
  • git diff --check passed.

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