-------- Original-Nachricht --------
> Datum: Mon, 12 Nov 2012 20:09:27 +0000
> Von: Pete Batard <p...@akeo.ie>
> An: libusbx-devel@lists.sourceforge.net
> Betreff: Re: [Libusbx-devel] Crashes

> 1. What is the exact version of libusbx you are using (should be 
> something like 1.0.14.10586)?

1.0.14.10586

> 2. On which platform?

Windows XP.

> 3. Have you tested only that platform, or are you seeing the problem on 
> other platforms?

I'll tested it on Linux, too. But the version of libusbx might be a little 
older: 1.0.14.x

> 4. Have you tried other HID keyboards or devices? Did they also produce 
> a crash, or was it just the Cherry one?

I used a Logitech headphone, but nothing special happened.

> 5. Does the app crash on exit or during the loop?

Well, it crashes before libusb_exit().

> Now, I am seeing the following issue with your code on Windows when 
> running git latest, past the 32 mark:
> 
> libusbx: error [set_hid_interface] program assertion failed: max USB 
> interfaces reached for HID device
> 
> So I guess that, at least with regards to HID on Windows, there is 
> probably something that needs to be fixed (though the likelihood of 
> someone making 32 concurrent calls to get_device_list is fairly low, so, 
> while we definitely want to fix it ASAP, I wouldn't see it as high 
> priority).

This is just a simple code for reproducing an error with PyUSB using libusbx as 
backend.
Via PyUSB I check every 2 seconds, if a usb device has been attached or 
dettached on a specific usb hub. After 32 times, I get the error
"No such device (it may have been disconnected)".

The developer of PyUSB said, that it may has to do something with memory 
management in python.

> I'm also having a massive déjà vu with regards to issuing a bunch of 
> get_device_list() in succession, to try to produce an error. I think we 
> fixed something there not so long ago, but I can't figure out when that 
> occurred. Pretty sure it was for libusbx, yet the thread where that 
> happened eludes me...

Well, I'm using the latest libusx version...

Best regards
Stefano

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to