# Median filter crashing with .vti images

**URL:** https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140
**Category:** ParaView Support
**Tags:** python
**Created:** [May 23, 2023, 7:57pm UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140 "2023-05-23T19:57:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Xabier\_Morales\_Ferez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/xabier_morales_ferez/32/2890_2.png) [@Xabier\_Morales\_Ferez](https://discourse.paraview.org/u/Xabier_Morales_Ferez)
#### Post date: [May 23, 2023, 7:57pm UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/1 "2023-05-23T19:57:06Z")

</div>

Hi,

I’m updating a pipeline in Python where I take 3D images and save them as .vti images to visualize in Paraview. Previously, I saved them using the Pyevtk library, now I have switched to Pyvista. For some unknown reason now if I try to use the Median filter Paraview crashes without warning. Are there any known incompatibilities with files coming from Pyvista?

Just looking at the Data information in Paraview they look exactly the same to me. laao\_004 is the new file which leads crashes Paraview and and paf\_91258 is from the old pipeline.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3080cc1f0d1e543f9a68071b0de1587a9a38f97e.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/573f4ab65e26e438708dbde371aa464f338d2701.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/21e93743b891e6df141a9766fcef19cf80af2dfd.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/24a48e3290058e2b431935f0d4cae94beee20556.png)

Kind regards,  
Xabier

---

<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: [May 24, 2023, 8:52am UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/2 "2023-05-24T08:52:01Z")

</div>

please share your data.

---

<div class="post-metadata">

### Author: ![Xabier\_Morales\_Ferez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/xabier_morales_ferez/32/2890_2.png) [@Xabier\_Morales\_Ferez](https://discourse.paraview.org/u/Xabier_Morales_Ferez)
#### Post date: [May 24, 2023, 10:17am UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/3 "2023-05-24T10:17:39Z")

</div>

I have attached a timestep for each of the examples  
[paf\_91258\_00.zip](https://discourse.paraview.org/uploads/short-url/9lNdzjjE8T0gemwYpwuj92QG7HX.zip) (3.7 MB)  
[laao\_004\_000.zip](https://discourse.paraview.org/uploads/short-url/aKKCljVFA4igNeEfqAYlEx5WQ5w.zip) (3.5 MB)

---

<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: [May 24, 2023, 11:23am UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/4 "2023-05-24T11:23:33Z")

</div>

No crash with either files using ParaView-5.11.1-MPI-Linux-Python3.9-x86\_64 binary release

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2bc68847ab7cd2b12e45e3ad54c2929a698d0009.png)

---

<div class="post-metadata">

### Author: ![Xabier\_Morales\_Ferez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/xabier_morales_ferez/32/2890_2.png) [@Xabier\_Morales\_Ferez](https://discourse.paraview.org/u/Xabier_Morales_Ferez)
#### Post date: [May 24, 2023, 11:52am UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/5 "2023-05-24T11:52:41Z")

</div>

I just read and saved the laao\_004 data again using Pyevtk, and now the filter doesn’t crash. I assume it is a Pyvista issue. I was using the ParaView-5.11.0-Windows-Python3.9-msvc2017-AMD64.msi release, but I’m going to try the 5.11.1 version just in case.

---

<div class="post-metadata">

### Author: ![Xabier\_Morales\_Ferez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/xabier_morales_ferez/32/2890_2.png) [@Xabier\_Morales\_Ferez](https://discourse.paraview.org/u/Xabier_Morales_Ferez)
#### Post date: [May 24, 2023, 12:02pm UTC](https://discourse.paraview.org/t/median-filter-crashing-with-vti-images/12140/6 "2023-05-24T12:02:38Z")

</div>

ParaView-5.11.1-MPI-Windows-Python3.9-msvc2017-AMD64.msi crashes the same way. I don’t mind continuing to use Pyevtk for now, but I just wanted to mention the bug in case other people also find the same issue.
