[gphoto-bugs] [ gphoto-Bugs-2145951 ] gphoto cannot copy files with number over 1024

View: New views
1 Messages — Rating Filter:   Alert me  

[gphoto-bugs] [ gphoto-Bugs-2145951 ] gphoto cannot copy files with number over 1024

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2145951, was opened at 2008-10-04 10:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108874&aid=2145951&group_id=8874

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libgphoto2
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Henrik Herranen (realleo)
Assigned to: Nobody/Anonymous (nobody)
Summary: gphoto cannot copy files with number over 1024

Initial Comment:
gFull Description:

photo2 cannot handle situations where there are more than 1024 images on a memory card, which in itself is a situation very typical already on 16 GB Compact Flash cards, not to even speak of new 100 GB cards. The problem is caused by libgphoto2-2.4.2 file gphoto2-list.c line 75 that says:
#define MAX_ENTRIES 1024


How to repeat the problem:

Take a memory card with over 1024 images, and try to copy images above the 1024th image, and you'll get the following message:
*** Error (-8: 'Fixed limit exceeded') ***


Fix to the problem if known:

The quick fix is to change this to a larger number, i.e. 8192 or 16384. I've been using a version modified as this and it works well for my needs.
#define MAX_ENTRIES 8192

However, who such an arbitrary restriction? The correct way would be to dynamically allocate as much space as is needed.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108874&aid=2145951&group_id=8874

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gphoto-bugs mailing list
gphoto-bugs@...
https://lists.sourceforge.net/lists/listinfo/gphoto-bugs
LightInTheBox - Buy quality products at wholesale price!