Hello,
I am trying to implement a caption widget to show the max / min locations. Unfortunately after rendering and closing the renderWindow VTK crashes. I am using Python 3.7 and VTK 8.2.0.
When I delete the code for the widget, everything works fine. All other widgets for scalar bar, coordinate system etc. are working with no problem.
captionRepresentation = vtk.vtkCaptionRepresentation()
captionRepresentation.GetCaptionActor2D().SetCaption(“Test”)
captionRepresentation.SetPosition(0,.85)
captionRepresentation.SetPosition2(.45,.05)
captionRepresentation.SetAnchorPosition(point)
captionWidget = vtk.vtkCaptionWidget()
captionWidget.SetInteractor(renderWindowInteractor)
captionWidget.SetRepresentation(captionRepresentation)
captionWidget.SetEnabled(1)
If I debug the code, Isee the following error (not always!) :
Could not convert to integer: 3221225477. Path ‘exitCode’.
The value for was either too small or too large for an Int32.
Any advice?
Alex