-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
QGIS 3.34 takes >10 minute to load up with WMS/WFS datasources #57671
Comments
@nyalldawson since you have more or less followed the story, what do you think about dropping the backward compatibility and make the forward migration a one time operation (on demand, on first start, you would be asked if you want to migrate former settings, and once it's done, you don't go over it once more)? |
+1
Instead of on-demand , could we just change the key and then add a new setting which tracks which ones were migrated so we never do that more than once. (And store the migrated list outside of somewhere were a user action such as deleting a connection will remove it?) |
@3nids It seems like I'm not up to date on the story :) Are there any Issues/CRs I can read to get in the loop? We have a customer who wants to upgrade to the current LTR but this loading times are a dealbreaker for them. Frida |
@nyalldawson what about this: On first load QGIS imports the settings with the current forward import code. Whenever done, it saves in a settings that this was done. That import is never run again. We bring this functionnality to current release and 3.34. We drop the backward compatibility code. This means that the settings won't be synchronized anymore with 3.32- which I found OK now that 3.34 is LTR. |
@frida-161 there is a new system for storage of settings which has some backward/forward compatibility code to ensure integrity across old versions of QGIS. This compatibility code is the reason of slowness and has brought some painful issues. |
@3nids thanks for the answer. I understand that the compatibility code runs on 3.34 LTR and 3.36. What I don't understand is why this process takes minutes on the 3.34 and only seconds on 3.36. Frida |
Hello everyone, @frida-161 maybe this is also a solution for you. |
@D-MM-62 The workaround is not working for me. |
I implemented the suggestion here: #58250 |
QGIS 3.34.10 LTR solved this issue. |
Also can confirm that 3.34.10 solved this issue for me, taking seconds to load now. |
What is the bug or the crash?
With the current LTR (3.34.7) it takes more then 10 minutes to start QGIS when I have a large number of predefined WMS/WFS datasources in my profile. I tested old LTR (3.28) and current (3.36) version with the same profile and the startup takes a only a few seconds.
Apparently QGIS does some changes to the QGIS3.ini file in the profile during the startup and shutdown processes .
I tried making a copy of the QGIS3.ini while qgis was running. After the shutdown process which takes a few minutes and overwrites the ini again, I replaced it with my copy. The next startup was almost instant. But during the shutdown the ini gates rewritten again so the next startup again takes more then 10 minutes.
I could reproduce the bug on Arch Linux (qgis-ltr build from the AUR) as well as Windows 11 (Installer from the qgis.org website).
I build qgis with Debugging enabled but I dont find much about whats going on in the log except for the second line which seems to be the part that takes > 10 minutes.
I found this issue about rewriting of connections, maybe it is related #56713
Steps to reproduce the issue
connections.zip
Versions
This copy of QGIS writes debugging output.
Active Python plugins
MetaSearch
0.3.6
db_manager
0.1.20
grassprovider
2.12.99
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: