savescreenshot gives corrupted image when generated from pvpython
The tests was done with paraview 5.4.1 64 bit on a RedHat 4.4.7-16. Hardware is Dual Intel Xeon E5-2690(12core) with Dual GRID K2 The following state file is the common starting point for all 3 paths to an image vtkWithTwoRenderviews.pvsm These two files are the input files: p1.vtk p2.vtk
The following image is the output with fully manual screen shot generation. Both renderviews are dumped without artefacts.
The following script saves a screen shot of both renderview when run as a macro from the GUI. dumpAllRenderviews.py This is the output image, also without artefacts or distortions.
The following script is similar to the previous python script, except it initially loads the state file. pvpythonScript.py
The following image shows the output with the terminal command: "pvpython pvpythonScript.py". As can be seen the image is not as expected because the second renderview is not included and colorbar is different.