Skip to content

Virtual raster provider memory leak - memory not released until QGIS closed #64559

Description

@Geojim

What is the bug or the crash?

When using the virtual raster provider (on-the-fly raster calculations), memory usage grows continuously with panning/zooming and is not released when the layer is removed or the project is closed. Memory is only freed when QGIS is fully closed.

Steps to reproduce the issue

Start a new project, fresh profile. Set CRS and

  • drag in GeoTiff.
  • create virtual raster : raster > raster calculator > tick create on the fly raster
  • add one band to another band
  • ok, zoom pan around. watch memory grow and grow....

remove layers, no change to memory
close and start new project, no change to memory
close qgis - memory released

tested on 2 machines with latest vis osgeo4w

Versions

QGIS version3.44.6-Solothurn
QGIS code revisionfb066c58058
 
Libraries
Qt version5.15.13
Python version3.12.12
GDAL version3.12.1 — Chicoutimi
PROJ version9.7.1
EPSG Registry database versionv12.029 (2025-10-03)
GEOS version3.14.1-CAPI-1.20.5
SQLite version3.50.4
PDAL version2.9.0
PostgreSQL client version17.3
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Metadata

Metadata

Assignees

Labels

BugEither a bug report, or a bug fix. Let's hope for the latter!RastersRelated to general raster layer handling (not specific data formats)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions