Skip to content

Throw runtime_error when no display available

Benedikt (2xB) requested to merge 2xB/vtk:2xB/runtime_error into master

Before, abort() was called when no display was available. This commit replaces that by the catch-able runtime_error. Also, in vtkXRenderWindowInteractor, despite the code for getting the display being equal to the one at vtkXOpenGLRenderWindow , it was not tested if the display exists, causing segmentation faults when no display was available instead. This commit fixes that.

Note that in lack of a testing environment, I could not try this out locally.

Fixes #19075

Merge request reports