| Summary: | Import dialog: wrong pop-up media capacity in status bar. | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Michael Hähnel <m.haehnel> |
| Component: | Import-MainView | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 8.2.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | 8.2.0 | |
| Sentry Crash Report: | |||
|
Description
Michael Hähnel
2020-01-19 11:21:01 UTC
So, here on Linux the information is correct. Tested under Windows with the system drive C: the information is also correct. My VM for Windows has no USB support, I will test it tomorrow on a real Windows computer. There could be a bug in the Solid API on Windows that we use for these tasks. Maik Correction, the information from the system drive C: Windows are also incorrect, i.e. Windows-specific problem from Solid. Maik Hi Michael and happy new year, Can you check if problem remain with digiKam 7.5.0 pre-release Windows installer available here : https://files.kde.org/digikam/ Thanks in advance Gilles Caulier Hi Gilles, thanks and Happy New Year to you as well. I have installed latest DigiKam 7.5.0 as an update to 7.0.0.: Build date: 10.01.2022 11:14 (target: RelWithDebInfo) Rev.: 87fce0c873575d19c87f395c514cee7fe5e1c302 I inserted a SD-Card with capacity of 59.4 GB and an occupied space of 57.1 MB according to windows drive properties. DigiKam displays in import dialog status bar for camera medium: Capacity: 3.4 GB Available: 3.4 GB For the status bar field "Albumbibliothek" (German interface language) Capcity: 2.1 GB Available: 3.5 Both values are wrong. I can not guess what numbers are displayed. Second test with some USB-Stick: Capacity 29.2 GB, occupied 168 MB. Statusbar display for camera medium: Capacity: 1.3 GB Available: 1.1 GB --> Again, for my some random numbers. Only correct number appears, is when I select files for download. In this case the sum of files sizes disaply correctly in field "Albumbibliothek" Cheers Michael Hi, still does not work. Still wrong numbers. Digikam 7.8. Michael @Michael, digiKam 8.0.0 is out. This entry still valid with this release ? Best regards Gilles Caulier @Michael, This problem still reproducible with the new digiKam 8.2.0 pre-release Windows installer available at usual place: https://files.kde.org/digikam/ This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110. Thanks in advance Gilles Caulier Hi Gilles, I am afraid, no. Still wrong values: SD-Card with 64 GB (Windows Explorer says: 64.189.628.416 Byte or 59,7 GB capacity; 57,1 GB free, 2,63 GB allocated) inserted. DigiKam displays in statusbar in Import dialog for Camera Medium: 4% and on mouse-over menu Capacity: 3.8 GiB and Available: 1.1 GiB. The value "4%" is ok, if this stands for allocated volume. But mouse-over values are wrong. Best regards and thanks for the over-all work! Love using DigiKam Michael sorry: tested digikam version: 8.2.0, Revision: 6ba286200a56bd479ed60ac8a06a9a6dde101b88 Michael Git commit c9676c76538875498dbe05d465933227575fb664 by Maik Qualmann. Committed on 25/10/2023 at 08:30. Pushed by mqualmann into branch 'master'. replace unsigned long with qin64, long is only 32 bit on Windows M +1 -1 core/utilities/import/main/importui.cpp M +28 -27 core/utilities/import/widgets/freespacewidget.cpp M +11 -11 core/utilities/import/widgets/freespacewidget.h https://invent.kde.org/graphics/digikam/-/commit/c9676c76538875498dbe05d465933227575fb664 Further corrections are necessary, we calculate with KB because we only assumed memory cards with MB size. We have to calculate bytes throughout. I'll fix it tonight. Maik Git commit fba1c0ea02f6d99385350cc0c7c120750bd397dc by Maik Qualmann. Committed on 25/10/2023 at 19:27. Pushed by mqualmann into branch 'master'. use int64 bytes for camera storage size M +4 -4 core/utilities/import/backend/cameracontroller.cpp M +2 -2 core/utilities/import/backend/cameracontroller.h M +1 -1 core/utilities/import/backend/dkcamera.h M +9 -10 core/utilities/import/backend/gpcamera.cpp M +1 -1 core/utilities/import/backend/gpcamera.h M +1 -1 core/utilities/import/backend/umscamera.cpp M +1 -1 core/utilities/import/backend/umscamera.h M +29 -32 core/utilities/import/main/importui.cpp M +2 -2 core/utilities/import/main/importui.h M +56 -56 core/utilities/import/widgets/freespacewidget.cpp M +11 -11 core/utilities/import/widgets/freespacewidget.h https://invent.kde.org/graphics/digikam/-/commit/fba1c0ea02f6d99385350cc0c7c120750bd397dc |