Bug 385630 - Views Requiring Maps Takes ~30s to Launch
Summary: Views Requiring Maps Takes ~30s to Launch
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Workflow (show other bugs)
Version: 5.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-11 20:15 UTC by hardy.public
Modified: 2018-03-30 18:33 UTC (History)
2 users (show)

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


Attachments
Unusable Map Dialogie (8.39 KB, image/png)
2017-10-11 20:15 UTC, hardy.public
Details
Debug Log (28.37 KB, text/plain)
2017-12-16 14:54 UTC, hardy.public
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hardy.public 2017-10-11 20:15:38 UTC
Created attachment 108289 [details]
Unusable Map Dialogie

In the following use-cases, it takes approximately 30-35s for the map to appear after the first launch. Thereafter there is no problem:

1. Clicking either Map in the fly-out menus.
2. Selecting a thumbnail then Ctrl_Shft+G.
3. If a map was visible when digiKam was shutdown previously, it then takes 30s for main digiKam window to appear after splash screen disappears on next relaunch.

See attached screenshot while waiting for map to load when starting Geo Editor.
Comment 1 caulier.gilles 2017-10-11 20:49:30 UTC
this is due certainly of a Marble plugin playing with a remote web service hile the map is displayed.

Go to the directory where is installed digiKam. There is a plugins/ sub directory containing a lot of lib*plugin.dll files. There are Marble plugins. Do not look in others sub directories inside plugins/ there are here for others reasons.

To find the right dll file introducing this time latency, remove step by step one dll file and restart digiKam to try to reproduce the problem.

Gilles Caulier
Comment 2 Maik Qualmann 2017-10-11 20:56:11 UTC
The problem is not Marble under Windows. Google maps stops after 50% maps loading and then hang a while. If Marble is set as display, the dialog will open quickly.

Maik
Comment 3 caulier.gilles 2017-10-11 21:00:01 UTC
Maik,

The guy who report this file has previously seen a problem with a bad installation of Marble files in Windows bundle. I fixed that and now, the Geolocation map view take a while to be suitable. So i suspect that Marble plugins introduce a dysfunction here, because when no marble plugins are loaded, the problem do not exist.

Gilles
Comment 4 Maik Qualmann 2017-10-11 21:07:37 UTC
No, Marble is ok. I've been watching this delay for some time. But I am of the opinion that it is so extreme only in the virtual machine. I test it tomorrow on a real Windows machine. I use the current Windows-5.8.0 build.

Maik
Comment 5 Maik Qualmann 2017-10-11 21:10:15 UTC
You can also trigger the problem by opening the online manual via the built-in webkit browser.

Maik
Comment 6 hardy.public 2017-10-17 18:46:28 UTC
(In reply to caulier.gilles from comment #1)
> this is due certainly of a Marble plugin playing with a remote web service
> hile the map is displayed.
> 
> Go to the directory where is installed digiKam. There is a plugins/ sub
> directory containing a lot of lib*plugin.dll files. There are Marble
> plugins. Do not look in others sub directories inside plugins/ there are
> here for others reasons.
> 
> To find the right dll file introducing this time latency, remove step by
> step one dll file and restart digiKam to try to reproduce the problem.
> 
> Gilles Caulier

Do you guys still want me to check all the DLLs or are you certain it's not Marble plugins?
Comment 7 caulier.gilles 2017-10-17 21:09:58 UTC
Checking to remove the dlls will take few minutes to tests. Please confirm or not that problem come from Marble. Thanks in advance

Gilles Caulier
Comment 8 hardy.public 2017-10-18 17:03:40 UTC
I do not think it's any of the plugins in particular. With all the plugins present, the delay is 40s. If remove half the plugins, this delay roughly halves to 20s. If I delete another half of the plugins again, the delay halves again to 10s. It appears to be an overhead per plugin. Do you think that's plausible or am I seeing a pattern that's not there?
Comment 9 caulier.gilles 2017-10-18 20:21:54 UTC
yes, it's a side effect of plugins as i expected. As mostly try to be connected to a remote web service, some network time latencies are introduced in your configuration.

It's certainly not the only one origin of the problem, as Maik said previously, but removing unwanted plugins will help in this case. This willl also reduce the bundle sizes definitively. 

Gilles Caulier
Comment 10 hardy.public 2017-10-19 15:55:23 UTC
I can define the problem more accurately now.

If the maps fly-out menu is assumed to be selected:

- If I had selected Google Maps in the previous digiKam session, I get the 40s delay at next start-up. By delay I mean in the splash screen, it stops at "Loading KIPI Plugins..." for ~40s.

- If I have selected Marble Virtual Globe in the previous digiKam session, I get no delay at next start-up.

- If I have selected Marble Virtual Globe in the previous digiKam session, I get no delay at next start-up but if I then select Google Maps in the fly-out menu, I get a ~40s delay to show the Google map.

It's definitely connected to Google Maps. I will try it on my Linux machine now....
Comment 11 hardy.public 2017-10-19 15:58:42 UTC
PS. Synology Photo Station also uses Google Maps and there is no such delay. So I don't think there's general problem accessing Google Maps from my Internet connection.
Comment 12 hardy.public 2017-10-19 16:33:50 UTC
digikam-5.8.0-01-i386.appimage works fine so it just looks like the Windows version has the problem.
Comment 13 hardy.public 2017-11-16 18:07:06 UTC
This problem is still present in digiKam-5.8.0-20171113080253-Win64.exe.

5.7 didn't have this issue at all.

Is there anything more I can do help you resolve this?
Comment 14 caulier.gilles 2017-12-09 17:17:57 UTC
This problem still reproducible with current 5.8.0 - pre-release Windows bundle
available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 15 hardy.public 2017-12-09 17:38:09 UTC
Yes, it' still there.
Comment 16 hardy.public 2017-12-16 14:54:21 UTC
Created attachment 109411 [details]
Debug Log

Log attached. It seems the 30s delay takes place after line 194. Incorrect parameter.

00000194	11.94422817	[3024] onecoreuap\shell\lib\bindctx.cpp(128)\explorerframe.dll!00007FFE1270377F: (caller: 00007FFE126DAA6F) ReturnHr(73) tid(2968) 80070057 The parameter is incorrect.
Comment 17 hardy.public 2018-03-30 15:55:48 UTC
You seem to have fixed this in 5.9. Many thanks!