View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014021 | ParaView | (No Category) | public | 2013-04-18 03:33 | 2016-08-12 09:59 | ||||
Reporter | Felipe Bordeu | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | 3.98.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014021: vtkXdmfWriter Crash when field data of type vtkStringArray is present in the dataset | ||||||||
Description | 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()); | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Topic Name | |||||||||
Type | crash | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |