Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓手机app配合集成libusb1时报错'libusb_handle_events_timeout(port->pl->ctx, &tv)' failed: System call interrupted (perhaps due to signal) (-10) #1074

Open
ArvinSpace opened this issue Jan 8, 2025 · 0 comments

Comments

@ArvinSpace
Copy link

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文件是专门为安卓手机使用定制的。

实际对应的出错位置应该是:

ret = LOG_ON_LIBUSB_E (libusb_handle_events_timeout(port->pl->ctx, &tv));

暂时的解决方案是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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant