[QGIS-Developer] Uno strano blocco in Model Designer in batch processing

Lorenzo Moretti morettilorenzo at outlook.com
Thu Jun 5 06:42:22 PDT 2025


Hi

I have developed several models in Model Designer and I am using them in QGIS in different platforms. I am having a really strange problem especially in the Windows version of QGIS.
My model is very simple:
 in INPUT there is a raster file and a vector file.The working sequence is this:
- the vector file is converted to a raster file with an extension equal to the INPUT raster file;
- in the converted raster all nodata values are converted to the value zero (with FILLNodata);
- output is the converted raster file with an integer value. The Data Type is Int16.

In the model there are 5 algorithms with 2 files in INPUT and 1 file in OUTPUT.
In a few seconds I have the result.

All this, however, is done in Batch Processing and in INPUT all the vector files in a directory are taken. The number of these files may be tens, hundreds or thousands.
Batch Processing is very powerful and allows this kind of work. A very simple Model repeated many times.
I used it in macOS and Linux Ubuntu and managed to create even 2200 files in a few minutes: the model worked 2200 times.

The problem, however, came up in the Windows version. Basically Batch Processing at some point stops completely randomly, for example after 38 processes or after 54 and so on. The model does not exit but stays put and does not start again.

I have tried and tried again in different computers but the result is the same. In Windows, the program stops after running only a few models completely randomly.
I don't understand the source of the problem: is it the memory? Or is it in Windows to clear the cache during the various steps?
The raster area is not large and the final raster file is usually small, about 20 MB.
Batch Processing only works for a few times and then stops.
Can anyone help me with this?

Thanks

Lorenzo


More information about the QGIS-Developer mailing list