MantisBT - VTK
View Issue Details
0013361VTK(No Category)public2012-08-15 08:362013-12-16 13:33
Boris 
Dave DeMarle 
normalminorhave not tried
closedno change required 
5.10.0 
 
TBD
crash
0013361: Possible bug in vtkXMLWriterC.cxx
Hello,

Line #650 in src/IO/vtkXMLWriterC.cxx
array->SetArray(cells, ncells*cellsSize, 1);
looks suspicious as this function description states cellsSize to be the size of cells

In VTK 5.0.1 it looks more sensible:
Line #622 the same file:
array->SetArray(cells, cellsSize, 1);
and works pretty well

thanks, boris
No tags attached.
Issue History
2012-08-15 08:36BorisNew Issue
2013-06-24 21:46Dave DeMarleNote Added: 0031033
2013-07-22 21:10Dave DeMarleProduct Version => 5.10.0
2013-07-22 21:10Dave DeMarleSummaryPossible bug in VTK 5.10.0 => Possible bug in vtkXMLWriterC.cxx
2013-12-16 13:33Dave DeMarleStatusbacklog => closed
2013-12-16 13:33Dave DeMarleAssigned To => Dave DeMarle
2013-12-16 13:33Dave DeMarleResolutionopen => no change required

Notes
(0031033)
Dave DeMarle   
2013-06-24 21:46   
Can you demonstrate the crash?
The change was made in:
commit bb6a387a173749754b88cae48f6c26ba3e5eab2f
    BUG: Fix XML C API when writing more than just one cell
And that looks reasonable to me.
With "ncells" cells each having "cellsSize" points, you need to pass in an array that is ncells*cellSize long to describe the pointids.