Bug 462413 - Map view freezes when viewing large number of elements
Summary: Map view freezes when viewing large number of elements
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Engine (show other bugs)
Version: 8.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 22:16 UTC by MarcP
Modified: 2024-12-12 03:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2022-11-29 22:16:39 UTC
SUMMARY
I have noticed that, in the 8.0.0 preview, when I select a tag or an album and I select the Map view, the interface can freeze for a while, depending on the number of pictures. For instance, it can freeze for 2 or 3 minutes for 30000 pictures (most of them without gps data). I have tried in a 7.9 version and that doesn't happen (takes 5 seconds at most to load the exact same items), so it's likely a regression.

STEPS TO REPRODUCE
1. Select an album root containing a few thousand pictures.
2. Select Map view on the top panel
3. Wait until digikam is responsive again

OBSERVED RESULT
It can take several minutes.

EXPECTED RESULT
It should only take the time needed to place the items on the map.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04 LTS and digiKam-8.0.0-git-20221124T104306-x86-64.appimage
Comment 1 Maik Qualmann 2022-11-30 06:57:56 UTC
I can't find any difference to digiKam-7.9.0 here. In digiKam-8.0.0 images that have GPS coordinates are searched in their directories for *.gpx files, these would be displayed as tracks on the map. Since we know that your network file system is very slow, this will probably consume time. We'll probably have to make this new feature optional.

Maik
Comment 2 MarcP 2022-11-30 07:04:42 UTC
That's a cool feature. I sometimes record .gpx tracks when I go hiking, and use them to correlate the coordinates for these pictures without geolocation. But yes, it's possible that having to recursively look into directories might be the source of that slowdown I experienced.
Comment 3 Maik Qualmann 2022-11-30 20:41:35 UTC
Git commit cf4827e6acc911dadbbb4d43bcbcc162c4230d5a by Maik Qualmann.
Committed on 30/11/2022 at 20:40.
Pushed by mqualmann into branch 'master'.

add Tool button to load tracks manually from albums

M  +66   -37   core/app/views/stack/mapwidgetview.cpp
M  +1    -0    core/app/views/stack/mapwidgetview.h
M  +2    -1    core/utilities/geolocation/geoiface/core/geoifacetypes.h
M  +20   -0    core/utilities/geolocation/geoiface/widgets/mapwidget.cpp
M  +1    -0    core/utilities/geolocation/geoiface/widgets/mapwidget.h

https://invent.kde.org/graphics/digikam/commit/cf4827e6acc911dadbbb4d43bcbcc162c4230d5a
Comment 4 caulier.gilles 2023-05-02 17:03:25 UTC
@MarcP

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 5 MarcP 2023-05-02 17:07:45 UTC
No, this problem is no longer present, you can close it.