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

LibUsb Get Device List - Error Code Handling #1628

Closed
DSheirer opened this issue Aug 16, 2023 · 1 comment
Closed

LibUsb Get Device List - Error Code Handling #1628

DSheirer opened this issue Aug 16, 2023 · 1 comment
Labels

Comments

@DSheirer
Copy link
Owner

DSheirer commented Aug 16, 2023

Describe the bug

On some Linux systems, the TunerManager attempts to discover USB devices. In doing so, it calls LibUsb.getDeviceList() which returns a list of available devices, or it returns a negative value indicating an error code. Currently, sdrtrunk is ignoring the error code and only handling the positive tuner count.

Update sdtrunk to translate the returned negative (ie error) number and consider additional troubleshooting steps that might help to identify what the error is.

Since the intial call to getDeviceList() produces an error, any subsequent call to LibUsb.freeDeviceList() results in an error because the device list was not initialized, so don't call free device list.

To Reproduce
Not reproducible. As reported by a user.

Screenshots
image

Desktop (optional - complete the following information):

  • OS: Linux

Additional context
As reported on Discord by user @roosta

@DSheirer DSheirer added the bug label Aug 16, 2023
@DSheirer
Copy link
Owner Author

Consider closing #1600 as a duplicate to this issue.

DSheirer pushed a commit that referenced this issue Aug 18, 2023
…creased logging during error code -99 to determine what causes this error condition, primarily on some Linux systems.
DSheirer added a commit that referenced this issue Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant