Skip to content

fix(Camera): no fsync warning on RVC4 devices that have no fsync controller - #2348

Open
aljazkonec1 wants to merge 1 commit into
developfrom
fix/rvc4-no-fsync-warning-without-fsync
Open

aljazkonec1 wants to merge 1 commit into
developfrom
fix/rvc4-no-fsync-warning-without-fsync

Conversation

@aljazkonec1

@aljazkonec1 aljazkonec1 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What: on RVC4 devices without an fsync controller (OAK4-S R1/R3), Camera logs "no fsync" at debug level, not as a warning. INPUT mode still fails, and a failed controller still warns.
Root cause: the default AUTO frame sync mode counts as an fsync request, so these devices warned once for each camera, which the user cannot fix (the code is older than #2206).
Proof: Weekly RGB job, 25 examples fail on this warning; before/after on an OAK4-S R1 board.

…roller

OAK4-S R1/R3 has no fsync controller. A camera in the default AUTO frame
sync mode counts as a fsync request, so each camera printed a warning that
the user cannot fix. Log it at debug level on these devices.
@aljazkonec1 aljazkonec1 added Low impact Small bugfixes, tests, simple changes testable Trigger PR testing, latest python build, and Core CI/CD labels Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Camera::buildStage2 now logs when the fsync controller is unavailable and disabled. When fsync is not disabled, the existing requested-fsync warning path remains.

Changes: Camera fsync fallback

Layer / File(s) Summary
Unavailable controller handling
device/rvc4/src/pipeline/node/Camera/Camera.cpp
When the fsync controller is unavailable and disabled, Camera::buildStage2 logs that the camera runs without fsync. Otherwise, the existing warning path remains.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: sb-lxn

Merge Risk: Minimal · up to 5d281

This change lowers a repeated, unactionable warning to debug level on devices that have no fsync hardware. Explicit INPUT requests and real controller failures still report as before, so it is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: a fix in Camera that removes the no-fsync warning on RVC4 devices that lack an fsync controller. The raw summary confirms Camera::buildStage2 now logs that the camera runs …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the change: a fix in Camera that removes the no-fsync warning on RVC4 devices that lack an fsync controller. The raw summary confirms Camera::buildStage2 now logs that the camera runs without fsync when the controller is unavailable and disabled. The objectives describe lowering that message from warning to debug level for OAK4-S R1/R3 with AUTO mode. The title says 'no fsync warning' and does not mention the level change, but it still covers the main point. Title is specific and concise.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the camera's way,
No fsync controller? Logs the day.
When fsync sleeps, the message shows,
When requested, the warning flows.
One small note, then off I go!

@aljazkonec1

Copy link
Copy Markdown
Collaborator Author

Before/after on an OAK4-S R1 board (TCP). Same host build; only DEPTHAI_DEVICE_RVC4_FWP changes (both packages are CI builds). Script: one Camera on CAM_A at 640x400. AUTO runs under test_wrapper as the CI examples do; OFF and INPUT run for 150 frames.

Frame sync mode Base fwp (develop 4d2642c) Head fwp (this PR)
AUTO (default) [Camera(0)] [warning] Fsync was requested, but the fsync controller is not available. Disabling fsync for camera socket CAM_A. no fsync warning
OFF [Camera(0)] [warning] Fsync not OK, not using it.; 150 frames at 30.3 fps no warning; 150 frames at 30.3 fps
INPUT start fails: Frame sync INPUT mode requested, but the fsync controller is not available. same error

The fwp of develop before #2206 (483e9e8) gives the same two warnings as the base, so the warning is older than #2206.

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

Labels

Low impact Small bugfixes, tests, simple changes testable Trigger PR testing, latest python build, and Core CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant