What is the bug or the crash? When trying to export a layout from python standalone exportToImage does not produce any output. I have tried witht the pdf option (exportToPdf) and it works as expected.
It prints available algorithms when I run it inside QGIS Python console. But when I run it in the Python shell outside QGIS, it prints nothing. I checked the variables, ...