Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101249 - gphoto2 i/o error
Summary: gphoto2 i/o error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-03 13:27 UTC by Ed Davison
Modified: 2005-08-05 11:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Davison 2005-08-03 13:27:14 UTC
I have gphoto2 that I use to read my digital camera photos.

To use this I run it with sudo as I do not otherwise have permissions on the
device.  I recently followed the migration to 2.6 guide
(http://www.gentoo.org/doc/en/migration-to-2.6.xml) so upgrade from 2.4 to 2.6
kernel and encountered no errors.  Now, however, I am having trouble with this
application since the migration.

I suspect it has something to do with udev.

Reproducible: Always
Steps to Reproduce:
1. sudo gphoto2 -L
2. sudo gphoto2 -L


Actual Results:  
The first time I run this command it produces a listing of the files on the
camera.  The second time I get an I/O error as follows:

edavison@ebdhome 20050731 $ sudo gphoto2 -p 1-62
gp_port_read: Connection timed out

*** Error ***
PTP I/O error

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

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 -p "1-62"

Please make sure there is sufficient quoting around the arguments.



Expected Results:  
This should consistently read the device every consecutive time it is run.

In order to work around this I have to unplug the device from the USB port and
plug it back in.  Then I can issue one command again until I get the same I/O error.
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2005-08-03 16:17:50 UTC
I had this same problem recently, upgrade the unstable version of gphoto2 and
libgphoto2 ( 2.1.6 ).  I suspect that something recently broke this, and now we
have to stabilize 2.1.6.  ( This is what worked for me )

Please report back.  I'll look into marking this stable if this also works for you.

Thanks!
Comment 2 Ed Davison 2005-08-04 11:53:15 UTC
Seems I might have been a bit premature to log this bug.  Turns out that I had
version 2.12 on my system.  I am going to try 2.15 tonight and see if that
works.  If not, I will definitely try the 2.16 build.

Either way, I will report back the results of the attempt.
Comment 3 Ed Davison 2005-08-05 11:01:12 UTC
I tried this with 2.1.5 (both gphoto2 and libgphoto2 now matching versions) and
it works consistently from time to time without the I/O errors.