vtkRenderWindow loop instantiation results in many open windows
Issue: Instantiating vtkRenderWindow in a loop without a vtkWindowInteractor results in a memory blowout and hard crash. The renderWindow is being used to render a series of images using a vtkPNGWriter. When run in lldb, a warning pops up once loop is on 101st iteration stating that over 100 windows have been opened. Tried creating the vtkRenderWindow inside the looped function as well, wrapped in a vtkNew<> instance, to no avail.
System: MacOS Ventura(13.6.3), Intel silicon, VTK 9.2.9.2.6, C++17 compiled with clang++ using cmake.
Discussed on thread here. thread contains MRE.