Skip to content

Fix dangling device references after successful device opening#20

Merged
rigexpert merged 1 commit intorigexpert:mainfrom
alexey-lysiuk:fix_open_device
Oct 23, 2025
Merged

Fix dangling device references after successful device opening#20
rigexpert merged 1 commit intorigexpert:mainfrom
alexey-lysiuk:fix_open_device

Conversation

@alexey-lysiuk
Copy link
Copy Markdown
Contributor

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
@rigexpert rigexpert merged commit b602d90 into rigexpert:main Oct 23, 2025
@rigexpert
Copy link
Copy Markdown
Owner

Thanks

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

2 participants