Ticket #170 (assigned defect)

Opened 4 years ago

Last modified 4 years ago

Device is no more listed after some number of loop

Reported by: LudovicRousseau Owned by: hjelmn
Milestone: libusb/libusbx 1.2.0 Component: libusb-1.0 Darwin backend
Keywords: Cc:
Blocked By: Blocks:

Description

The attached program will fail during the 21th loop. The device is no more listed by libusb.

Edit the source code of the sample and change VENDOR_ID/PRODUCT_ID to your own device.

This bug was initialy reported to libusbx at https://github.com/libusbx/libusbx/issues/112

Attachments

testlibusb3.cpp (2.1 KB) - added by LudovicRousseau 4 years ago.

Download all attachments as: .zip

Change History

Changed 4 years ago by LudovicRousseau

comment:2 Changed 4 years ago by hjelmn

  • Milestone set to 1.0.17
  • Owner set to hjelmn
  • Status changed from new to assigned

I have confirmed this issue affects 1.0.16 as well. This might be an issue in IOKit or IOUSBFamily not libusb. Regardless, it will take some time to investigate so no fix/workaround will make it in time for the 1.0.16 release.

Note there isn't an issue in 1.0.16 if the reproducer is modified to only call libusb_init/exit once.

Last edited 4 years ago by hjelmn (previous) (diff)

comment:3 Changed 4 years ago by hjelmn

  • Milestone changed from 1.0.17 to libusb/libusbx 1.2.0

Fix pending for libusb/libusbx 1.2.0

Note: See TracTickets for help on using tickets.