# PVPython Seg Fault when creting RenderView

**URL:** https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230
**Category:** ParaView Support
**Tags:** python
**Created:** [May 1, 2020, 1:03am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230 "2020-05-01T01:03:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ShogunHirei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@ShogunHirei](https://discourse.paraview.org/u/ShogunHirei)
#### Post date: [May 1, 2020, 1:03am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/1 "2020-05-01T01:03:36Z")

</div>

Greetings, all.

I am working with OpenFOAM for CFD simulations and using Paraview for post-processing and saving data from the simulation.  
This time I am running a bunch of simulations and using pvpython to save data. I have already done this before successfully, but this time the script is not working. I found the error when calling functions that render views, like Show() or CreateOrRenderView() it show me on the prompt:

```auto
Stack dump:
Segmentation Fault (core dumped)

```

When I try to run CreateView(‘Camera’) it throws:

```auto
ERROR: In /home/ubuntu/OpenFOAM/ThirdParty-dev/ParaView-5.6.0/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 522
vtkSIProxyDefinitionManager (0x55bfefe0e720): No proxy that matches: group=views and proxy=Camera were found.

```

I’m relatively new to Paraview, just need to save the data of the last time step programmatically, and to ensure this before I have used the GetActiveView() associated with DATA\_SOURCE.TimeStepValues[-1], and for the fields I’ve used PROXY.PointDataArrays = [‘field1’, …].

I am using Paraview5.6 in Linux Mint, A log of the pvpython --cslog is attached.  
Any help is welcome.

I[log.file](https://discourse.paraview.org/uploads/short-url/cdSCwBfFTfZCylKFyKbQ7XxmjvH.file) (43.7 KB)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [May 1, 2020, 2:24am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/2 "2020-05-01T02:24:17Z")

</div>

`CreateView(‘Camera’)` is not correct. You can use `CreateView("RenderView")` or `CreateRenderView()` instead.

---

<div class="post-metadata">

### Author: ![ShogunHirei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@ShogunHirei](https://discourse.paraview.org/u/ShogunHirei)
#### Post date: [May 1, 2020, 7:40pm UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/3 "2020-05-01T19:40:51Z")

</div>

@utkarsh.ayachit

I tried both commands and still get the segmentation fault error.  
I posted the `CreateView('Camera')` to see if it has some useful information.

Using the trace in the desktop application of paraview I saw the FindOrCreateView, and it seems to be working, but not in the pvpython.

I tried to reinstall the paraview, but it not worked either.

Maybe a problem related to some installation issue in OS. Any thoughts would be appreciated.

---

<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 12, 2020, 1:37am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/4 "2020-05-12T01:37:24Z")

</div>

Please provide precise steps to reproduce your issue.

---

<div class="post-metadata">

### Author: ![ShogunHirei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@ShogunHirei](https://discourse.paraview.org/u/ShogunHirei)
#### Post date: [May 12, 2020, 1:52am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/5 "2020-05-12T01:52:40Z")

</div>

Dear Mathieu,

I’ve installled OpenFOAM6 according to its [website](https://openfoam.org/download/6-ubuntu/) instructions, and along with it the Paraview5.6 version. I’m using Linux Mint 19.2 (Tara)

The PVPython script worked before. But I’m not sure what have happened to break the installation.

The error can be reproduce as I try to input the command `CreateRenderView()` in PVPython or use a script with it in PVBatch.

---

<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 12, 2020, 1:54am UTC](https://discourse.paraview.org/t/pvpython-seg-fault-when-creting-renderview/4230/6 "2020-05-12T01:54:34Z")

</div>

This version of ParaView is built by OpenFOAM, so the issue may come from there.

Please download our binary release (ideally 5.8) and test with it first :  
[https://www.paraview.org/download/](https://www.paraview.org/download/)
