OpenGL Demo1 and Demo2 Giving Errors on Mac

I can build Demo0, Clone1 and Clone2. But when building Demo1 and Demo2 I get these errors:


(   2.505s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: '' :  version '150' is not supported

(   2.505s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b000): Could not set shader program

(   2.505s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b000): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.506s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b5004ed0): 

(   2.509s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b5004ed0): ERROR: 0:1: '' :  version '150' is not supported

(   2.509s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): Could not set shader program

(   2.509s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.510s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b448c4d0): 

(   2.510s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: '' :  version '150' is not supported

(   2.510s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): Could not set shader program
(   2.510s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.512s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b448c4d0): 
(   2.513s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: '' :  version '150' is not supported

(   2.513s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b600): Could not set shader program
(   2.513s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b600): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.514s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b5004ed0): 


(   2.515s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b5004ed0): ERROR: 0:1: '' :  version '150' is not supported

(   2.516s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): Could not set shader program
(   2.516s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.517s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b448c4d0): 

(   2.518s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: '' :  version '150' is not supported

(   2.519s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): Could not set shader program
(   2.519s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.520s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b448c4d0): 


(   2.521s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: '' :  version '150' is not supported

(   2.521s) [paraview        ]vtkOpenGLPolyDataMapper:2581   ERR| vtkOpenGLPolyDataMapper (0x7fb8b1072200): Could not set shader program
(   2.521s) [paraview        ]vtkOpenGLPolyDataMapper:2593   ERR| vtkOpenGLPolyDataMapper (0x7fb8b1072200): failed after UpdateShader 1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.554s) [paraview        ]     vtkOpenGLState.cxx:930   WARN| Error glActiveTexture1 OpenGL errors detected

(   2.581s) [paraview        ]     vtkOpenGLState.cxx:930   WARN| Error glActiveTexture1 OpenGL errors detected
  0 : (1282) Invalid operation

(   2.590s) [paraview        ]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x7fb8b42b6d60): (   2.590s) [paraview        ]   vtkShaderProgram.cxx:439    ERR| vtkShaderProgram (0x7fb8b42b6d60): ERROR: 0:1: '' :  version '150' is not supported

(   2.590s) [paraview        ]vtkOpenGLVertexArrayObj:266    ERR| vtkOpenGLVertexArrayObject (0x7fb8b42b6fc0): attempt to add attribute without a program for attribute ndCoordIn
(   2.590s) [paraview        ]vtkOpenGLQuadHelper.cxx:71    WARN| Error binding ndCoords to VAO.
vtkMemberFunctionCommand<vtkSMViewProxyInteractorHelper>::Execute(vtkObject*, unsigned long, void*) + 288
(   2.590s) [paraview        ]                       :0     FATL| Signal: SIGSEGV
[1]    38231 segmentation fault  ./DemoApp1

which deom? do you have link?

Demo1 and Demo2

It looks like getting a suitable OpenGL context failed.

@mwestphal: Ideas?

I was suggested this on Paraview issues web page.

“I think Demo1 and Demo2 are missing a MACOSX_BUNDLE link flag.“

https://gitlab.kitware.com/paraview/paraview/-/issues/21851