serialize a vtk object

It’s not working.
What can be the reason?