Bug 458145 - Geolocation editor works properly when opened from ShowFoto but not when opened from digiKam
Summary: Geolocation editor works properly when opened from ShowFoto but not when open...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: 7.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-21 14:44 UTC by Jean-Fred
Modified: 2022-08-21 20:08 UTC (History)
1 user (show)

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


Attachments
GeolocationEditor picture list when called from DigiKam (left) and showFoto (right) (154.34 KB, image/png)
2022-08-21 14:44 UTC, Jean-Fred
Details
digiKam DebugView output from digiKam restart to opening GeolocationEditor. (72.56 KB, text/plain)
2022-08-21 15:28 UTC, Jean-Fred
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Fred 2022-08-21 14:44:45 UTC
Created attachment 151478 [details]
GeolocationEditor picture list when called from DigiKam (left) and showFoto (right)

SUMMARY
Geolocation editor does not behave correctly when opened from digiKam: in the picture list below the map, none of the field is populated properly. Oddly, when call from ShowFoto on same picture everything works fine...


STEPS TO REPRODUCE
1. Select a picture in thumbnail view
2. Open Geolocation Editor from DigiKam menu
3. 

OBSERVED RESULT
Geolocation editor correctly opens.
However, in geolocation editor picture list (below the map) thumbnail appears empty and none of the other fields is correctly populated. Date/Time displays as "unavailable".
Odd thing is that when the Geolocation editor is called for the same picture from ShowFoto, everything looks fine - see attached pictures.

EXPECTED RESULT
Geolocation editor should behave the same when called from DigiKam than it behaves when caled from ShowFoto.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Professionnel 64bits 21H2 - Build 19044.1889
Qt Version: 5.15.5

ADDITIONAL INFORMATION
DigiKam is installed from Windows bundle found on digiKam web site (digiKam-7.7.0-Win64.exe).
Tried with many different pictures from different cameras: same behavior.
Note that digiKam 6.4.0 was also behaving the same on my system. So that may be system related, like some sort of system specific thing that is not managed correctly by digiKam/Qt/... - I was however never able to find exactly what may be wrong on the system side. Any clue?
Let me know how/if I can help with this.

Thanks!

JF
Comment 1 Maik Qualmann 2022-08-21 15:11:24 UTC
The problem cannot be reproduced here and cannot be explained at the moment.
Download and launch DebugView from Microsoft. Activate internal debugging in the digiKam setup under Miscellaneous-> System. After restarting digiKam, post the messages in DebugView when you open images with the geolocation editor.

Maik
Comment 2 Jean-Fred 2022-08-21 15:28:12 UTC
Created attachment 151480 [details]
digiKam DebugView output from digiKam restart to opening GeolocationEditor.
Comment 3 Jean-Fred 2022-08-21 15:30:58 UTC
Hi Maik,

Here is the DebugView log.
The file referenced in the log on line 539 of the log really exits and can be openend correctly (this is the exact one ShowFoto manages to deal with).
Regards,

JF
Comment 4 Maik Qualmann 2022-08-21 16:12:48 UTC
The error message as an example:

digikam.database: No location could be retrieved for "C:/Users/Jean-Frederic/Pictures/Photos/Photos_a_classer/Canon_EOS550D/10_Carte_32Go_10/DCIM/100CANON/IMG_1321.JPG"

Your problematic paths in the collections:

Creating new Location  "/"  uuid  "volumeid:?path=C:\\Users\\Jean-Frederic\\Pictures\\Photos\\Albums_Photos"	
Creating new Location  "/"  uuid  "volumeid:?path=C:\\Users\\Jean-Frederic\\Pictures\\Photos\\Photos_a_classer"	
Creating new Location  "/"  uuid  "volumeid:?path=C:\\Users\\Jean-Frederic\\Pictures\\Photos\\Albums_Exportes"	
Creating new Location  "/"  uuid  "volumeid:?path=C:\\Users\\Jean-Frederic\\Pictures\\Photos\\Poubelle"	
Creating new Location  "/"  uuid  "volumeid:?path=C:\\Users\\Jean-Frederic\\Pictures\\Photos\\Panorama"

Wrong slash "\\", then the "volumeid:?path=", probably the drive UUID could not be resolved with Solid or the paths were edited manually.

Make a backup of the digikam4.db.
Go is digiKam Setup-> Collection and use the update function (circle icon) on all these paths and select the exact same path.

Maik
Comment 5 Jean-Fred 2022-08-21 17:22:10 UTC
Hi again Maik,

Thanks A LOT!
That was it... Now things work smoothly and I can edit picture Geolocation directly from DigiKam.

... not sure where those double slashes are coming from in my config. I'm using same database from years, and this slash thing sems to only affect Geolocation Editor (I juts tried it recently).
Quick question: my understanding is that Geolocation Editor directly add/edit GPS EXIF tags in picture files, not only in DigiKam database (independantly of how digiKam is configured). Is that a correct understanding?

Thanks again for your time and help with this!

Regards,

Jean-Fred
Comment 6 Maik Qualmann 2022-08-21 20:08:22 UTC
Thanks for the feedback. The entries probably come from a bug in an older digiKam version. I close the bug for digiKam-7.8.0.

The Geolocation Editor has a database interface when running under digiKam and writes directly into the database. You have to activate the option in the digiKam Setup under Metadata that you also want to write GPS information in the images.

You should also deactivate internal debugging again, as it can slow down digiKam, the Windows kernel takes a relatively long time for the debug messages.

Maik