[Qgis-developer] Possible memory leak in rendering code

Alexander Bruy alexander.bruy at gmail.com
Tue Apr 23 02:32:43 PDT 2013


Hi,

this changes doesn't solve issue for me. Crash happens even if only
vector layers with or without labels used.

Just finished testing with disabled caching and enabled backbuffer
(only vector layers with Single symbol style, one layer labeled
using PAL and scale-dependent labeling is enabled). Same result —
first rendering becomes very slow, QGIS eats memory and finally crashed. Here is last console messages for this case:

Debug: src/core/qgscoordinatetransform.cpp: 535: (transformBoundingBox) Projected extent: 82.7435302734374858,54.9302946986374678 : 82.7490234375000000,54.9334578175455306
Debug: src/core/qgsvectorlayer.cpp: 301: (drawLabels) Starting draw of labels: road_l_osm20130415140006374
Debug: src/core/qgspallabeling.cpp: 1790: (drawLabeling) LABELING work:  17 ms ... labels# 0
Debug: src/core/qgspallabeling.cpp: 1977: (drawLabeling) LABELING draw:  2 ms
Debug: src/core/qgsmaprenderer.cpp: 689: (render) Rendering completed in (seconds): 92.944
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

On Tue, 23 Apr 2013 08:24:04 +0200
Matthias Kuhn <matthias.kuhn at gmx.ch> wrote:

> The pull request got accepted. Thank you Minoru.
> Alex, could you test if this helps anything for your problem?
> 
> Matthias

-- 
Alexander Bruy


More information about the Qgis-developer mailing list