Skip to content

NVR with realtime local object detection for IP cameras

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

Josh Hawkins7b3556e4ad2e
diff --git a/frigate/object_processing.py b/frigate/object_processing.py
index dfaf894f72..484f4a0824 100644
--- a/frigate/object_processing.py
+++ b/frigate/object_processing.py
@@ -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)