Bug 181347 - cannot download picture with digikam : estimated space overestimated
Summary: cannot download picture with digikam : estimated space overestimated
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 22:12 UTC by michel munnix
Modified: 2017-08-16 06:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michel munnix 2009-01-19 22:12:30 UTC
Version:           0.10.0-beta6 (using 4.1.3 (KDE 4.1.3) "release 4.9", openSUSE 11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.7-9-default

when trying to download picture from camera, it says :
There is no enough free space on Album Library Path to download and process selected pictures from camera.

Estimated space require: 16 777 216,0 TiB
Available free space: 26,3 GiB

Camera is cheap "Che-Ez Snap SNAP-U"  SQ905C chipset
gphoto2/sq905 diver (experimental)

using "gphoto2 --storage-info" :

*** Error ***
The filesystem doesn't support getting storage information 
Getting storage information not supported for this camera.
*** Error (-6: 'Unsupported operation') ***

Reproducible: Always

Actual Results:  
space required: 16 777 216,0 TiB not available -> no download

Expected Results:  
should state : estimated space requirement: unknown and permit download
Comment 1 caulier.gilles 2009-01-19 22:35:42 UTC
Michel,

Some fix have been done by Marcel since beta6. Try to use beta8 or current code form svn (rc1)

Gilles Caulier
Comment 2 Marcel Wiesweg 2009-01-20 14:40:11 UTC
((unsigned long long)-1)/1024/1024/1024/1024 = 16,777,215

I would assume the gphoto2 does not give any size information for single files at all for this camera (which size if displayed for single files in the camera UI right sidebar?).
Btw, with rc1 you will at least be able to ignore the warning.
Comment 3 Marcel Wiesweg 2009-01-20 14:40:49 UTC
sorry did not mean to close just yet
Comment 4 Marcel Wiesweg 2009-01-20 14:51:45 UTC
SVN commit 914144 by mwiesweg:

GPItemInfo->size is qint64 and can be -1, which means not available from driver.
Do not add negativ number to unsigned long.
Use qint64 format for intermediate calculation.

CCBUG: 181347

 M  +14 -10    cameraiconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=914144
Comment 5 Marcel Wiesweg 2009-01-20 15:02:16 UTC
Michel, wait a few days for -rc1 and report back.
Comment 6 Marcus Meissner 2009-01-20 15:14:00 UTC
the sq905 driver would return "not supported" for this query, so
I guess error was not handled correctly.

-1 is never set in such a variable, non-present fields are marked
by non-set flags.

code looks good in SVN trunk now.
Comment 7 caulier.gilles 2009-01-23 21:04:53 UTC
Michel,

0.10.0-rc1 is out. please try again...

Gilles Caulier
Comment 8 caulier.gilles 2009-01-23 21:06:08 UTC
Marcel,

I suspect that your commit #914144 need to be backported to KDE3 branche. Right ?

Gilles Caulier
Comment 9 Marcel Wiesweg 2009-01-24 11:03:56 UTC
SVN commit 915933 by mwiesweg:

Backport commit 914144 to KDE3

CCBUG: 181347


 M  +14 -11    cameraiconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=915933
Comment 10 michel munnix 2009-01-24 11:31:02 UTC
I tested with 0.10.0-rc1, now I can download the pictures without problems.
The patch fixes the problem.
Comment 11 caulier.gilles 2009-01-24 12:25:15 UTC
thanks for the feedback. i close this file now...

Gilles Caulier