I wrote a program using libusbx 1.0.17, which is the latest release version.
When calling libusb_control_transfer, the program stalls.
After some investigation, I finally got the log, it shows that the program has
entered an infinite loop.
The program keeps printing the following errors
[1387299689.201166] [00000d30] libusbx: debug [usbi_add_pollfd] add fd 2 events
1
[1387299689.201166] [00000d30] libusbx: warning [usbi_fd_notification] internal
signalling write failed
[1387299689.201166] [00000d30] libusbx: debug [libusb_get_next_timeout] next
timeout in 1.000000s
[1387299689.201166] [00000d30] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[1387299689.201166] [00000d30] libusbx: debug [handle_events] poll() 3 fds with
timeout in 1000ms
[1387299689.201166] [00000d30] libusbx: warning [usbi_poll] invalid fd
[1387299689.201166] [00000d30] libusbx: debug [handle_events] poll() returned -1
[1387299689.201166] [00000d30] libusbx: error [handle_events] poll failed -1
err=9
It seems this error is related to "warning [usbi_fd_notification] internal
signalling write failed"
This internal signalling write failed caused usbi_poll fail on "invalid fd"
Please help to fix this issue.
---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/165
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel