ensure we copy current frame to prevent a segfault crash (#16591)

This commit is contained in:
Josh Hawkins 2025-02-14 18:53:07 -06:00 committed by GitHub
parent 9a07505075
commit 7b3556e4ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,7 +406,7 @@ class CameraState:
if current_frame is not None:
self.current_frame_time = frame_time
self._current_frame = current_frame
self._current_frame = np.copy(current_frame)
if self.previous_frame_id is not None:
self.frame_manager.close(self.previous_frame_id)