View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014021ParaView(No Category)public2013-04-18 03:332016-08-12 09:59
ReporterFelipe Bordeu 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version3.98.1 
Target VersionFixed in Version 
Summary0014021: vtkXdmfWriter Crash when field data of type vtkStringArray is present in the dataset
Descriptionif 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());
 


TagsNo tags attached.
ProjectTBD
Topic Name
Typecrash
Attached Files

 Relationships

  Notes
(0038384)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-04-18 03:33 Felipe Bordeu New Issue
2016-08-12 09:59 Kitware Robot Note Added: 0038384
2016-08-12 09:59 Kitware Robot Status backlog => closed
2016-08-12 09:59 Kitware Robot Resolution open => moved
2016-08-12 09:59 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team