MantisBT - Xdmf
View Issue Details
0015350Xdmf(No Category)public2015-01-14 10:372015-09-10 07:36
Felipe Bordeu 
Joachim Pouderoux 
highcrashalways
confirmedopen 
0015350: crash when writting data with string arrays
Paraview chashes when trying to save data with string arrays in xdmf format.

patch to solve the problem
diff --git a/IO/Xdmf3/vtkXdmf3DataSet.cxx b/IO/Xdmf3/vtkXdmf3DataSet.cxx
index f680b3e..cc5b707 100644
--- a/IO/Xdmf3/vtkXdmf3DataSet.cxx
+++ b/IO/Xdmf3/vtkXdmf3DataSet.cxx
@@ -663,6 +663,11 @@ void vtkXdmf3DataSet::VTKToXdmfAttributes(
     for (int cc=0; cc < numArrays; cc++)
       {
       vtkDataArray *vArray = fieldData->GetArray(cc);
+ if (!vArray)
+ {
+ cerr << "Skipping not a vtkDataArray array." << endl;
+ continue;
+ }
       std::string attrName = vArray->GetName();
       if (attrName.length() == 0)
         {
- load the NonOrthogonalSource plugin
- create a ShearedWavelet
- select the Enable Axis Titles
- apply
- save data into xmf
using latest paraview sources v4.3.1
No tags attached.
Issue History
2015-01-14 10:37Felipe BordeuNew Issue
2015-09-10 07:07Joachim PouderouxNote Added: 0039385
2015-09-10 07:36Joachim PouderouxAssigned To => Joachim Pouderoux
2015-09-10 07:36Joachim PouderouxStatusnew => confirmed
2015-09-10 07:36Joachim PouderouxNote Added: 0039388

Notes
(0039385)
Joachim Pouderoux   
2015-09-10 07:07   
Thanks. I will patch that.
(0039388)
Joachim Pouderoux   
2015-09-10 07:36   
https://gitlab.kitware.com/vtk/vtk/merge_requests/646 [^]