[vtk-developers] VTK 5.8 Error in vtkXMLDataElement

Papademetris, Xenophon xenophon.papademetris at yale.edu
Thu Oct 20 12:13:13 EDT 2011


We have an application here where we encode images as XML (in-house formats) that result in large CData Elements. Saving these worked just fine in vtk-5.6 but failed in 5.8. A little search and comparison with the working vtk 5.6 code revealed that the culprit is probably "PrintWithEscapedData". For internal use I simply reverted back the PrintCharacterData function to the vtk-5.6 version (the beauty of open source) and so it all works for us but this may be worth looking into down the road. The unpatched vtk-5.8  worked with smaller datasets but as things got larger it hangs.

In short the fixes are of the form:

VTK-5.8:     this->PrintWithEscapedData(os, this->CharacterData);
VTK-5.6:     os << indent << characterData;

Thanks

Xenios




More information about the vtk-developers mailing list