Surface LIC visualization problem

I’m trying to use a Python script in order to automate a CFD postprocessing. Everything works quite smoothly except for the surface lic visualization. I get images like this one (with discontinuity in different part of the image).

The view a see in paraview after the last screenshot is fine. So I don’t understand what is wrong.

This happens when tiling ends up being used when saving screenshot. See the way to overcome this issue reported here. Essentially, you set the size of the window to match the target image size before saving the image to avoid the tiling code from kicking in.