View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015350Xdmf(No Category)public2015-01-14 10:372015-09-10 07:36
ReporterFelipe Bordeu 
Assigned ToJoachim Pouderoux 
PriorityhighSeveritycrashReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Summary0015350: crash when writting data with string arrays
DescriptionParaview 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)
         {
Steps To Reproduce- load the NonOrthogonalSource plugin
- create a ShearedWavelet
- select the Enable Axis Titles
- apply
- save data into xmf
Additional Informationusing latest paraview sources v4.3.1
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039385)
Joachim Pouderoux (developer)
2015-09-10 07:07

Thanks. I will patch that.
(0039388)
Joachim Pouderoux (developer)
2015-09-10 07:36

https://gitlab.kitware.com/vtk/vtk/merge_requests/646 [^]

 Issue History
Date Modified Username Field Change
2015-01-14 10:37 Felipe Bordeu New Issue
2015-09-10 07:07 Joachim Pouderoux Note Added: 0039385
2015-09-10 07:36 Joachim Pouderoux Assigned To => Joachim Pouderoux
2015-09-10 07:36 Joachim Pouderoux Status new => confirmed
2015-09-10 07:36 Joachim Pouderoux Note Added: 0039388


Copyright © 2000 - 2018 MantisBT Team