Here the debug log what I actived before I call libusb_get_string_descriptor_ascii()
[timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.953095] [00000b1c] libusbx: debug [composite_submit_control_transfer] using interface 3 [ 0.953095] [00000b1c] libusbx: debug [libusb_claim_interface] interface 3 [ 0.953095] [00000b1c] libusbx: debug [hid_claim_interface] claimed interface 3 [ 0.953095] [00000b1c] libusbx: debug [libusb_get_config_descriptor] index 0 [ 0.953095] [00000b1c] libusbx: debug [parse_endpoint] skipping descriptor 25 [ 0.953095] [00000b1c] libusbx: debug [parse_endpoint] skipping descriptor 25 [ 0.953095] [00000b1c] libusbx: debug [parse_endpoint] skipping descriptor 25 [ 0.953095] [00000b1c] libusbx: debug [windows_assign_endpoints] (re)assigned endpoint 83 to interface 3 [ 0.953095] [00000b1c] libusbx: debug [auto_claim] auto-claimed interface 3 for control re quest [ 0.953095] [00000b1c] libusbx: debug [hid_submit_control_transfer] will use interface 3 ERROR in retrieving string descriptor: LIBUSB_ERROR_NO_MEM -------- Original-Nachricht -------- > Datum: Fri, 26 Oct 2012 19:10:25 +0800 > Von: Xiaofan Chen <xiaof...@gmail.com> > An: libusbx-devel@lists.sourceforge.net > Betreff: Re: [Libusbx-devel] Bug in get_string_descriptor? > On Fri, Oct 26, 2012 at 6:21 PM, Stefano Di Martino <stefan...@gmx.net> > wrote: > > Hi, > > I have the strange problem, that when I'm using pyUSB with libusbx as > backend I get the error "Insufficient memory". > > I tried to use then libusbx directly and it end up in an similar error: > > > > "ERROR in retrieving string descriptor: LIBUSB_ERROR_NO_MEM" > > > > I have extended listdev.c: > > > > // ... > > char data[50]; > > > > ret = libusb_get_string_descriptor_ascii(handle, desc.iManufacturer, > (unsigned char*) data, 29); > > > > if (ret < 0) { > > const char *error = libusb_error_name (ret); > > printf("ERROR in retrieving string descriptor: %s\n", error); > > exit(1); > > } > > > > > > I get an similar error when I'm using xusb.c: > > > > Reading string descriptors: > > libusbx: warning [auto_claim] program assertion failed - autoclaim_count > was nonzero > > libusbx: warning [auto_claim] program assertion failed - autoclaim_count > was nonzero > > > > I'm using the dll of libusbx-1.0.14 for Windows. > > Any ideas? > > The warnings are just a warning and may not be the real problem. You > should post more debug logs. > > > -- > Xiaofan > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > libusbx-devel mailing list > libusbx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libusbx-devel ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel