MantisBT - ParaView
View Issue Details
0014021ParaView(No Category)public2013-04-18 03:332016-08-12 09:59
Felipe Bordeu 
Kitware Robot 
normalminorhave not tried
closedmoved 
3.98.1 
 
TBD
crash
0014021: vtkXdmfWriter Crash when field data of type vtkStringArray is present in the dataset
if a vtkStringArray is present in the dataset the XdmfWriter crash in the line : vtkWdmfWriter.cxx:1004, because we try to convert a vtkAbstractArray into a vtkDataArray.

the patch is simple, just test if is a valid pointer :

diff --git a/IO/Xdmf2/vtkXdmfWriter.cxx b/IO/Xdmf2/vtkXdmfWriter.cxx
index a186bb4..716a016 100644
--- a/IO/Xdmf2/vtkXdmfWriter.cxx
+++ b/IO/Xdmf2/vtkXdmfWriter.cxx
@@ -1002,7 +1002,7 @@ void vtkXdmfWriter::WriteArrays(vtkFieldData* fd, XdmfGrid *grid, int associatio
     std::vector<std::string> AttributeNames;
     for (int i=0; i<fd->GetNumberOfArrays(); i++) {
       vtkDataArray *scalars = fd->GetArray(i);
- AttributeNames.push_back(scalars->GetName());
+ if(scalars) AttributeNames.push_back(scalars->GetName());
     }
     std::sort(AttributeNames.begin(), AttributeNames.end());
 


No tags attached.
Issue History
2013-04-18 03:33Felipe BordeuNew Issue
2016-08-12 09:59Kitware RobotNote Added: 0038384
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved
2016-08-12 09:59Kitware RobotAssigned To => Kitware Robot

Notes
(0038384)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.