From f52d7bbe539620e41ef2c0b8e8bbc99debbdda33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Thu, 7 May 2026 10:04:44 +0200 Subject: [PATCH] runtime_plot: bump last_values timeout 1s -> 5s, narrow except Dispatch chain (queue poll + Qt signal/slot + main thread) can exceed 1s on loaded machines; bare except masked everything other than queue.Empty. --- src/testium/api/runtime_plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/testium/api/runtime_plot.py b/src/testium/api/runtime_plot.py index 0fc3149..9d2ff63 100644 --- a/src/testium/api/runtime_plot.py +++ b/src/testium/api/runtime_plot.py @@ -1,5 +1,6 @@ import sys import os +import queue import multiprocessing as mp from threading import Timer from time import sleep, monotonic @@ -367,7 +368,7 @@ class RuntimePlot: self.msg_queue_in.get() self.msg_queue_out.put({"command": "last_values"}) try: - res = self.msg_queue_in.get(timeout=1) - except: + res = self.msg_queue_in.get(timeout=5) + except queue.Empty: raise ETUMRuntimeError(f"Impossible to retrieve the last values of the \"{self.name}\" plot") return res