Bug 16844 - gphoto2 unable to communicate with Canon EOS-10D
Summary: gphoto2 unable to communicate with Canon EOS-10D
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5-32-OK MGA5-64-OK advisory
Keywords: PATCH, UPSTREAM, validated_update
Depends on:
Blocks:
 
Reported: 2015-09-28 07:24 CEST by Herbert Poetzl
Modified: 2015-10-07 20:40 CEST (History)
7 users (show)

See Also:
Source RPM: libgphoto-2.5.7-1.mga5.src.rpm
CVE:
Status comment:


Attachments
the proposed log file output (20.31 KB, text/plain)
2015-09-28 07:25 CEST, Herbert Poetzl
Details

Description Herbert Poetzl 2015-09-28 07:24:55 CEST
Description of problem:
gphoto2 -L fails with Canon EOS-10D (which works flawlessly on Mageia 2

Version-Release number of selected component (if applicable):
gphoto2         2.5.6          gcc, popt(m), exif, no cdk, no aa, jpeg, readline
libgphoto2      2.5.7          all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0         gcc, ltdl, no USB, serial lockdev locking

How reproducible:
Always

Steps to Reproduce:
1. connect camera
2. run gphoto2 -L
3.


Detected a 'Canon:EOS 10D'.                                                    

*** Error ***              
Could not establish initial contact with camera

*** Error ***              
An error occurred in the io-library ('Unknown error'): No error description available
*** Error (-102: 'Corrupted data') ***       

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt -L

Please make sure there is sufficient quoting around the arguments.


Reproducible: 

Steps to Reproduce:
Comment 1 Herbert Poetzl 2015-09-28 07:25:46 CEST
Created attachment 7059 [details]
the proposed log file output

CC: (none) => herbert

Comment 2 Samuel Verschelde 2015-09-28 09:18:22 CEST
Hi, Thanks for reporting this. Unfortunately gphoto2 has no dedicated maintainer, although there are packagers that appear to update it from time to time. CC-ing some of them to the bug report.

CC: (none) => anaselli, yann.cantin

Comment 3 Marja Van Waes 2015-09-28 09:27:09 CEST
I googled for

gp_port_usb_close [libusb1.c:428](0): Invalid parameters: 'port && port->pl->dh' is NULL/FALSE.

There's an upstream bug report
http://gphoto-software.10949.n7.nabble.com/Problem-connecting-with-Canon-Rebel-XT-EOS-350D-in-normal-mode-td15180.html

There's a patch that was added in 2.5.8

CC: (none) => marja11

Samuel Verschelde 2015-09-28 09:28:14 CEST

Keywords: (none) => UPSTREAM

Comment 4 Thierry Vignaud 2015-09-29 09:25:43 CEST
Yann, can you push an update to mga5's core/update_testing?
Thanks

CC: (none) => thierry.vignaud

Samuel Verschelde 2015-09-29 09:56:49 CEST

Keywords: (none) => PATCH

Comment 5 Yann Cantin 2015-09-30 22:37:26 CEST
Uploaded patched package for Mageia 5.

gphoto2 should work with Canon EOS-10D now with the updated libgphoto, please test.

Advisory:
========================

gphoto2 failed to establish connection with Canon EOS-10D in normal mode due to a incorrect return value in libgphoto. This update fixes it.

========================

Updated packages in core/updates_testing:
========================
libgphoto2_6-2.5.7-1.1.mga5.i586.rpm
libgphoto2_port12-2.5.7-1.1.mga5.i586.rpm
libgphoto-common-2.5.7-1.1.mga5.i586.rpm
libgphoto-devel-2.5.7-1.1.mga5.i586.rpm 
libgphoto-debuginfo-2.5.7-1.1.mga5.i586.rpm
lib64gphoto2_6-2.5.7-1.1.mga5.x86_64.rpm
lib64gphoto2_port12-2.5.7-1.1.mga5.x86_64.rpm
libgphoto-common-2.5.7-1.1.mga5.x86_64.rpm
lib64gphoto-devel-2.5.7-1.1.mga5.x86_64.rpm
libgphoto-debuginfo-2.5.7-1.1.mga5.x86_64.rpm

From source RPMs:
libgphoto-2.5.7-1.1.mga5.src.rpm

Assignee: bugsquad => qa-bugs
Source RPM: gphoto2-2.5.6-1.mga5.src.rpm => libgphoto-2.5.7-1.mga5.src.rpm

Comment 6 William Kenney 2015-10-01 23:09:13 CEST
(In reply to Yann Cantin from comment #5)

> gphoto2 failed to establish connection with Canon EOS-10D in normal mode due
> to a incorrect return value in libgphoto. This update fixes it.

Yann, would you please suggest a simple command(s) line test to POC then test
that the update fixes bug. I have an Canon EOS camera. This M5 system sees
the camera and is able to transfer files from the camera to the drive.
Gwenview and Dolphin ( File Manager ) move files from the camera.

CC: (none) => wilcal.int

Comment 7 Marja Van Waes 2015-10-02 00:40:27 CEST
@ Herbert,

Could you please update your libgphoto packages with the ones available in updates_testing, to see whether the issue got fixed, and report back here?

@ William

PoC is in the description of this report: 
 connect camera
 run "gphoto2 -L"
 camera is detected
 get error messages (see Description)

Or, observed with a different EOS, in the description here
http://gphoto-software.10949.n7.nabble.com/Problem-connecting-with-Canon-Rebel-XT-EOS-350D-in-normal-mode-td15180.html

If your EOS type isn't affected, then you can still test whether the update doesn't cause any regressions for your Canon
Comment 8 William Kenney 2015-10-02 18:08:06 CEST
In VirtualBox, M5, KDE, 32-bit

Package(s) under test:
gphoto2 libgphoto-common libgphoto2_6 libgphoto2_port12

default install of gphoto2 libgphoto-common libgphoto2_6 & libgphoto2_port12

[root@localhost wilcal]# urpmi gphoto2
Package gphoto2-2.5.6-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto-common
Package libgphoto-common-2.5.7-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_6
Package libgphoto2_6-2.5.7-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_port12
Package libgphoto2_port12-2.5.7-1.mga5.i586 is already installed

Using a Canon EOS T3i ( D600 ) I'm able to connect to the camera.
I can see the images on the cameras sdhc chip using:
"gphoto2 -L"
I can transfer images and videos from the camera to a local drive using:
"gphoto2 -P"
Files transferred can be viewed using Gwenview.
I can trigger the camera using:
"gphoto2 --trigger-capture"

install gphoto2 libgphoto-common libgphoto2_6 & libgphoto2_port12 from updates_testing

[root@localhost wilcal]# urpmi gphoto2
Package gphoto2-2.5.6-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto-common
Package libgphoto-common-2.5.7-1.1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_6
Package libgphoto2_6-2.5.7-1.1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_port12
Package libgphoto2_port12-2.5.7-1.1.mga5.i586 is already installed

I can see the images on the cameras sdhc chip using:
"gphoto2 -L"
I can transfer images and videos from the camera to a local drive using
"gphoto2 -P"
Files transferred can be viewed using Gwenview.
I can trigger the camera using:
"gphoto2 --trigger-capture"
Comment 9 William Kenney 2015-10-02 18:30:37 CEST
In VirtualBox, M5, KDE, 64-bit

Package(s) under test:
gphoto2 libgphoto-common libgphoto2_6 libgphoto2_port12

default install of gphoto2 libgphoto-common libgphoto2_6 & libgphoto2_port12

[root@localhost wilcal]# urpmi gphoto2
Package gphoto2-2.5.6-1.mga5.x86_64 is already installed
[root@localhost wilcal]# urpmi libgphoto-common
Package libgphoto-common-2.5.7-1.mga5.x86_64 is already installed
[root@localhost wilcal]# urpmi libgphoto2_6
Package libgphoto2_6-2.5.7-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_port12
Package libgphoto2_port12-2.5.7-1.mga5.i586 is already installed

Using a Canon EOS T3i ( D600 ) I'm able to connect to the camera.
I can see the images on the cameras sdhc chip using:
"gphoto2 -L"
I can transfer images and videos from the camera to a local drive using:
"gphoto2 -P"
Files transferred can be viewed using Gwenview.
I can trigger the camera using:
"gphoto2 --trigger-capture"

install gphoto2 libgphoto-common libgphoto2_6 & libgphoto2_port12 from updates_testing

[root@localhost wilcal]# urpmi gphoto2
Package gphoto2-2.5.6-1.mga5.x86_64 is already installed
[root@localhost wilcal]# urpmi libgphoto-common
Package libgphoto-common-2.5.7-1.1.mga5.x86_64 is already installed
[root@localhost wilcal]# urpmi libgphoto2_6
Package libgphoto2_6-2.5.7-1.1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libgphoto2_port12
Package libgphoto2_port12-2.5.7-1.1.mga5.i586 is already installed

I can see the images on the cameras sdhc chip using:
"gphoto2 -L"
I can transfer images and videos from the camera to a local drive using:
"gphoto2 -P"
Files transferred can be viewed using Gwenview.
I can trigger the camera using:
"gphoto2 --trigger-capture"
Comment 10 William Kenney 2015-10-06 17:12:51 CEST
For me this update works fine and causes no regressions.
Testing complete for MGA5, 32-bit & 64-bit
Validating the update.
Could someone from the sysadmin team push to updates.
Thanks

Keywords: (none) => validated_update
Whiteboard: (none) => MGA5-32-OK MGA5-64-OK
CC: (none) => sysadmin-bugs

Dave Hodgins 2015-10-07 01:30:22 CEST

CC: (none) => davidwhodgins
Whiteboard: MGA5-32-OK MGA5-64-OK => MGA5-32-OK MGA5-64-OK advisory

Thierry Vignaud 2015-10-07 08:45:35 CEST

CC: thierry.vignaud => (none)

Comment 11 Mageia Robot 2015-10-07 20:40:29 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0144.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.