Bug report #8386

Large memory used with map units symbology at large scales

Added by Denis Rouzaud over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Marco Hugentobler
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System:ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17159

Description

I have memory problems with layers using map units symbology.

You can observe this for a point layer and using simple circle marker using a 2 meters symbols.
When zooming in, at the scale 1:3 memory starts growing, and it gets higher at 1:2 and 1:1 (they were not shown at larger scales). But QGIS is still usable.

Using a rule based or a graduated symbology makes it even worse.
See this video with graduated symbology: http://youtu.be/sblEuw44lfA to observe the memory usage.
or less visible with simple symbology: http://youtu.be/AQrRfF7yYms

If you zoom out, the memory is free again. If you zoom in too much, memory gets too high, and you have to kill the process.

Associated revisions

Revision 74367c5b
Added by Marco Hugentobler over 11 years ago

Simple marker: use limit for cache image size. Fixes #8386

History

#2 Updated by Matthias Kuhn over 11 years ago

  • Status changed from Open to Feedback

Can you do a short test and enable some data-defined property (e.g. color) and see if it also happens?

#3 Updated by Denis Rouzaud over 11 years ago

Yes, the same phenomenon occurs with color as a data defined property.

#4 Updated by Nathan Woodrow over 11 years ago

I don't see the memory issue on windows but when I do zoom in I see

QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints

In the message log.

#5 Updated by Marco Hugentobler over 11 years ago

  • Assignee set to Marco Hugentobler

#6 Updated by Marco Hugentobler over 11 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF