Bug 467090 - Maps Window with Google Maps only empty
Summary: Maps Window with Google Maps only empty
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-GoogleMaps (show other bugs)
Version: 8.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-09 05:39 UTC by Kurpfaelzer
Modified: 2023-03-25 05:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurpfaelzer 2023-03-09 05:39:47 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
In the latest version of digikam (digiKam-8.0.0-beta1-20230308T171724-Win64), the map from Google Maps is no longer displayed correctly. 
The corresponding window on the right-hand side is then only empty. In the other windows with map display, only a very small map section is shown in the upper left corner. These map sections can neither be moved nor resized.
A display with Marble works without problems.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: Windows 10 (22H2)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2023-03-09 07:07:52 UTC
Yes, I can confirm on Windows. QWebEngine does not seem to load the page correctly. Gilles, have the Qt packages been updated recently for building the Windows bundle?

Maik
Comment 2 Maik Qualmann 2023-03-09 07:14:08 UTC
I just see that Windows uses QWebkit, ok then QWebkit can't load the page anymore.

Maik
Comment 3 Maik Qualmann 2023-03-09 07:35:50 UTC
A test with the nightly MSVC build and QWebEngine still works. Unless something is generally broken in QWebkit, we can try with a fake user agent string.

Maik
Comment 4 caulier.gilles 2023-03-09 08:26:51 UTC
yes QtWebkit is cross compiled with MXE. QtWebEngine do not yet support cross compilation (it's also true for ARM platform, even if Apple Silicon start to be supported with Qt6). I hope this situation will be better in the future...
Comment 5 caulier.gilles 2023-03-09 08:31:10 UTC
my MXE environment have been fully recompiled on 15 November 2022.

Gilles
Comment 6 Maik Qualmann 2023-03-09 18:46:53 UTC
The problem is not Windows specific. I compiled digiKam on Linux with the latest QWebKit and can reproduce the problem exactly.

Maik
Comment 7 Maik Qualmann 2023-03-09 18:47:28 UTC
In other words, Google has changed something...

Maik
Comment 8 Maik Qualmann 2023-03-09 21:10:51 UTC
No chance, QWebKit can no longer process the Google Javascript Maps API. No matter which QWebSettings are still activated, or with changed user agent string, the page will no longer load.

Maik
Comment 9 Kurpfaelzer 2023-03-10 05:16:16 UTC
Thank you for your efforts to solve the problem. 
If I understand correctly, then the use of Google Maps is no longer possible for the time being?
I would like to refer you once again to the "GeoSetter" programme.
Would it also be possible to use your own account with Google?

Stephan
Comment 10 Maik Qualmann 2023-03-10 06:58:56 UTC
As an alternative, we currently have a nightly digiKam build. This is compiled with the MSVC Microsoft compiler and is even signed. It's not complete yet though, so it doesn't currently have HEIF support. However, instead of QWebKit, it uses the modern QWebEngine (based on Chromium). The path to ExifTool has to be changed in the digiKam setup because exiftool.exe is in the "bin" subfolder. Otherwise the version should be good to use.

https://binary-factory.kde.org/view/Windows%2064-bit/job/Digikam_Nightly_win64/  (*.exe file)

Maik
Comment 11 caulier.gilles 2023-03-10 07:03:33 UTC
Hi Maik,

If QtWebkit is not suitable anymore to display GoogleMaps, it will be safe to remove GoogleMaps option everywhere with webkit backend. 

Best

Gilles
Comment 12 Maik Qualmann 2023-03-25 05:27:04 UTC
At the moment QWebKit works again with Google Maps without us changing anything.

Maik