-
-
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
project loading and adding/removing layers is slow if project has composers #19203
Comments
Author Name: Giovanni Manghi (@gioman) it may be a bug, but anyway without attaching a project (and data) to replicate the issue it would be hard to troubleshoot it.
|
Author Name: Per Gammerath (Per Gammerath) Here is my project. |
Author Name: Nathan Woodrow (@NathanW2) Have you enabled multicore rendering? Settings -> Options -> Rendering |
Author Name: Per Gammerath (Per Gammerath) I can't upload the project. The file is 12MB. |
Author Name: Per Gammerath (Per Gammerath) Yes, Multicore rendering is enabled. Rendering is very good once the project is loaded. |
Author Name: Giovanni Manghi (@gioman) Per Gammerath wrote:
dropbox (or similar)? |
Author Name: Per Gammerath (Per Gammerath) https://drive.google.com/file/d/0B8lAQWa28EprMVJSdDhVazNJLVE/edit?usp=sharing |
Author Name: Giovanni Manghi (@gioman) I had to change the data source path in your project but after that I can confirm your observation:
I don't know if this depends on multi-threading, the legend refactory and/or other factors. If this has a potential fix then we should tag this as a regression.
|
Author Name: Per Gammerath (Per Gammerath) I have been suspecting our project file of being messy and siltet, so I built a new project file and styled it to look like the original. The result was amazing, now the project loads in 16 seconds. This tells me, that there must be something wrong in the process of loading and saving project files. Our original project file was initially built in 2.0.1. |
Author Name: Per Gammerath (Per Gammerath) Hmmm, just added all the composer layouts, and now everything is slow again. So maybe this is all about composer layouts. |
Author Name: Giovanni Manghi (@gioman)
something that can be replicated every time? |
Author Name: Giovanni Manghi (@gioman) Per Gammerath wrote:
it is just enough to add one layout? does it need to contain a particular object to make slow the loading of the project?
|
Author Name: Per Gammerath (Per Gammerath) Giovanni Manghi wrote:
It seems to be random. It crashed so many times that I had to save the project with each change to make sure I didn't have to start all over. |
Author Name: Per Gammerath (Per Gammerath) Giovanni Manghi wrote:
I have 8 layouts, A4, A3, A2, A1, all with landscape and portrait orientation. I don't see how I can do without them. |
Author Name: Per Gammerath (Per Gammerath) If I'm right about the fact that Layouts slow down the loading of projects, would it be reasonable to let QGIS skip them and only load them when needed? |
Author Name: Giovanni Manghi (@gioman) Per Gammerath wrote:
I didn't mean this. As you said that you built the projects from scratch and that at some point you realized that it depends on layouts, then I would like to know if it was enough to add 1 layout (to get a slow to load project) and if the content of the layout made some difference. |
Author Name: Per Gammerath (Per Gammerath) For each layout I deleted, QGIS got faster. So I think it's about the number of layouts and not the content. |
Author Name: Nyall Dawson (@nyalldawson) One thing that would help track this down would be if you could try removing different item types from the compositions and testing whether a single item type is causing the slow down. For instance, if you remove all the scale bars from all the compositions does this make any difference to the project load speed? |
Author Name: Per Gammerath (Per Gammerath) Nyall Dawson wrote:
I have tested some different scenariois, and load speeds are:
I think this indicates that the number of layouts and load speed is tied together. |
Author Name: Nyall Dawson (@nyalldawson) Are they the only elements in your layouts? ( map, scalebar, legend, logos ?). No other items at all, like arrows or shapes? |
Author Name: Per Gammerath (Per Gammerath) Nyall Dawson wrote:
No other objects. |
Author Name: Martin Dobias (@wonder-sk) Fixed in changeset "18a1c8a6360faf69a9b1bb9620b75baa7f1319cd".
|
Author Name: Paolo Cavallini (@pcav) Better backport it to 2.4 branch?
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Paolo Cavallini wrote:
#18a1c8a6360faf69a9b1bb9620b75baa7f1319cd#commitcomment-7044552
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Per Gammerath (Per Gammerath) I've just downloaded and tested QGIS 2.8, and it strikes me that the issue with slow loading still exists, though the resolution is set to fixed. How come?
|
Author Name: Saber Razmjooei (@saberraz) Do you have some sample projects with data?
|
Author Name: Per Gammerath (Per Gammerath) Try this these projects
|
Author Name: Saber Razmjooei (@saberraz) It opens and saves pretty much instantly for wihtout layout.qgs and a couple of seconds with layout.qgs project on my QGIS 2.8.2. |
Author Name: Per Gammerath (Per Gammerath) On my computer, there is a 11 seconds difference. To emphasize the problem, try and the duplicate layouts, and you will see that it takes even longer. |
Author Name: Per Gammerath (Per Gammerath) Try this map
|
Author Name: Saber Razmjooei (@saberraz) With 22 print layouts it loads in ~10 seconds for me now. With this no. of layout, I'd say it is acceptable! |
Author Name: Per Gammerath (Per Gammerath) You must have a really fast computer then. I'm running QGIS on a quad core 2.40 GHz, 4 GB ram. With 30 layouts, it takes about 30 seconds to load. |
Author Name: Saber Razmjooei (@saberraz)
|
Author Name: Per Gammerath (Per Gammerath) I see that this issue persists in QGIS Pisa. I still would like to know why the layouts can't be loaded on demand?
|
Author Name: Lene Fischer (@LeneFischer) Times for saving project on local C: or network H:
Test times are from save until mouse react again. Test in 2.12 |
Author Name: Giovanni Manghi (@gioman) Per Gammerath wrote:
not sure about that, anyway I retested all the projects available in this ticket and loading time for projects with composers is somwhow slower than the projects without, but it is always in the few seconds range, really nothing that would led me to think about an issue to solve. I retested on master on both linux and windows. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Per Gammerath (Per Gammerath) It seems that this issue is more acute when projects are loaded from a network drive, as Lene Fischer stated in comment #10098. Subjecting users to such slow speeds is quite unfortunate, especially when QGIS becomes unresponsive in Windows.
|
Author Name: Per Gammerath (Per Gammerath) I copied my project to a local drive and I realized that it didn't change the matter. Project with 6 composers: 26 seconds Please consider a solution for this annoyance. |
Author Name: Giovanni Manghi (@gioman) see also #20319 and in particular #20319 (comment)
|
Author Name: Kilian Hagemann (Kilian Hagemann) OMG, can't believe I only found this bug now. We deal with very large and complex (>150 layer) gis project files and they take forever to open. Now that I found this bug I was curious and did some benchmarks of our own:
So QGIS 2.8 takes about 9 seconds and QGIS 2.14 40 seconds (!) for each print composer saved inside the .qgs file. I hope this helps to stress the severity of this bug, so please could the QGIS devs look into the code that loads and parses the print composers and remove the bottlenecks? If the info provided by the OP and others isn't sufficient, I could help in reproducing the issue. Until then I guess we will all remove print composers from our projects and manage them outside QGIS... |
Author Name: Anita Graser (@anitagraser) Also confirmed by http://gis.stackexchange.com/questions/208507/qgis-desktop-2-14-5-and-2-16-projects-with-multiple-composers-loading-very-slowl
|
Author Name: Bjoern Gessler (Bjoern Gessler) Got the same problem as well under Linux, as under Windows 7 and 10. QGIS VErsion 16.3 and 16.1. |
Author Name: Giovanni Manghi (@gioman) There have been several improvements in both 2.18.* and master (qgis3) and all the provided projects with/without layouts now open in a very reasonable amount of time, especially on master.
|
Author Name: Nyall Dawson (@nyalldawson) With the changes merged in #4279 all sample projects attached here load instantly. |
Author Name: Ábel Kőszeghy (Ábel Kőszeghy) My project files with many layouts still load painfully slow from network drives. I'm on version 2.18.14. |
Author Name: Per Gammerath (Per Gammerath)
Original Redmine Issue: 10828
Affected QGIS version: 2.18.4
Redmine category:project_loading/saving
I don't know whether to report this as a bug or feature request, but QGIS is horribly slow at loading projects. What takes 19 seconds in Dufour, takes 32 seconds in Chugiak.
see also:
#12125
Related issue(s): #23423 (duplicates)
Redmine related issue(s): 15499
The text was updated successfully, but these errors were encountered: