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.52k stars 2.99k forks source link

MDAL does not release (netcdf/mesh) file when layer unloaded from QGIS? #49215

Closed rduivenvoorde closed 2 years ago

rduivenvoorde commented 2 years ago

What is the bug or the crash?

Having a little python script here which creates an ugrid.nc I see that QGIS after loading a mesh (and then unloading it) keeps a file open apparently (checked with lsof).

Steps to reproduce the issue

Tested it with a shp file, and then one is just released after the unloading of the layer.

Versions

QGIS version 3.27.0-Master QGIS code revision 415c545bae3
Qt version 5.15.4
Python version 3.10.5
GDAL/OGR version 3.5.0
PROJ version 9.0.1
EPSG Registry database version v10.064 (2022-05-19)
GEOS version 3.10.3-CAPI-1.16.1
SQLite version 3.38.5
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Debian GNU/Linux bookworm/sid

Supported QGIS version

New profile

Additional context

If needed I can provide a small test python script which actually writes the nc file

vcloarec commented 2 years ago

seems not fixed by https://github.com/lutraconsulting/MDAL/pull/423