State files are becoming huge


I’m running a Python script in Paraview 5.11.0 to read some already existing Paraview state files, add some filters, and save the state files back. As I go through the cases, the state file size increases really fast. The state files work perfectly afterwards, but they become so big that it takes a lot of time to open them. Do you know what might be the problem?

I tried running this code I found on an old forum post, and after each iteration, the state files don’t increase that much in size, but they continue to do so.

def ResetSession():
    pxm = servermanager.ProxyManager()
    del pxm

Kind regards,

1 Like