| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0014340 | VTK | (No Category) | public | 2013-10-21 15:35 | 2015-09-01 09:27 | ||||
| Reporter | sxmc | ||||||||
| Assigned To | T.J. Corona | ||||||||
| Priority | high | Severity | minor | Reproducibility | have not tried | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | 6.0.0 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0014340: vtkGraph FindVertex failure | ||||||||
| Description | I highly suspect that the issue lies somewhere more specific (might be related to http://www.vtk.org/Bug/view.php?id=13143 [^]), and therefore suspect it might cause for more issues in different components eventually. In any case, see the code below. #include <vtkSmartPointer.h> #include <vtkDataSetAttributes.h> #include <vtkIntArray.h> #include <vtkMutableUndirectedGraph.h> int main(int, char *[]) { vtkSmartPointer<vtkMutableUndirectedGraph> g = vtkSmartPointer<vtkMutableUndirectedGraph>::New(); vtkIntArray *pedigreeIds = vtkIntArray::New(); g->GetVertexData()->SetPedigreeIds(pedigreeIds); g->AddVertex(vtkVariant(0)); g->AddVertex(vtkVariant(1)); g->AddVertex(vtkVariant(16)); g->AddVertex(vtkVariant(17)); g->AddVertex(vtkVariant(24)); std::cout << g->FindVertex(vtkVariant(24)) << std::endl; return EXIT_SUCCESS; } On my PC (Visual Studio 2010 Pro; build debug x86) it will output -1. Removing any value (except for the last one, 24) will make it output values as expected. | ||||||||
| Tags | No tags attached. | ||||||||
| Project | TBD | ||||||||
| Type | crash | ||||||||
| Attached Files | |||||||||
| Relationships | ||||||
|
||||||
| Relationships |
| Notes | |
|
(0035111) T.J. Corona (developer) 2015-09-01 09:27 |
This issue was fixed in the following commit: https://gitlab.kitware.com/vtk/vtk/commit/299b418356def8dd9ef2c5eb16c5cf62d92e315b [^] Thanks! |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2013-10-21 15:35 | sxmc | New Issue | |
| 2014-10-02 14:16 | Utkarsh Ayachit | Relationship added | related to 0013143 |
| 2015-08-18 10:37 | T.J. Corona | Assigned To | => T.J. Corona |
| 2015-09-01 09:27 | T.J. Corona | Note Added: 0035111 | |
| 2015-09-01 09:27 | T.J. Corona | Status | backlog => closed |
| 2015-09-01 09:27 | T.J. Corona | Resolution | open => fixed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |