-
Notifications
You must be signed in to change notification settings - Fork 312
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
gp_camera_exit
returns -1: Unspecified error
for Fujifilm X100V
#950
Comments
this happens in camera_exit encounters a protocol error or so. can you reproduce this with gphoto2 and capture a debugtrace? |
From the code it looks like |
well actually reset does not call the camera driver. |
Here is the output from
In "USB Raw Conv. / Backup Restore" mode (which requires Fuji-specific software on the PC side, as far as I can tell) I get different output:
|
Does this happen with ligphoto2 2.5.31 ? |
Yes it does. |
attaching output from |
Describe the bug
Function
gp_camera_exit
returns-1: Unspecified error
for Fujifilm X100VThis bug manifested itself in my workflow originally via the
rapid-photo-downloader
tool. There is a bug report here: damonlynch/rapid-photo-downloader#117I was able to reproduce the original problem using with a C program linking only to libgphoto2 (see below)
Name the camera
Camera name as shown by gphoto2 --auto-detect or USB IDs
libgphoto2 and gphoto2 version
output of: gphoto2 --version
To Reproduce
Steps to reproduce the behavior:
Compile the following C program:
with
gcc test.c -lgphoto2
In my case, I'm testing with a locally installed copy of libgphoto2:
gcc test.c -I/home/ciaron/opt/libgphoto2/2.5.28/include/gphoto2 -L/home/ciaron/opt/libgphoto2/2.5.28/lib -lgphoto2 -lgphoto2_port -lm
but the error exists with the standard apt-installed version.
Output is:
expected output:
Workaround
The error seems to have been introduced by the addition of the Fujifilm X100V model to the codebase at version 2.5.28.
By removing the relevant line (2605) in camlibs/ptp2/library.c (the FujiFilm X100V ID), and recompiling, I was able to run the test code without error.
Let me know if I can help with testing any patches etc.
The text was updated successfully, but these errors were encountered: