VR examples crashing with VTK >= 9.1.0
As first reported in the discourse forum, the VR examples are currently crashing on renderWindow->Render();
; the call results in calling a function on a nullptr
returned by vr::VRInput()
in line 784 of vtkOpenVRRenderWindowInteractor.cxx (in release version 9.1.0). I tested with vtkOpenVRCone and vtkOpenVRFrustum, but probably also all other vtkOpenVR... examples are affected.
A workaround is adding an explicit call renderWindow->Initialize();
before the call to renderWindow->Render();
.
Probably not the best permanent solution though, since this means forcing users to a change in API usage between VTK 9.0.x and 9.1.x.
Edited by Bernhard Fröhler