# Out of memory issue with the programmable filter.

**URL:** https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487
**Category:** ParaView Support
**Tags:** vtk
**Created:** [March 19, 2026, 10:03pm UTC](https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487 "2026-03-19T22:03:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![XiangyuLong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/x/779978/32.png) [@XiangyuLong](https://discourse.paraview.org/u/XiangyuLong)
#### Post date: [March 19, 2026, 10:03pm UTC](https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487/1 "2026-03-19T22:03:33Z")

</div>

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](https://www.dropbox.com/scl/fo/s1ulgbgfgfqr25q2xhkrp/AJSkMqtNVSCTRCPV_IhBvvQ?rlkey=fayi3cvy5li2o3arx0ebmvgzd&st=8s93ls37&dl=0)

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

```auto
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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 20, 2026, 9:58am UTC](https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487/2 "2026-03-20T09:58:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![XiangyuLong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/x/779978/32.png) [@XiangyuLong](https://discourse.paraview.org/u/XiangyuLong)
#### Post date: [March 20, 2026, 5:02pm UTC](https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487/3 "2026-03-20T17:02:07Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 20, 2026, 5:09pm UTC](https://discourse.paraview.org/t/out-of-memory-issue-with-the-programmable-filter/17487/4 "2026-03-20T17:09:14Z")

</div>

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