<div dir="ltr"><div><div><div>Thanks Nyall,<br><br></div>I will build last master and check it asap.<br><br></div>Cheers,<br></div>Michaël<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-10 6:25 GMT+02:00 Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10 May 2016 at 03:38, kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> I just tested with a freshly built QGIS release-2_14 , and the issue<br>
> remains.<br>
> The easiest way to reproduce is to zoom back and forth from big scales ( ~<br>
> 1:25 000 ) to layer extent scale ( ~ 1:600 000 )<br>
<br>
</span>Should be fixed by<br>
<a href="https://github.com/qgis/QGIS/commit/6b80518a5b55ab30fb19493266d5626d0f89d26b" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/commit/6b80518a5b55ab30fb19493266d5626d0f89d26b</a><br>
<br>
There was a leak in the OGR provider when a feature had null geometry<br>
and a filter rect was set on a feature request (such as when rendering<br>
a map).<br>
<br>
I also fixed another (potentially huge?) memory leak in the python code.<br>
<br>
Would appreciate testing and feedback on whether this has made a big<br>
difference for you!<br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Good evening/morning<br>
> Michaël<br>
><br>
> 2016-05-09 15:02 GMT+02:00 kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>>:<br>
>><br>
>> Hi Matthias,<br>
>><br>
>> Not yet, I need to build QGIS master before being able to report back<br>
>> Thanks for your answer<br>
>><br>
>> 2016-05-09 14:59 GMT+02:00 Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>>:<br>
>>><br>
>>> Have you tested with either the latest 2.14 nightly or master nightly?<br>
>>> An issue with OGR connection pooling has been resolved recently. And I<br>
>>> wonder if that could be related.<br>
>>><br>
>>>  -- Matthias<br>
>>><br>
>>><br>
>>> On 05/09/2016 02:28 PM, kimaidou wrote:<br>
>>><br>
>>> I created an issue about it : <a href="http://hub.qgis.org/issues/14792" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/14792</a><br>
>>><br>
>>> 2016-05-09 11:48 GMT+02:00 kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>>:<br>
>>>><br>
>>>> Hi again,<br>
>>>><br>
>>>> I also forgot to mention that I have no memory leak when using the same<br>
>>>> dataset in PostGIS ( tested by importing the Shapefile in PostGIS with<br>
>>>> shape2pgsql )<br>
>>>><br>
>>>> Michaël<br>
>>>><br>
>>>> 2016-05-09 11:07 GMT+02:00 kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>>:<br>
>>>>><br>
>>>>> I forgot to mention the steps to reproduce the bug, and the precautions<br>
>>>>> to take :<br>
>>>>><br>
>>>>> * open the project in QGIS 2.14 ( I have not tested with older<br>
>>>>> versions)<br>
>>>>><br>
>>>>> * open a terminal and use this kind of command to monitor QGIS memory<br>
>>>>> consumption : htop, or ps with<br>
>>>>> watch -n1 'ps -aux --sort -pmem | head -5'<br>
>>>>><br>
>>>>> * Navigate through the project by zooming in and out, pan, etc. I think<br>
>>>>> you emphasize the memory leak by displaying the layer at small scale ( with<br>
>>>>> many buildings displayed)<br>
>>>>><br>
>>>>> * Be aware that this will increase the memory, so keep an eye on the<br>
>>>>> memory consumption so that your system has enough free memory to work<br>
>>>>> properly.<br>
>>>>><br>
>>>>> Michaël<br>
>>>>><br>
>>>>> 2016-05-09 11:00 GMT+02:00 kimaidou <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>>:<br>
>>>>>><br>
>>>>>> Hi devs,<br>
>>>>>><br>
>>>>>> I have just found a memory leak in QGIS Desktop (and server) with the<br>
>>>>>> project available in [1] ( a 20Mo tar.bz2 )<br>
>>>>>><br>
>>>>>> This is a very simple project with only one buildings Shapefile ( SHP<br>
>>>>>> 68Mo). This layer has been exported from PostGIS from a query wich aimed to<br>
>>>>>> simplify the building for fast rendering.<br>
>>>>>><br>
>>>>>> The geometries have been simplified ( I used SnapToGrid, then<br>
>>>>>> (St_Dump(St_Union(a.geom)))  to remove as many nodes as possible )<br>
>>>>>><br>
>>>>>> The layers has ~ 700 000 features.<br>
>>>>>><br>
>>>>>> Has anyone encoutered such a leak ?<br>
>>>>>><br>
>>>>>> [1]<br>
>>>>>> <a href="https://framadrop.org/r/_7VsZtvzdU#+eJHHPPOIdVcgj/AUp8V91T9m6gmO7/XCh6uOhzP7ro=" rel="noreferrer" target="_blank">https://framadrop.org/r/_7VsZtvzdU#+eJHHPPOIdVcgj/AUp8V91T9m6gmO7/XCh6uOhzP7ro=</a><br>
>>>>>><br>
>>>>>> Cheers,<br>
>>>>>><br>
>>>>>> Michaël<br>
>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Qgis-developer mailing list<br>
>>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>>><br>
>>><br>
>>> --<br>
>>> Matthias Kuhn<br>
>>> OPENGIS.ch - <a href="https://www.opengis.ch" rel="noreferrer" target="_blank">https://www.opengis.ch</a><br>
>>> Spatial • (Q)GIS • PostGIS • Open Source<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Qgis-developer mailing list<br>
>>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>