On Sat, Apr 27, 2019 at 03:43:36AM +0000, Marek Sliwa wrote: > Running gphoto2 mingw 64 bit binaries on Windows IoT Core and it is unable to > detect or load the usb library. Reproduce using : gphoto2.exe --debug > --debug-logfile=my-logfile.txt --auto-detect --summary > > The same binaries on desktop Windows 10 work just fine. However on Windows 10 > desktop this exact same error occurs when using libgphoto2 library directly > from a UWP app. Faults at the same point with same output trying to load the > usb1 iolib. > > Seems like it is unable to access or enumerate usb devices and the error > itself is misleading? > > This occurs with or without winusb driver installed for the Nikon camera and > weather it is connected or not. Seems like a general failure. Any ideas? > > Libusb is the cause or the error: > gp_port_library_list > libusb1.c:216<https://github.com/msys2/MINGW-packages/issues/0>: Out of > memory: 'descs = calloc (nrofdevs, sizeof(descs[0]))' failed.
I guess nrofdevs is 0, and we erronously consider the NULL return as a bug. So the libusb you use here sees no USB devices, and this needs to be fixed. Ciao, Marcus _______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel