[vtkusers] Crash in vtkShaderProgram/vtkOpenGLPolyDataMapper

dei david.ei at novodynamics.com
Fri May 6 17:03:00 EDT 2016


Just to reiterate, I want to use VTK-7.0.0 to display very large Wavefront
.OBJ meshes within a complex java CT medical application. My simple java
viewer test apps work fine (since I fixed a "mouse-move before
initialization complete" crash - see above). However, more often than not,
the CT app crashes during VTK initialization. When it initializes
successfully, it works flawlessly.
I have more info about the problem:

1.  The problem occurs on different 3 PCs with 2 different graphics cards.
All support OpenGL 4.x

2.  When the crash occurs, the vtkError.txt log shows:
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
line 724
      vtkWin32OpenGLRenderWindow (0000000057C208F0): failed to get valid
pixel format.

      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line
533
      vtkWin32OpenGLRenderWindow (0000000057C208F0): GLEW could not be
initialized.

      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 441
      vtkOpenGLRenderer (0000000057C21150): failed after Clear 16 OpenGL
errors detected
        0 : (1282) Invalid operation
        1 : (1282) Invalid operation
        2 : (1282) Invalid operation
        ...
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144
      vtkOpenGLCamera (0000000051E5DDD0): failed after Render 16 OpenGL
errors detected
        0 : (1282) Invalid operation
        ...
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 116
      vtkOpenGLRenderer (0000000057C21150): failed after UpdateLights 16
OpenGL errors detected
        0 : (1282) Invalid operation
        ...
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line 91
      vtkOpenGLProperty (00000000004E2D70): failed after Render 16 OpenGL
errors detected
        0 : (1282) Invalid operation
        ...
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line
2918
      vtkOpenGLPolyDataMapper (0000000051E9C170): failed after
BuildBufferObjects 16 OpenGL errors detected
        0 : (1282) Invalid operation
        ...
      ERROR: In ..\..\..\Rendering\OpenGL2\vtkShaderProgram.cxx, line 399
      vtkShaderProgram (0000000057C22B60): Shader object was not
initialized, cannot attach it.

3.  All accesses to the VTK occur on the AWT-EventQueue-1 thread. 

4.  Changing the order and timing of VTK initialization relative to the
display of the VTK JPanel does not appear to fix the problem.

5.  VTK-6.3.0 does *not* exhibit the crash, but it is slow to render when
moving or zooming the mesh. My simple test apps *have no problem rendering
the same mesh* when using VTK-6.3.0. This should tell me something, but I'm
not sure what.




--
View this message in context: http://vtk.1045678.n5.nabble.com/Crash-in-vtkShaderProgram-vtkOpenGLPolyDataMapper-tp5737734p5738017.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list