<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear developers,</div>

<div> </div>

<div>I've rewritten three python scripts as processing scripts. Two of them don't terminate correctly showing only a not very helpful stack trace dialog stating:</div>

<div>
<pre><code>An error has occurred while executing Python code:

RuntimeError: wrapped C/C++ object of type AlgorithmDialog has been deleted
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py", line 246, in runAlgorithm
    on_complete(ok, results)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py", line 201, in on_complete
    self.tr('Execution completed in {0:0.2f} seconds').format(time.time() - start_time))
RuntimeError: wrapped C/C++ object of type AlgorithmDialog has been deleted</code></pre>
</div>

<div> </div>

<div>I couldn't tell if my script is error free (it most likely isn't). Yet the user would need to have some more information besides just a runtime error.</div>

<div> </div>

<div>So the question is: Given that QGIS doesn't provide any more information is it considered a bug or a feature request to provide information about the runtime error? I have already created a bug ticket with my script attached (https://github.com/qgis/QGIS/issues/42069) assuming QGIS should provide information about the error but I am unsure if I shouldn't rather put the issue as a question on gis.stackexchange.com assuming my script is just wrong. Maybe the topic can also be solved by adding the most common mistakes to the docs (which I'm happy to do once the reasons are clear). Any opinions to what extent QGIS error messages should be meaningful and how to treat the topic?</div>

<div> </div>

<div>Thanks in advance for your thoughts!</div>

<div> </div>

<div>Regards, Tobias</div>

<div> </div>

<div> </div></div></body></html>