<div dir="ltr">Hello All,<div><br></div><div>I wrote a python script using the Paraview ExodusIIReader to convert exodus II files into csv's. The script usually runs successfully, but sometimes I get a segfault. Am I missing something? How might I be able to better handle memory in this code? I tried pasting the reset function <a href="https://public.kitware.com/pipermail/paraview/2015-July/034588.html">I found on the mailing list</a> to the top of the code but it did not seem to help. I appreciate your time and support.</div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">from paraview.simple import *</font></div><div><font face="monospace, monospace">from paraview.numpy_support import vtk_to_numpy</font></div><div><font face="monospace, monospace">import vtk.numpy_interface.dataset_adapter as dsa</font></div><div><font face="monospace, monospace">import sys</font></div><div><font face="monospace, monospace">s = ExodusIIReader(FileName='./results/%s.e'%sys.argv[-1])</font></div><div><font face="monospace, monospace">d = CreateWriter('./out.csv', s)</font></div><div><font face="monospace, monospace">Delete(d)</font></div><div><font face="monospace, monospace">d.FieldAssociation = "Points"</font></div><div><font face="monospace, monospace">d.UpdatePipeline(time=s.TimestepValues[-1])</font></div><div><font face="monospace, monospace">Delete(s)</font></div><div><font face="monospace, monospace">Delete(d)</font></div><div><font face="monospace, monospace">del d</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">$ pvpython mycode.py my_ecodus_file<br></font></div><div><font face="monospace, monospace">$ pvpython mycode.py my_ecodus_file</font></div><div><font face="monospace, monospace">Segmentation fault: 11</font><br></div><div><br></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Thanks,</div><div><font color="#000000">Julian</font></div></div></div></div></div></div></div></div></div>
</div></div>