MantisBT - ParaView | |||||
| View Issue Details | |||||
| 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 | ||||
| Project | TBD | ||||
| Topic Name | |||||
| Type | crash | ||||
| 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()); | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||