#857 libptp fails on movie files > 2GB

closed-out-of-date
5
2013-01-31
2010-10-20
Aleksey Nogin
No

When attempting to download a movie file larger than 2GB, I see:
...
1.017764 gphoto2-port(2): Reading -1867431623=0x90b14139 bytes from port...
1.017819 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffde -34
1.017857 context(0): PTP I/O error
...
The issue is that the ptp2 library uses signed ints (and long ints, but that does not help) all over, and on my 32 bit system this wraps around above 2GB (you can see the negative number in the "Reading" above).

Discussion

  • Aleksey Nogin
    Aleksey Nogin
    2010-10-20

    Just tried on a 64-bit machine - and got the same error message. Both machines are CentOS 5 Linux boxes with gphoto2-2.2.0 RPM.

     
  • gphoto2 2.2.0 is very very old.

    update libgphoto2 to a newer version, current is 2.4.10.1.

     
    • status: open --> closed-out-of-date
    • milestone: --> do_not_use_this_camlib/canon