Skip to content

fix(realsense): do not kill the capture loop on a frame timeout - #3622

Draft
jeff-hykin wants to merge 1 commit into
mainfrom
jeff/fix/realsense_frame_timeout
Draft

fix(realsense): do not kill the capture loop on a frame timeout#3622
jeff-hykin wants to merge 1 commit into
mainfrom
jeff/fix/realsense_frame_timeout

Conversation

@jeff-hykin

Copy link
Copy Markdown
Member

wait_for_frames raises RuntimeError on frame timeout as well as on pipeline stop. The capture loop exited on any RuntimeError, so one timeout stopped image capture for good while IMU callbacks kept running (seen on Alfred, related to #3449). Now retries unless the pipeline was actually stopped.

wait_for_frames raises RuntimeError both when the pipeline is stopped and
on a plain frame timeout. The capture loop treated every RuntimeError as
shutdown, so one timeout permanently stopped image capture while the IMU
callbacks kept running. Retry unless the pipeline was actually stopped.
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
dimos/hardware/sensors/camera/realsense/camera.py 0.00% 6 Missing ⚠️
@@            Coverage Diff             @@
##             main    #3622      +/-   ##
==========================================
- Coverage   77.26%   77.25%   -0.01%     
==========================================
  Files        1262     1262              
  Lines      120302   120307       +5     
  Branches    10600    10601       +1     
==========================================
- Hits        92953    92948       -5     
- Misses      24284    24295      +11     
+ Partials     3065     3064       -1     
Flag Coverage Δ
OS-ubuntu-24.04-arm 72.15% <0.00%> (-0.01%) ⬇️
OS-ubuntu-latest 74.05% <0.00%> (-0.01%) ⬇️
Py-3.10 74.05% <0.00%> (-0.01%) ⬇️
Py-3.11 74.05% <0.00%> (-0.01%) ⬇️
Py-3.12 74.05% <0.00%> (-0.01%) ⬇️
Py-3.13 74.05% <0.00%> (-0.01%) ⬇️
Py-3.14 74.05% <0.00%> (-0.01%) ⬇️
Py-3.14t 74.04% <0.00%> (-0.02%) ⬇️
SelfHosted-Large 30.01% <0.00%> (-0.01%) ⬇️
SelfHosted-Linux 35.13% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
dimos/hardware/sensors/camera/realsense/camera.py 26.47% <0.00%> (-0.31%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant