[vtk-developers] [VTK 0012703]: vtkOpenGLGPUVolumeRayCastMapper: Exception in LoadExtensions causes InRender flag to stay set and never render again

Mantis Bug Tracker mantis at public.kitware.com
Thu Nov 3 10:26:05 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12703 
====================================================================== 
Reported By:                CJ Bourn
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12703
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       crash 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-11-03 10:26 EDT
Last Modified:              2011-11-03 10:26 EDT
====================================================================== 
Summary:                    vtkOpenGLGPUVolumeRayCastMapper: Exception in
LoadExtensions causes InRender flag to stay set and never render again
Description: 
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)
     ^^^^^^^^^^^^^^^^^^ 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-03 10:26 CJ Bourn       New Issue                                    
2011-11-03 10:26 CJ Bourn       File Added: vtkOpenGLGPUVolumeRayCastMapper.cxx 
                  
======================================================================




More information about the vtk-developers mailing list