# Paraview crashes when I use the delauny2D filter

**URL:** https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582
**Category:** ParaView Support
**Created:** [September 18, 2019, 2:22pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582 "2019-09-18T14:22:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![s1291](https://discourse.paraview.org/user_avatar/discourse.paraview.org/s1291/32/15950_2.png) [@s1291](https://discourse.paraview.org/u/s1291)
#### Post date: [September 18, 2019, 2:22pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582/1 "2019-09-18T14:22:48Z")

</div>

Hello,  
I have the following csv file. When I try to use the `Delauny2D` filter, paraview crashes:  
[delauny.pvsm](https://discourse.paraview.org/uploads/short-url/jLf61budkOOt61akT1SZyu8SxBU.pvsm) (64.4 KB)  
Could you please tell me why it crashes?:

- [Download The csv file and the state file](https://www.dropbox.com/sh/i09zjmvfjh3ae9s/AACdScufRsRmmQ-kzU5wq9R9a?dl=0).

---

<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: [September 19, 2019, 5:32am UTC](https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582/2 "2019-09-19T05:32:41Z")

</div>

I’m unable to reproduce your issue with ParaView 5.6 and 5.7.  
Which version ParaView are you using ?

---

<div class="post-metadata">

### Author: ![s1291](https://discourse.paraview.org/user_avatar/discourse.paraview.org/s1291/32/15950_2.png) [@s1291](https://discourse.paraview.org/u/s1291)
#### Post date: [September 19, 2019, 7:25am UTC](https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582/3 "2019-09-19T07:25:20Z")

</div>

I tested that on Paraview 5.4, 5.6.0, and 5.6.2 versions on Windows 7 (Intel Xeon, 20GB RAM).  
But I noticed that it doesn’t crash when I remove some lines, for example using `awk`

```auto
echo "x-coord,y-coord,z-coord,vel-mag" > new_vel_field.csv
cat velocity_field.csv | awk -F, '$1<4.5' >> new_vel_field.csv

```

This works fine. But I am still curious why it doesn’t work with the original csv file `velocity_field.csv`? How can I debug that?

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [September 19, 2019, 11:59am UTC](https://discourse.paraview.org/t/paraview-crashes-when-i-use-the-delauny2d-filter/2582/4 "2019-09-19T11:59:55Z")

</div>

I built and ran a vtk program which reads the points contained in velocity\_field.csv and applies the vtkDelaunay2D filter with VS 2017. And it eventually crashed with a stack overflow within vtkDelaunay2D::FindTriangle function that is the recursive.  
[Delaunay2D.7z](https://discourse.paraview.org/uploads/short-url/6S4VNoSvtmQ25UejvgwmnCli5Oc.7z) (684.1 KB)

If I increase the stack size using the Linker property System \> Stack Reserve Size (ex. 1000000000), it definitely can avoid the stack overflow. But I’m afraid I don’t know a drastic solution.
