On Mon, Jan 07, 2019 at 08:46:39PM +0100, helen cheng wrote: > Hi Marcus, > > Attached are tether.logs from two cameras. Each was set to take 100 photos > (tethered to its own Ubuntu core 14.04 Pi clone) > > One stopped downloading after image 34 (and the camera continued saving to > internal camera RAM), and the other after 63. I see that in both cases the > last entry was: > > 203.277366 gp_port_set_timeout (2): Setting port timeout to 150 > milliseconds. > > I've also attached an edited log from the area where the last images were > taken on the more verbose logging I sent before, in case that helps. I > noticed a kind of "core dump" in there starting at line 2200 which looked > kind of interesting as it also happened just after: > > 863.336496 gp_port_set_timeout (2): Setting port timeout to 150 > milliseconds. > > We discovered that this problem (on our system anyway) affects Sony RX100 M5A > and also M5. It’s intermittent, and for whatever reason it affects M5 less > than M5A, so we didn’t notice it until we started testing M5A.
It seems there is some unreliability :( We can try adding event handling, but this might have other unreliabilities. Can you try if attached patch makes it better or worse? Ciao, Marcus
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 66cdfc330..57870a100 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -4192,15 +4192,13 @@ camera_sony_capture (Camera *camera, CameraCaptureType type, CameraFilePath *pat GP_LOG_D ("waiting for image availability"); event_start = time_now(); do { -#if 0 +#if 1 /* needed on older cameras like the a58, check for events ... */ C_PTP (ptp_check_event_queue (params)); if (ptp_get_one_event(params, &event)) { GP_LOG_D ("during event.code=%04x Param1=%08x", event.Code, event.Param1); if (event.Code == PTP_EC_Sony_ObjectAdded) { newobject = event.Param1; - if (dual) - ptp_add_event (params, &event); GP_LOG_D ("SONY ObjectAdded received, ending wait"); break; } @@ -5968,7 +5966,7 @@ handleregular: /* We are handling this in the above sony case. events might * come to early and retrieving the image might reboot the camera. */ case PTP_EC_Sony_ObjectAdded: { -#if 0 +#if 1 PTPObjectInfo oi; C_MEM (path = malloc(sizeof(CameraFilePath)));
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel