Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4l2loopback: report per-device errors when no device was chosen #62

Open
letmaik opened this issue May 30, 2021 · 0 comments
Open

v4l2loopback: report per-device errors when no device was chosen #62

letmaik opened this issue May 30, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers Linux This issue appears on Linux

Comments

@letmaik
Copy link
Owner

letmaik commented May 30, 2021

Currently, if device=".." is not used with v4l2loopback then devices from 0 to 100 are tried in sequence and all per-device error messages are swallowed and replaced by a final error "No v4l2 loopback device found..." (there is one exception to this which is that permission errors are raised immediately and not swallowed, as they would appear with all devices). Thus, to diagnose problems, a specific device has to be chosen such that the actual error is returned in the exception. This is annoying and could be improved.

One problem with reporting all per-device errors is that nearly all of them will be "Device ... does not exist" which is not very interesting. Only other kinds of errors should be included in the final exception message to prevent a big wall of text. Alternatively, same error messages could be grouped together.

@letmaik letmaik added enhancement New feature or request Linux This issue appears on Linux labels May 30, 2021
@letmaik letmaik added the good first issue Good for newcomers label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Linux This issue appears on Linux
Projects
None yet
Development

No branches or pull requests

1 participant