I uploaded some new log files here: https://docs.google.com/open?id=0BxsLGLc1CE5cMjIyMDcyZjMtMWIwZC00ZGI2LThlMjgtMmEwYzliMjM0NDk0 It turns out the limit is three photos. But with two photos, you will see that ptp_opensession fails and the 8s timeout takes place but the retry succeeds. With three photos the retry doesn't succeed and we have the above error.
2012-01-04 12:49:42 PST in gPhoto
Here are the last few lines where the hang takes place on subsequent gphoto2 commands: 0.179244 ptp(2): PTP: Opening session 0.179259 gphoto2-port(2): Writing 16=0x10 byte(s) to port... 0.179271 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................ 0.179331 ptp2/ptp_usb_getresp(2): reading response 0.179345...
2012-01-04 11:38:27 PST in gPhoto
Another phenomenon is the first gphoto2 command (like -L) on a camera that has just been turned on is real fast. All subsequent commands seem to hang a bit then run successfully.
2012-01-04 11:33:17 PST in gPhoto
Marcus, I have an update, with only a single photo in the camera I can mix gphoto2 -L and gphoto2 --get-all-files seeminly without any issues. So it seems this is tied to the number of photos in the camera. I'll try and find the upper limit. If you have any suggestions as to what I could tweak to try to workaround this please let me know. Sounds like maybe some kind of timeout issue...
2012-01-04 11:30:29 PST in gPhoto
Hmm I'm having trouble attaching log files because they are so big. I posted a zip of the two log files here in google docs: https://docs.google.com/open?id=0BxsLGLc1CE5cYzkwOTAwN2UtZTg2Yi00OTJjLThiNmYtZjE1YTY5OWZkZGUx.
2012-01-03 00:11:07 PST in gPhoto
After running env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt --get-all-thumbnails my Fujifilm X10 goes into an invalid state and subsequent gphoto2 commands like --list-files will give an error message like: *** Error *** PTP I/O error *** Error *** An error occurred in the io-library (\'Unspecified error\'): No error description...
2012-01-03 00:03:00 PST in gPhoto
Bingo! Just one gphoto2 --get-all-thumbnails is enough to cause the camera to go into an invalid state and subsequent commands give the PTP I/O error. I'll file a separate bug report with the log files.
2012-01-02 23:49:18 PST in gPhoto
Oh gphoto2 -L runs fine N times in a row, the camera gets put into an invalid state by something shotwell does when it displays the previews. I'll try mixing with gphoto2 -P and get back here.
2012-01-02 23:35:09 PST in gPhoto
Marcus, thanks for your help in this! I'm starting to narrow things down. I disabled the gphoto2 gvfs backend by running sudo chmod -x /usr/lib/gvfs/gvfs-gphoto2-volume-monitor So now this is out of the picture. What I notice is that the shotwell issue persists and actually gphoto2 --list-files will fail with the same PTP I/O error right after shotwell has displayed the photo previews...
2012-01-02 23:27:33 PST in gPhoto
Please ignore this patch for the moment as I am investigating the issue further. Upon rebooting and trying again today, I experienced the same behavior as described here: http://redmine.yorba.org/issues/4512 so there is more this than meets the eye. I am running more tests with different PTP flag combinations but it may be interaction with another component like gnome_vfs that may be the...
2012-01-02 12:46:48 PST in gPhoto