# What should happen when paraview runs out of memory?

**URL:** https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898
**Category:** ParaView Support
**Created:** [April 8, 2021, 4:51pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898 "2021-04-08T16:51:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [April 8, 2021, 4:51pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/1 "2021-04-08T16:51:25Z")

</div>

It seems to me that when I load a data set which exceeds the available memory, paraview will hard crash. Is that expected?

---

<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: [April 8, 2021, 5:25pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/2 "2021-04-08T17:25:28Z")

</div>

Yes, no way around that. I guess we could monitor the memory and abort some way.

---

<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: [April 8, 2021, 5:39pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/3 "2021-04-08T17:39:57Z")

</div>

There’s nothing really we can do in practice at our scale. We can’t even message because _that_ might allocate memory in the I/O subsystems. VTK/ParaView generally aren’t exception-safe, so that’s just going to leak memory all over the place too.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 8, 2021, 6:01pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/4 "2021-04-08T18:01:35Z")

</div>

I also want to bring up one of ParaView’s best tools - View/ Memory Inspector. This way, you can see how full your memory actually is.

Also, I believe there is nuance to the question. If it is a remote server, the assumption is that ParaView is attaching to a cluster. Allocate more nodes. If you are builtin server, it should not crash, but rather start moving into swap (and running SLOWLY).

If you crash, depending on what your setup is, there are things you can try. One is don’t load variables. Don’t use filters that create a lot of data (such as Clip). Increase the size of swap provided by your OS.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [April 8, 2021, 6:28pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/5 "2021-04-08T18:28:40Z")

</div>

Thank you all for your comments. So, size matters.

However, I have now found an input which still leads to a hard crash. There is a difference between 5.8.1 and 5.9: 5.9 crashes, the older version works correctly.

> **[mesh.vtu](https://www.dropbox.com/s/fmenmjb718a62wq/mesh.vtu?dl=0)**
>
> Shared with Dropbox

---

<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: [April 9, 2021, 1:02pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/6 "2021-04-09T13:02:17Z")

</div>

Unable to reproduce your crash with 5.9.0 or master.

Also unrelated to the initial topic at hands.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [April 9, 2021, 2:48pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/7 "2021-04-09T14:48:53Z")

</div>

Not so,I’m afraid. It is still about hard crashes of 5.9.0 (Windows10).

Initially the hard crashes were observed with fairly large meshes, which then could explain the crashes by the requested memory and failure to deliver that memory.

At this point however I find that I cannot get 5.9.0 started with _any_ VTK data set. Are there some settings that it may be possible to reset?

---

<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: [April 9, 2021, 2:52pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/8 "2021-04-09T14:52:02Z")

</div>

[https://www.paraview.org/Wiki/ParaView\_Settings\_Files](https://www.paraview.org/Wiki/ParaView_Settings_Files)

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [April 9, 2021, 2:55pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/9 "2021-04-09T14:55:02Z")

</div>

Thanks. I removed the settings, and 5.9.0 works again.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 9, 2021, 4:00pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/10 "2021-04-09T16:00:19Z")

</div>

Petr, did you by any chance keep the settings files?

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 9, 2021, 4:01pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/11 "2021-04-09T16:01:10Z")

</div>

Also, you can do the same thing through the GUI using Edit/ Reset to Default Settings.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [April 9, 2021, 4:01pm UTC](https://discourse.paraview.org/t/what-should-happen-when-paraview-runs-out-of-memory/6898/12 "2021-04-09T16:01:16Z")

</div>

Yes, I filed an issue: [https://gitlab.kitware.com/paraview/paraview/-/issues/20637](https://gitlab.kitware.com/paraview/paraview/-/issues/20637)
