fix(flomni): avoid XRayEye GUI RPC timeouts #208

Open
wyzula_j wants to merge 1 commits from fix/temp-xray-eye-timeout-fix into main
Owner

##Description
This is a narrow hotfix for RPC timeouts seen during flOMNI XRayEye alignment gui.

XRayEye now avoids doing potentially blocking BEC/device operations directly on the Qt GUI thread. Those operations are moved to a small background thread path, while the GUI-facing methods return faster to the RPC caller. Live-view setup and Fit tab initialization are also deferred so widget construction and common alignment calls are less likely to block the GUI event loop.

Additional Comments

This is not the final architecture. The new background thread reduces the immediate beamline timeout risk, but it still has lifecycle limitations: running device calls cannot be forcibly interrupted, and shutdown can only wait briefly for them to finish. The proper fix should come from the upcoming bec_widgets worker/thread infrastructure.

##Description This is a narrow hotfix for RPC timeouts seen during flOMNI XRayEye alignment gui. XRayEye now avoids doing potentially blocking BEC/device operations directly on the Qt GUI thread. Those operations are moved to a small background thread path, while the GUI-facing methods return faster to the RPC caller. Live-view setup and Fit tab initialization are also deferred so widget construction and common alignment calls are less likely to block the GUI event loop. ## Additional Comments This is not the final architecture. The new background thread reduces the immediate beamline timeout risk, but it still has lifecycle limitations: running device calls cannot be forcibly interrupted, and shutdown can only wait briefly for them to finish. The proper fix should come from the upcoming `bec_widgets` worker/thread infrastructure.
wyzula_j added 1 commit 2026-05-17 21:29:05 +02:00
fix(flomni): avoid XRayEye GUI RPC timeouts
CI for csaxs_bec / test (push) Successful in 1m36s
CI for csaxs_bec / test (pull_request) Successful in 1m32s
9321ef4c8e
wyzula_j self-assigned this 2026-05-17 21:29:16 +02:00
wyzula_j requested review from appel_c 2026-05-17 21:29:30 +02:00
wyzula_j requested review from holler 2026-05-17 21:29:30 +02:00
wyzula_j requested review from perl_d 2026-05-17 21:29:30 +02:00
wyzula_j requested review from wakonig_k 2026-05-17 21:29:30 +02:00
All checks were successful
CI for csaxs_bec / test (push) Successful in 1m36s
CI for csaxs_bec / test (pull_request) Successful in 1m32s
Required
Details
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/temp-xray-eye-timeout-fix:fix/temp-xray-eye-timeout-fix
git checkout fix/temp-xray-eye-timeout-fix
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#208