<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Sebastian
<div><br>
</div>
<div>Thanks for the information. I read the GitHub page.</div>
<div><br>
</div>
<div>
<div>I have tested QGIS 3.40.7 and also 3.42.3 and other versions of QGIS for Windows 11 but the problem persists. This model with a single file runs in three seconds so it is not a complexity related problem. I did the test with a batch processing of 113 files
and only once out of ten did it run entirely without interruption. Really strange.</div>
<div><br>
</div>
<div>At this point for my purposes the only possible workaround is this:</div>
</div>
<div><span style="white-space: pre-wrap;">- press Run and wait for the batch processing to work;</span></div>
<div>
<p style="white-space: pre-wrap; margin: 0px;">- if it gets to the end without any problems, you will have all the files saved but if at some point it stops and does not go on you have to press the QGIS close button in the upper right corner;</p>
<p style="white-space: pre-wrap; margin: 0px;">- a window will open asking you if you want to stop batch processing and press Yes;</p>
<p style="white-space: pre-wrap; margin: 0px;">- go back into batch processing and delete all the rows that have already been executed (from the log you see the number of the tif created);</p>
<p style="white-space: pre-wrap; margin: 0px;">- there will be fewer rows to run and press Run</p>
<p style="white-space: pre-wrap; margin: 0px;">- wait and if it crashes again proceed as seen above by removing the rows that have already been executed, to the end.</p>
<p style="white-space: pre-wrap; margin: 0px;"><br>
</p>
<p style="white-space: pre-wrap; margin: 0px;">It is definitely not comfortable this solution but it is the only one that works for now.</p>
<p style="white-space: pre-wrap; margin: 0px;"><br>
</p>
<p style="white-space: pre-wrap; margin: 0px;">It seems that more than QGIS or Python there is something in the operation of the operating system that sends something into the memory stream. So far in fact I have not yet encountered this problem in macOS or
Linux, but maybe it is just luck. It is a pity because Batch Processing is a very powerful tool indeed. Thanks again</p>
<p style="white-space: pre-wrap; margin: 0px;"><br>
</p>
<div><br>
<blockquote type="cite">
<div>Il giorno 5 giu 2025, alle ore 19:46, Sebastian Gutwein via QGIS-Developer <qgis-developer@lists.osgeo.org> ha scritto:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="ltr">Sadly this is a known problem that we have not been able to find a solution to. <a href="https://github.com/qgis/QGIS/issues/53806">https://github.com/qgis/QGIS/issues/53806</a>
<div>It does not seem to matter the size of the raster or vector layer.</div>
<div>Anecdotally- I have not noticed it with the most recent version (3.40.3) of QGIS yet. </div>
<div> </div>
</div>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Thu, Jun 5, 2025 at 9:42 AM Lorenzo Moretti via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi<br>
<br>
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.<br>
My model is very simple:<br>
in INPUT there is a raster file and a vector file.The working sequence is this:<br>
- the vector file is converted to a raster file with an extension equal to the INPUT raster file;<br>
- in the converted raster all nodata values are converted to the value zero (with FILLNodata);<br>
- output is the converted raster file with an integer value. The Data Type is Int16.<br>
<br>
In the model there are 5 algorithms with 2 files in INPUT and 1 file in OUTPUT.<br>
In a few seconds I have the result.<br>
<br>
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.<br>
Batch Processing is very powerful and allows this kind of work. A very simple Model repeated many times.<br>
I used it in macOS and Linux Ubuntu and managed to create even 2200 files in a few minutes: the model worked 2200 times.<br>
<br>
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.<br>
<br>
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.<br>
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?<br>
The raster area is not large and the final raster file is usually small, about 20 MB.<br>
Batch Processing only works for a few times and then stops.<br>
Can anyone help me with this?<br>
<br>
Thanks<br>
<br>
Lorenzo<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote>
</div>
<div><br clear="all">
</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">___________________________<br>
<div dir="ltr"><span>Sebastian "Bas* " Gutwein</span></div>
<div><span><span>*rhymes with Josh <br>
</span></span></div>
<div><span><span><br>
</span></span></div>
Regenerative Design Group<br>
1 Chevalier Ave<br>
Greenfield, Ma 01301<br>
Web: <a href="http://regenerativedesigngroup.com/" target="_blank">regenerativedesigngroup.com</a><br>
(631) 241-1018<br>
<br>
<div dir="ltr"><i><span><span>Look close, think big, make change. </span></span></i></div>
<div dir="ltr"><span></span></div>
</div>
</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
QGIS-Developer@lists.osgeo.org<br>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer<br>
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer<br>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>