From 6ad2367a279517ec05139a3dc3da415424d41998 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 18 Oct 2026 13:12:19 -0500 Subject: [PATCH] keep the previous region grid when the refresh request fails The IPC reader now replies [] when a handler raises, and process_frames assigned that reply to region_grid unconditionally. The next region lookup then indexed into an empty list and killed the camera's detect process. An empty reply now keeps the current grid until the next daily refresh. --- frigate/video/detect.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/video/detect.py b/frigate/video/detect.py index a2877f83c0..591b57f97e 100644 --- a/frigate/video/detect.py +++ b/frigate/video/detect.py @@ -338,7 +338,12 @@ def process_frames( continue if datetime.now().astimezone(UTC) > next_region_update: - region_grid = requestor.send_data(REQUEST_REGION_GRID, camera_config.name) + updated_grid = requestor.send_data(REQUEST_REGION_GRID, camera_config.name) + + # A failed request replies empty, so keep the current grid + if updated_grid: + region_grid = updated_grid + next_region_update = get_tomorrow_at_time(2) try: