[Bug]: ARB download blocks the GUI thread #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
ARB download currently performs a blocking socket receive loop in the GUI thread.
Current code
This happens inside
on_arb_download().Why this is a bug
Large ARB downloads can freeze the GUI until the transfer finishes or times out.
That is bad behaviour for a desktop instrument-control tool, especially if the user expects the interface to stay responsive during waveform transfer.
Fix approach
Move ARB download into a dedicated
QThreadworker, following the same general pattern already used forScreenshotWorker.The GUI thread should only launch the worker and handle completion, logging, and file saving through a signal.
Status
Local fix already implemented in the current v0.2 working copy.
Still needs commit, push, and hardware verification before closing.
ARB download blocks the GUI threadto [Bug]: ARB download blocks the GUI thread