Out of memory issue with the programmable filter.

Hi experts,

I’m trying to add a programmable filter to a vtk file. The vtk file is around 60mb and the text file for the programmable filter is around 20mb. Those files could be found here: Dropbox

However after I load the vtk file, then if I apply the following code in the progammable filter to the vtk file:

myArray=numpy.loadtxt("/the_full_path/right_hemisphere.txt")
output.PointData.append(myArray, "RH")

Paraview just crashed with the out-of-memory issue.

My current Paraview version is 6.1.0-RC1.

My Mac computer has Apple M3 chip, with 16 GB memory and Sonoma 14.8.4. When I load the vtk file, Paraview showed “8.4GiB/16.0 GiB 52.6%“ on the right corner.

I was wondering what causes this the issue, thanks.

myArray has the wrong size, it should be the same number as the number of points.

1 Like

Thank you very much! I found out I used a wrong CSV file to create the text file.

However it’s interesting that Paraview gave me the out-of-memory issue rather than the error of wrong size of the array.

Please open an issue, I agree that it should not behave like that.

1 Like