You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
安卓手机app配合集成libusb1时报错如下: ERROR [gp_libusb1_check_int [libusb1android2.c:853]] 'libusb_handle_events_timeout(port->pl->ctx, &tv)' failed: System call interrupted (perhaps due to signal) (-10)
Describe the bug
安卓手机app配合集成libusb1时报错如下:
ERROR [gp_libusb1_check_int [libusb1android2.c:853]] 'libusb_handle_events_timeout(port->pl->ctx, &tv)' failed: System call interrupted (perhaps due to signal) (-10)
libusb1android2.c文件是专门为安卓手机使用定制的。
实际对应的出错位置应该是:
libgphoto2/libgphoto2_port/libusb1/libusb1.c
Line 841 in e6fa2e5
暂时的解决方案是
timeout = 0; // FIXME 临时设置为0,可行
不知道是不是只有在安卓手机上使用有这个问题,也不知道是否有更加优雅完善的解决方案。
Name the camera
Sony Alpha-A7 III (PC Control)
libgphoto2 and gphoto2 version
libgphoto2: 2.5.31
libusb1: 1.0.27
To Reproduce
Steps to reproduce the behavior:
安卓手机应用,使用libusb1库并且在初始化相机前传入USB的文件描述符(我是参考这个集成的libusb1:#918)
完整的日志:
libgphoto2_all.log
The text was updated successfully, but these errors were encountered: