Open EmileSonneveld opened 9 months ago
@EmileSonneveld, thanks for reporting. QGIS 3.22 is no longer supported. May you please actually try if the issue occurs also using a currently supported QGIS version (QGIS 3.34.2, QGIS 3.28.14) and provide the full version info ("In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here. Do not make a screenshot.") as requested in the issue report form?
The huge RAM consumption arises when opening the file with "Add mesh layer" . It works fine with "Add raster layer" (using GDAL netCDF driver)
@PeterPetrik Debugging this, I see QGIS spends its time in MDAL::DriverGdal::initFaces(). On this dataset where width = 16831 and height = 12992, and my understanding of "typedef std::vector
Loading it without the mesh indeed avoids the problem! Can I disable mesh creation by default in QGIS? Or configure the NetCDF to avoid mesh creation? The ram usage could indeed be 10Gb+. That's about the amount that was free at time of crash.
Hi and thanks for report and debugging: created MDAL issue for this https://github.com/lutraconsulting/MDAL/issues/476
In 3.34.2-Prizren
, only QGIS crashes without error message. Which is quite better. It allows to try again without the mesh
Opening this file in 3.34.3 memory consumption rises till 36 GB in steps and then it starts rising in a linear way as if there is a memory leak. When QGis reaches 50 GB of memory consumption i get a "Bad allocation" error, but the program stays alive. Removing this layer then takes a long time where you can see memory consumption drop to some normal 350 MB.
Another instance of that issue in https://github.com/qgis/QGIS/issues/56786#issuecomment-1987378784
What is the bug or the crash?
When I open this file with QGIS, my whole user session crashes. I get a black screen and need to log in again. I think it is due to an over de top amount of RAM being allocated: https://emilesonneveld.be/misc/Sentinel2_makes_linux_user_session_crash.nc (Save any work before opening this NetCDF)
Steps to reproduce the issue
Versions
3.22.4-Białowieża
Supported QGIS version
New profile
Additional context
I made a new profile and added the standard
OpenStreetMap
as background. Still got the crash I run Ubuntu with kernel6.2.0-39-generic
My colleague runs Linux mint and has the same problem