Skip to content

Fix dangling device references after successful device opening #20

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexey-lysiuk
Copy link

These erroneous references to devices prevented further usage of libusb on macOS A bunch of the following errors were reported during call to libusb_exit()

libusb: error [darwin_cleanup_devices] device still referenced at libusb_exit

The next call to libusb_init() failed with the following error

libusb: error [darwin_first_time_init] libusb_device reference not released on last exit. will not continue

To reproduce the issue, it's enough to add the second call to get_devinfo() function to fobos_devinfo_main.c Without this change, the second enumeration could not find any devices with FobosSDR connected

Fix #19

These erroneous references to devices prevented further usage of libusb on macOS
A bunch of the following errors were reported during call to libusb_exit()
> libusb: error [darwin_cleanup_devices] device still referenced at libusb_exit
The next call to libusb_init() failed with the following error
> libusb: error [darwin_first_time_init] libusb_device reference not released on last exit. will not continue

To reproduce the issue, it's enough to add the second call to get_devinfo() function to fobos_devinfo_main.c
Without this change, the second enumeration could not find any devices with FobosSDR connected

Fix rigexpert#19
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.

SDR++ crashes on start with Fobos SDR attached
1 participant