# Paraview closes when trying to open a simple vtk file

**URL:** https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767
**Category:** ParaView Support
**Created:** [October 15, 2019, 10:06am UTC](https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767 "2019-10-15T10:06:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MarinaVendlCraveiro](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@MarinaVendlCraveiro](https://discourse.paraview.org/u/MarinaVendlCraveiro)
#### Post date: [October 15, 2019, 10:06am UTC](https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767/1 "2019-10-15T10:06:36Z")

</div>

Hi!

I am trying to open this file in Paraview:

[Poligono1.vtk](https://discourse.paraview.org/uploads/short-url/3pWQN8mpxXJspe8hTQYcsbTKT9.vtk) (338 Bytes)

But Paraview closes when trying to open it. One strange thing is that this file has worked once and it has a very simple geometry with vtk\_triangles. What may be happening? Can you help, please?

Thanks,

Marina

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [October 15, 2019, 2:52pm UTC](https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767/2 "2019-10-15T14:52:15Z")

</div>

Hi,

Your file is ill-formed: if you open it in a text editor you can see at line 24 that a cell is declared containing the point id 8 but you have only 7 points (so max id should be 6).

That said, in my opinion, a warning should be displayed instead of a crash …

Feel free to open a bug report (maybe on the VTK repository [https://gitlab.kitware.com/vtk/vtk/issues/new?issue[assignee\_id]=&issue[milestone\_id]=](https://gitlab.kitware.com/vtk/vtk/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=)) and thanks for reporting !

---

<div class="post-metadata">

### Author: ![MarinaVendlCraveiro](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@MarinaVendlCraveiro](https://discourse.paraview.org/u/MarinaVendlCraveiro)
#### Post date: [October 15, 2019, 3:21pm UTC](https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767/3 "2019-10-15T15:21:48Z")

</div>

Hi!

Thanks for helping me figure out the problem!  
In fact, a warning would have made it easier to find the error.

Thank you again,

Marina

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [October 17, 2019, 1:25pm UTC](https://discourse.paraview.org/t/paraview-closes-when-trying-to-open-a-simple-vtk-file/2767/4 "2019-10-17T13:25:36Z")

</div>

VTK’s legacy readers just need to be redone to not trust their input so much. I’ve got a nice pile of crashers laying around for anyone interested in fixing the bugs (though I suspect just following the specs and writing new implementations would be more productive).
