From 946a10f025220494fa168c48405b79cb94419b42 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 8 Jul 2024 13:54:13 -0600 Subject: [PATCH] Catch error when shutting down --- frigate/object_processing.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index f64e73004..4281438d3 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -658,9 +658,14 @@ class CameraState: def update(self, frame_name, frame_time, current_detections, motion_boxes, regions): # get the new frame - current_frame = self.frame_manager.get( - frame_name, self.camera_config.frame_shape_yuv - ) + try: + current_frame = self.frame_manager.get( + frame_name, self.camera_config.frame_shape_yuv + ) + except FileNotFoundError: + logger.warning(f"Frame for {self.camera_config.name} missing in SHM, this is expected when shutting down.") + return + tracked_objects = self.tracked_objects.copy() current_ids = set(current_detections.keys())