gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
705 stars 116 forks source link

gphoto2 --summary outputs (-1 unspecified error) #567

Open xancudo opened 1 year ago

xancudo commented 1 year ago

Hello,

On PopOS 22.04 using flatpaks for Shotwell, Darktable, and Digikam. All recognize the GoPro 10 Black, but when choosing import, all issue a connection error. They all have libgphoto2-2.5.30 from what I can tell.

Shotwell: Unable to fetch previews from camera, Unspecified error -1

Darktable: Failed to initialize GoPro HERO10 on port xxx,xxx. Likely causes are: possibly locked by another application.

Digicam: Failed to connect to camera. Please check that it is connected and properly turned on.

gphoto2: Error
PTP General Error Error
An error occurred in the io-library ('Unspecified error'): No error description available Error (-1: 'Unspecified error')

In Gnome Files, the camera mounts/unmounts properly and shows GoPro MTP Client Disk Volume, and I can access the data OK. I can mount the SD Card independent, and it works OK.

ps aux and found and killed /usr/libexec/gvfs-gphoto2-volume-monitor, repeated the above but that did not resolve the issue.

I compiled ghoto2 2.5.28 and libgphoto2 2.5.30 on both my Pop system, and an Ubuntu non-GUI server vm. Both do the same thing. Attached the GoPro and gphoto2 --list-ports, and --auto-detect show a GoPro HERO10 Black, but --summary issue the above error.

The non-GUI server vm is running on the same Pop box, under VirtualBox, but the GoPro passes to that OK, so it just seems to be a PTP camera thing, unless I didn't compile some important piece in. I did have to go back and add libusb-dev in the process once, for gphoto2 to see USB devices initially. There is a reference to libusb.c in the debug file, but I'm not sure if its related.

gphoto2 --debug detects the GoPro but when it tried to communicate, those fail.

camera
GoPro HERO10 Black usb:003,007

libgphoto2 and gphoto2 version this version of gphoto2 is using the following software versions and options: gphoto2 2.5.28 gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline libgphoto2 2.5.30 standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, EXIF libgphoto2_port 0.12.1 iolibs: disk ptpip serial usb usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

debug log my-logfile.txt

Thank you!

luzpaz commented 1 year ago

Need gopro label

kalvdans commented 7 months ago

Same here, Ubuntu 24.10 beta. Attaching my logfile: my-logfile.txt

Suspect the gopro firmware, since the ethernet interface that my gopro also exposes over USB, drops and comes back again as I get the error in gphoto2. Camera firmware 1.30. [EDIT] Same thing after updating to firmware 1.50.

kalvdans commented 7 months ago

I reported it to GoPro Support, reference number 14498440. I chatted with Michael.

mijoost commented 1 month ago

This hint may apply here as well: https://github.com/gphoto/libgphoto2/issues/972#issuecomment-2260015235