MantisBT - VTK
View Issue Details
0012703VTK(No Category)public2011-11-03 10:262013-07-22 20:48
CJ Bourn 
Dave DeMarle 
normalminorhave not tried
closedfixed 
5.8.0 
 
TBD
crash
0012703: vtkOpenGLGPUVolumeRayCastMapper: Exception in LoadExtensions causes InRender flag to stay set and never render again
In vtkOpenGLGPUVolumeRayCastMapper, if the GL context could not actually be set up, then all the calls to glGetString() will return NULL. These results are then blindly passed to strstr() which results in an exception. This method gets called during Render() which causes the InRender flag of vtkRenderWindow to never be cleared and thus rendering will never occur again. The fix is simple, eg Line 2160:

  const char *gl_version=reinterpret_cast<const char *>(glGetString(GL_VERSION));
  if(gl_version != 0 && strstr(gl_version,"Mesa")!=0)
     ^^^^^^^^^^^^^^^^^^
No tags attached.
cxx vtkOpenGLGPUVolumeRayCastMapper.cxx (244,293) 2011-11-03 10:26
https://www.vtk.org/Bug/file/9063/vtkOpenGLGPUVolumeRayCastMapper.cxx
Issue History
2011-11-03 10:26CJ BournNew Issue
2011-11-03 10:26CJ BournFile Added: vtkOpenGLGPUVolumeRayCastMapper.cxx
2013-07-22 20:48Dave DeMarleAssigned To => Dave DeMarle
2013-07-22 20:48Dave DeMarleStatusbacklog => todo
2013-07-22 20:48Dave DeMarleStatustodo => active development
2013-07-22 20:48Dave DeMarleNote Added: 0031311
2013-07-22 20:48Dave DeMarleStatusactive development => closed
2013-07-22 20:48Dave DeMarleResolutionopen => fixed

Notes
(0031311)
Dave DeMarle   
2013-07-22 20:48   
http://review.source.kitware.com/#/c/11727/ [^]