Landscape metrics makes qgis crash
When processed area is big enough qgis crash during the iteration on the grid. It seems something from the main thread is accessed. I tested duplciating all the layers and paremeters inside QgsProcessingAlgorithm to avoid the crash but it still occurs. I also removed numpy as it might be considered as an external library thus causing the crash as the C++ documentation seems to infer.