limit of 1024 files

Bug #144585 reported by Bram Stolk
18
Affects Status Importance Assigned to Milestone
libgphoto
Unknown
Unknown
PLD Linux
Fix Released
Medium
Elan Ruusamäe
libgphoto2 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When fetching fotos from a camera, there is a 1024 file limit.
If the camera contains more photos, the fetching will fail.

0.429648 ptp2(2): file_list_func(/store_00010001/DCIM/100CANON)
0.457556 gphoto2-list(0): gp_list_append: Tried to add more than 1024 entries to the list, reporting error.
0.457588 gphoto2-camera(2): Operation failed!
*** Error (-8: 'Fixed limit exceeded') ***

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. With which particular package version of libgphoto2 did you notice this bug? You can check via 'dpkg -l libgphoto2'. Thanks in advance.

Changed in libgphoto2:
status: New → Incomplete
Revision history for this message
Bram Stolk (b-stolk) wrote : Re: [Bug 144585] Re: limit of 1024 files

ii libgphoto2-2 2.3.0-0ubuntu4 gphoto2 digital camera library

On 9/24/07, Brian Murray <email address hidden> wrote:
>
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. With which particular package version of libgphoto2 did
> you notice this bug? You can check via 'dpkg -l libgphoto2'. Thanks in
> advance.
>
> ** Changed in: libgphoto2 (Ubuntu)
> Status: New => Incomplete
>
> --
> limit of 1024 files
> https://bugs.launchpad.net/bugs/144585
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Zapp: Captain's log, stardate...er..
Kif: Ohhh. April 13th.
Zapp: April 13th. Point 2.

Changed in libgphoto2:
status: Incomplete → Confirmed
importance: Undecided → Low
Revision history for this message
szamcsi (akos-frohner) wrote :

I have seen the same problem, here are some lines from the debug output:

$ gphoto2 -L --debug
0.000294 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000354 main(2): gphoto2 2.3.1
0.000372 main(2): gphoto2 has been compiled with the following options:
0.000384 main(2): + gcc (C compiler used)
0.000394 main(2): + popt (mandatory, for handling command-line parameters)
0.000405 main(2): + exif (for displaying EXIF information)
0.000415 main(2): + cdk (for accessing configuration options)
0.000427 main(2): + no aa (for displaying live previews)
0.000463 main(2): + jpeg (for displaying live previews in JPEG format)
0.000473 main(2): + readline (for easy navigation in the shell)
0.000490 main(2): libgphoto2 2.4.0
0.000510 main(2): libgphoto2 has been compiled with the following options:
0.000521 main(2): + gcc (C compiler used)
0.000602 main(2): + ltdl (for portable loading of camlibs)
0.000613 main(2): + EXIF (for special handling of EXIF files)
0.000625 main(2): libgphoto2_port 0.8.0
0.000640 main(2): libgphoto2_port has been compiled with the following options:
0.000651 main(2): + gcc (C compiler used)
0.000661 main(2): + ltdl (for portable loading of camlibs)
0.000671 main(2): + USB (libusb, for USB cameras)
0.000681 main(2): + serial (for serial cameras)
0.000691 main(2): + no resmgr (serial port access and locking)
0.000701 main(2): + no baudboy (serial port locking)
0.000711 main(2): + no ttylock (serial port locking)
0.000722 main(2): + no lockdev (serial port locking)
0.000734 main(2): CAMLIBS env var not set, using compile-time default instead
0.000746 main(2): IOLIBS env var not set, using compile-time default instead
0.000928 main(2): The user has not specified both a model and a port. Try to figure them out.
...
24.595017 ptp2(2): file_list_func(/store_00010001/DCIM/100CANON)
24.604259 gphoto2-list(0): gp_list_append: Tried to add more than 1024 entries to the list, reporting error.
24.604279 gphoto2-camera(2): Operation failed!
*** Error (-8: 'Fixed limit exceeded') ***

Versions of the installed packages:
ii gphoto2 2.3.1-5 The gphoto2 digital camera command-line client
ii libgphoto2-2 2.4.0-2ubuntu2 gphoto2 digital camera library
ii libgphoto2-port0 2.4.0-2ubuntu2 gphoto2 digital camera port library

As the average size of the memory cards increases it will be a problem, which happen more regularly, so I would suggest to increase the level of importance.

Cheers.

Revision history for this message
szamcsi (akos-frohner) wrote :

Tracked at upstream as well:
http://sourceforge.net/tracker/index.php?func=detail&aid=1515453&group_id=8874&atid=108874

According to the last comment it should have been fixed in v2.4.0 of libgphoto2?!

Revision history for this message
Brian Murray (brian-murray) wrote :

This bug is fixed in Hardy Heron which uses gphoto2 version 2.4.0-1 and which I've tested using a memory card with 1027 files. See below:

bdmurray@flash:~/tmp$ gphoto2 -L | more
There is no file in folder '/'.
There is no file in folder '/DCIM'.
There are 1027 files in folder '/DCIM/198CANON'.

Changed in libgphoto2:
status: Confirmed → Fix Released
Revision history for this message
Jonas Karlsson (minipost) wrote :

There still seems to be a problem, also with v2.4.0 of libgphoto2. I have Hardy Heron and try to download pictures from Nicon Coolpix using gphoto2:

0.000429 main(2): gphoto2 2.4.0
0.000452 main(2): gphoto2 has been compiled with the following options:
0.000464 main(2): + gcc (C compiler used)
0.000475 main(2): + popt (mandatory, for handling command-line parameters)
0.000502 main(2): + exif (for displaying EXIF information)
0.000513 main(2): + cdk (for accessing configuration options)
0.000523 main(2): + no aa (for displaying live previews)
0.000536 main(2): + jpeg (for displaying live previews in JPEG format)
0.000558 main(2): + readline (for easy navigation in the shell)
0.000578 main(2): libgphoto2 2.4.0
0.000605 main(2): libgphoto2 has been compiled with the following options:
0.000616 main(2): + gcc (C compiler used)
0.000633 main(2): + ltdl (for portable loading of camlibs)
0.000644 main(2): + EXIF (for special handling of EXIF files)
0.000667 main(2): libgphoto2_port 0.8.0
0.000683 main(2): libgphoto2_port has been compiled with the following options:
0.000704 main(2): + gcc (C compiler used)
0.000715 main(2): + ltdl (for portable loading of camlibs)
0.000736 main(2): + USB (libusb, for USB cameras)
0.000748 main(2): + serial (for serial cameras)
0.000765 main(2): + no resmgr (serial port access and locking)
0.000787 main(2): + no baudboy (serial port locking)
0.000799 main(2): + no ttylock (serial port locking)
0.000814 main(2): + no lockdev (serial port locking)
0.000835 main(2): CAMLIBS env var not set, using compile-time default instead
0.000847 main(2): IOLIBS env var not set, using compile-time default instead
0.000897 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.001039 setting/gphoto2-setting.c(2): Loading settings from file "/home/jonas/.gphoto/settings"
0.001258 gp-camera(2): Freeing camera...
0.001284 gphoto2-port(2): Freeing port...
0.001302 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.001326 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.001341 gphoto2-filesystem(2): Internally deleting all folders from '/'...

Actually I wanted to use gphoto2 for remote control of the camera. Would be happy if someone had a suggestion to how this problem could be solved

Revision history for this message
Elan Ruusamäe (glen666) wrote :

as it's not really fixed in 2.4.0 (nor 2.4.1) applied increase_max_entries.patch also in pld (1024->8192)

Revision history for this message
vikas (shyguy1188) wrote :

this bus is still there... m getting this problem after connecting my SAMSUNG GT-B5310 mobile phone and trying to access my photos through FSPOT.... it says.... FIXED LIMIT EXCEEDED ... and " -8 " too is displayed there...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.