Throw runtime_error when no display available
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