-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Map loading very long after upgrading to LWC 3.7 #4750
Comments
Unfortunately, without more info, you will need to debug where the bottleneck is. It really depends on your project. Please open your "Developper tools" (F12), to see HTTP requests and check which ones are too long. Maybe linked to #4521 about the legend, or maybe another bottleneck. |
You can follow further debugging and discussion about this issue at #4521. |
This issue is missing some feedbacks. 👻 |
Anyone can confirm that "getProjectConfig" request increased loading time since lwc 3.7.x (tested multiple projects, but one with 5 sec for 4 local file layers)? We had similar expierence (but not related to given link i think - getlegendimage request) and staid on lwc 3.6.x because of that. Tested: Curr. Setting: |
This issue is missing some feedbacks. 👻 |
Today I could confirm this issue is not solved : |
Hi @SecondGIS |
I did my own tests with 3.7.* and QGIS Server 3.40 and I can't see any major different compared to using QGIS Server LTR: it is still quite slow, and the slowness comes from GetLegend. In another tickets there was a discussion about possible mitigations of this problem, did anything got considered to be implemented? |
One bugfix landed in QGIS 3.40 only. qgis/QGIS#58937 |
i'm on qgis server 3.34 and i have noticed a huge difference between lwc 3.7 and lwc 3.8, particularly in a project with many layers (mostly raster type/group as layer) |
On which side are you talking. Increased or decreased the loading time ? |
@Gustry very increased from 3.7 to 3.8. i can provide an url if you want |
On the LMWC side of things, is there any chance/plan to allow users to choose to use legends requested as PNG as it was until LMWC 3.6? |
@gioman we could indeed add an option to let the user choose if the legend should be PNG (no possibility to toggle symbology classes) or JSON We should really tackle this issue about performance degradation and figure out what changes between 3.7 & 3.8 provoked it I would love to have a "DEBUG" behaviour allowing to time each PHP method and see what is going on... |
yeah that is clear of course, but it seems there are a lot of users that are affected that I guess would not mind to have the other 3.7/8 goodness but still use legends in raster format, or... there is a ticket (closed not sure why) with other suggestions, like have the legend JSON file generated by the LM plugin and uploaded together with the .CFG file, or have it generated only on first load of the project then stored on disk and read from there. |
I just tried QGis server 3.40, it seems at least as slow as 3.34 (if not slower)... Every request is very long, not only GetLegendGraphic :/ |
maybe also due to a lizmap cache issue. |
@josemvm I believe I set caching of projects capabilities the right way in my virtual hosts configs, and indeed it takes a first load of the project (after a web server restart) to get cached and load much faster, still after the first phase (when the "loading.svg/gif" is shown) it takes longer to generate legends... and until it finishes users cannot do anything. |
On my local setup, GetLegendGraphic request is not cached and still very long even after first loading... And anyway in my opinion this is not a caching issue, requesting JSON elements one by one would still take ages even if JSON file was cached |
What is the bug? (in English)
Hi there,
I was running Lizmap Web Client 3.6.12 with a few maps based on PostgreSQL / PostGIS layers, which was very fine.
Since I got a message in QGis Lizmap plugin saying version 3.6 is deprecated I decided to upgrade to LizMap Web Client version 3.7.10 (upgrading lizmap_server plugin too to version 2.10.0).
Since then my maps are incredibly long to load : 30 seconds at least, when it was only a few seconds with previous version I haven't modified my maps or any other software component in between.
When I load one of maps, I got the LizMap logo for 1 / 2s, then the empty map frame is displayed, with the legend panel taking, as said, like 30s to be displayed, and only then my map layer are visible.
Steps to reproduce the issue
1 - Publish a map with PostGis layers with LWC 3.6 and make sure that it is displayed correctly and fast enough in your web browser ;
2 - Upgrade Lizmap Web Client to version 3.7.10 (and lizmap_server plugin to version 2.10.0 or 2.9.4 as well)
3 - Try to load the same map in your web browser
Versions, safeguards, check summary etc
Versions :
List of safeguards :
Check Lizmap plugin
Operating system
ubuntu 22.04
Browsers
Firefox
Browsers version
Firefox 130.0, Chromium 128.0
Relevant log output
No response
The text was updated successfully, but these errors were encountered: