From 02f75d3b1fbdeeff1ae0f7a3a0fda5cd6b6bad86 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 17 Jun 2025 13:11:19 -0600 Subject: [PATCH] Fixes (#18751) * Catch intel GPU stats decode error * Add Vietnamese --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> --- frigate/util/services.py | 13 ++++++++----- web/src/lib/const.ts | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frigate/util/services.py b/frigate/util/services.py index b9d65ce2f..137e3aa20 100644 --- a/frigate/util/services.py +++ b/frigate/util/services.py @@ -306,11 +306,14 @@ def get_intel_gpu_stats(sriov: bool) -> Optional[dict[str, str]]: if sriov: intel_gpu_top_command += ["-d", "sriov"] - p = sp.run( - intel_gpu_top_command, - encoding="ascii", - capture_output=True, - ) + try: + p = sp.run( + intel_gpu_top_command, + encoding="ascii", + capture_output=True, + ) + except UnicodeDecodeError: + return None # timeout has a non-zero returncode when timeout is reached if p.returncode != 124: diff --git a/web/src/lib/const.ts b/web/src/lib/const.ts index 44bedc9c3..36103f77c 100644 --- a/web/src/lib/const.ts +++ b/web/src/lib/const.ts @@ -10,6 +10,7 @@ export const supportedLanguageKeys = [ "nb-NO", "zh-CN", "yue-Hant", + "vi", "th", "he", "ru",