qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.62k stars 3.01k forks source link

GeoPackage raster memory consumption #50646

Open arturred opened 2 years ago

arturred commented 2 years ago

What is the bug or the crash?

Hi

With the latest QGIS opening any GeoPackage raster dataset and navigating the map (many zoom operations) consumes a lot of memory that is increasing a lot eating the whole RAM. This happens on any dataset I have (from the web) and the bigger the map is, the bigger the memory leaks occur taking even 64GB of my PC RAM.

Steps to reproduce the issue

Any bigger GeoPackage raster dataset to observe after memory consumption. I start QGIS with 200MB usage and open a small dataset increasing RAM to 300MB, but after zooming the RAM consumption speeds up to 1 GB and grows. Unfortunately, my raster has a resolution 4000000x2000000. So the RAM consumption increases multi times faster.

Versions

Windows 11 QGIS 3.26.3

Supported QGIS version

New profile

Additional context

No response

arturred commented 2 years ago

Here is a cross-link to GDAL issue .

agiudiceandrea commented 2 years ago

@arturred, could you please provide a sample GPKG with a raster layer the issue occur with?

arturred commented 2 years ago

You can use any sample that you find. The higher resolution, the higher the memory consumption after each zoom. Here is a sample dataset with many vectors and one raster layer that you can test : dataset