Render window stuck after setting interpolation type to linear

Hi all,
I’m using vtkCameraInterpolator for some program and I find an example here(link below).
https://kitware.github.io/vtk-examples/site/Cxx/Rendering/InterpolateCamera/
After setting the interpolation type to linear, the render window stuck. What should I do if I need to set the interpolation type to linear but not spline?