vtkNewickTreeReader crashes on trees with named root nodes
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I have attached a minimal python script to demonstrate the crash. About half the time, I get the following:
Assertion failed: (id >= 0 && id < this->Size), function SetValue, file /tmp/vtk20150331-51843-1h3jyti/VTK-6.2.0/Common/Core/vtkDataArrayTemplate.h, line 199. Abort trap: 6
The other half of the time it just segfaults. The tree "(A,B,C)D;" always fails (despite being a valid Newick tree: https://en.wikipedia.org/wiki/Newick_format). The tree "(A,B,C);" always succeeds.