Skip to content

Improve error message when webcam config constraints don't match#5824

Open
hexbabe wants to merge 2 commits intoviamrobotics:mainfrom
hexbabe:RSDK-improve-webcam-constraint-error
Open

Improve error message when webcam config constraints don't match#5824
hexbabe wants to merge 2 commits intoviamrobotics:mainfrom
hexbabe:RSDK-improve-webcam-constraint-error

Conversation

@hexbabe
Copy link
Member

@hexbabe hexbabe commented Mar 4, 2026

Summary

Improves the error message when a webcam's configured constraints (resolution, frame format) don't match any available driver. The old message just listed devices tried — the new one also suggests actionable fixes:

"You can try tweaking or relaxing the constraints, e.g. removing or changing the height/width, changing to a valid frame format, etc."

Manual Tests

N/A — error message change only

PR Process

1 reviewer

Add actionable guidance to the error message when no driver matches
the configured constraints, suggesting users try relaxing width/height
or changing frame format.
@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Mar 4, 2026
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Mar 4, 2026
@hexbabe hexbabe marked this pull request as ready for review March 4, 2026 23:40
"failed to find a queryable driver that matches the config constraints. Devices tried: %s",
"failed to find a queryable driver that matches the config constraints. "+
"You can try tweaking or relaxing the constraints, e.g. removing or changing the height/width, "+
"frame format, etc. Devices tried: %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Devices tried list include devices the height/width available on those drivers?, of not, is there a way to find that out?, I agree this message is better than the previous one, but it can be hard for the user to blindly try different height/width, frame formats, etc until one works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the log push users to the webcam discovery service here?

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

Labels

safe to test This pull request is marked safe to test from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants