Running vtk::TkRenderWindowInteractor in python3 kills python kernel every time on M1 silicon mac
Since building vtk from source on my Mac, I haven't been able to successfully get vtk to work. Every time I try running my test script (pytestvtk.py attached) in full, python immediately crashes. The crash gives a command line output of: lloc: invalid block: 0x104af1800: 0 0 Abort trap: 6
,
as well as the problem report that is attached as python_problem_report.txt.
When I comment out lines 24 to 27, related to vtkTkRenderWindowInteractor, in pytestvtk.py the crash does not occur and a GUI window with the heading Visualisation Toolkit - Cocoa #1 appears.
I'm new to VTK and don't really know why vtkTkRenderWindowInteractor is causing python to crash. I had quite a few issues with building VTK on my mac due to syntax clashes between the X11/.h files native to my mac and the Utilities/KWSys/vtksys/ SystemTools.hxx and Status.hxx files. Therefore, it is quite possible that the issue with vtkTkRenderWindowInteractor is related to an unintended error induced when I've changed the source code to be able to complete the VTK build on my mac.
Does anyone know what I could do to fix this issue with vtkTkRenderWindowInteractor or what the cause of this issue may be?
Thanks. python_problem_report.txt