[Paraview] OSMesa Hunt

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Sep 21 12:56:00 EDT 2006


Sorry for getting in a bit late, I almost missed this thread :).

Yes, Berk, this  certainly sounds like a result of the changes to 
include the HAVS mapper in ParaView, especially since Clip/Threshold 
cause the problem. Clip/Threshold produce UnstructuredGrid. Since 
UnstructuredGrid can be volume rendered, the display does a OpenGL 
extensions check on the server to see if HAVS mapper can be used. The 
OpenGL extensions check creates new render window on the server, queries 
the extensions and then destroys the render window. The destruction of 
the window corrupts all other GL contexts (this was reported to Mesa 
developers and they fixed the bug on the Mesa CVS head).

But, Kevin, since you are saying that the CVS Mesa doesn't make any 
difference, can you try applying the following patch. This will shunt 
off the HAVS mapper checking stuff, which will atleast help us determine 
the cause.

Utkarsh.

BEGIN PATCH ===============================

Index: Servers/ServerManager/vtkSMDataObjectDisplayProxy.cxx
===================================================================
RCS file: 
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/vtkSMDataObjectDisplayProxy.cxx,v
retrieving revision 1.22
diff -u -3 -p -r1.22 vtkSMDataObjectDisplayProxy.cxx
--- Servers/ServerManager/vtkSMDataObjectDisplayProxy.cxx       12 Sep 
2006 18:28:36 -0000      1.22
+++ Servers/ServerManager/vtkSMDataObjectDisplayProxy.cxx       21 Sep 
2006 16:48:49 -0000
@@ -255,8 +255,8 @@ void vtkSMDataObjectDisplayProxy::SetInp
    if ( this->HasVolumePipeline )
      {
      vtkProcessModule* pm = vtkProcessModule::GetProcessModule();
-    vtkPVOpenGLExtensionsInformation* glinfo =
-    pm->GetOpenGLExtensionsInformation(this->GetConnectionID());
+    vtkPVOpenGLExtensionsInformation* glinfo = 0;
+    // pm->GetOpenGLExtensionsInformation(this->GetConnectionID());
      if (glinfo)
        {
        // These are extensions needed for HAVS. It would be nice

END PATCH ========================================



Utkarsh.



Kevin H. Hobbs wrote:
> On Wed, 2006-09-20 at 10:05 -0400, Berk Geveci wrote:
>>  Also, can you try the CVS version of Mesa, Kevin? We have reported a
>> bug to the Mesa group that they fixed. I don't think it relates to
>> this particular problem but it is worth a try. 
> 
> It doesn't look like much changed with the CVS ParaView built against
> the CVS Mesa. The viewport still froze, and the backtrace from
> _mesa_warning looks the same to me.
> 
> Breakpoint 1, _mesa_warning (ctx=0x0, fmtString=0x2aaaafb58d28 "GL User Error: called without context: %s") at main/imports.c:1031
> Current language:  auto; currently c
> (gdb) bt
> #0  _mesa_warning (ctx=0x0, fmtString=0x2aaaafb58d28 "GL User Error: called without context: %s") at main/imports.c:1031
> #1  0x00002aaaaf3d964f in vtkOpenGLRenderer::ClearLights (this=0xa6ece0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkOpenGLRenderer.cxx:71
> #2  0x00002aaaaf3d9791 in vtkOpenGLRenderer::DeviceRender (this=0xa6ece0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkOpenGLRenderer.cxx:163
> #3  0x00002aaaaf351a5b in vtkRenderer::Render (this=0xa6ece0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRenderer.cxx:288
> #4  0x00002aaaaf358540 in vtkRendererCollection::Render (this=0xa6e5d0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRendererCollection.cxx:52
> #5  0x00002aaaaf33f6f8 in vtkRenderWindow::DoStereoRender (this=0xa6e6b0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRenderWindow.cxx:660
> #6  0x00002aaaaf33fd35 in vtkRenderWindow::DoFDRender (this=0xa6e6b0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRenderWindow.cxx:629
> #7  0x00002aaaaf340511 in vtkRenderWindow::DoAARender (this=0xa6e6b0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRenderWindow.cxx:521
> #8  0x00002aaaaf340cfe in vtkRenderWindow::Render (this=0xa6e6b0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkRenderWindow.cxx:346
> #9  0x00002aaaaf3fb2ac in vtkXOpenGLRenderWindow::Render (this=0xa6e6b0) at /home/kevin/kitware/ParaView/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1695
> #10 0x00002aaaac0b718a in vtkSMRenderModuleProxy::PerformRender (this=0xa31940) at /home/kevin/kitware/ParaView/Servers/ServerManager/vtkSMRenderModuleProxy.cxx:523
> #11 0x00002aaaabfee72c in vtkSMAbstractViewModuleProxy::StillRender (this=0xa31940) at /home/kevin/kitware/ParaView/Servers/ServerManager/vtkSMAbstractViewModuleProxy.cxx:114
> #12 0x00002aaaab16aafe in vtkPVRenderView::EventuallyRenderCallBack (this=0xcef150) at /home/kevin/kitware/ParaView/GUI/Client/vtkPVRenderView.cxx:2206
> #13 0x00002aaaab16ab1d in PVRenderView_IdleRender (arg=0xcef150) at /home/kevin/kitware/ParaView/GUI/Client/vtkPVRenderView.cxx:2134
> #14 0x00002aaaac5d80a2 in TimerHandlerEventProc () from /home/kevin/kitware/ParaView_Build_MesaOnly/bin/libvtkCommonTCL.so
> #15 0x00002aaaac5c9791 in Tcl_ServiceEvent () from /home/kevin/kitware/ParaView_Build_MesaOnly/bin/libvtkCommonTCL.so
> #16 0x00002aaaac5c9a9c in Tcl_DoOneEvent () from /home/kevin/kitware/ParaView_Build_MesaOnly/bin/libvtkCommonTCL.so
> #17 0x00002aaaab83149c in vtkKWApplication::DoOneTclEvent (this=0x702a30) at /home/kevin/kitware/ParaView/GUI/Widgets/vtkKWApplication.cxx:984
> #18 0x00002aaaab831baa in vtkKWApplication::Start (this=0x702a30, argc=1, argv=0x5325d0) at /home/kevin/kitware/ParaView/GUI/Widgets/vtkKWApplication.cxx:852
> #19 0x00002aaaaafdedb2 in vtkPVApplication::Start (this=0x702a30, argc=1, argv=0x5325d0) at /home/kevin/kitware/ParaView/GUI/Client/vtkPVApplication.cxx:1431
> #20 0x00002aaaab25b747 in vtkPVProcessModuleGUIHelper::ActualRun (this=0x532010, argc=1, argv=0x5325d0) at /home/kevin/kitware/ParaView/GUI/Client/vtkPVProcessModuleGUIHelper.cxx:178
> #21 0x00002aaaab25c2ba in vtkPVProcessModuleGUIHelper::RunGUIStart (this=0x532010, argc=1, argv=0x5325d0, numServerProcs=1, myId=0) at /home/kevin/kitware/ParaView/GUI/Client/vtkPVProcessModuleGUIHelper.cxx:163
> #22 0x00002aaaadfd448a in vtkProcessModule::StartClient (this=0x5355c0, argc=1, argv=0x5325d0) at /home/kevin/kitware/ParaView/Servers/Common/vtkProcessModule.cxx:358
> #23 0x00002aaaadfd4bab in vtkProcessModule::Start (this=0x5355c0, argc=1, argv=0x5325d0) at /home/kevin/kitware/ParaView/Servers/Common/vtkProcessModule.cxx:305
> #24 0x00002aaaadfe48f2 in vtkProcessModuleGUIHelper::Run (this=0x532010, options=0x531de0) at /home/kevin/kitware/ParaView/Servers/Common/vtkProcessModuleGUIHelper.cxx:38
> #25 0x0000000000402926 in MyMain (argc=1, argv=0x7fff75786938) at /home/kevin/kitware/ParaView/GUI/Client/ParaView.cxx:79
> #26 0x000000000040298b in main (argc=1, argv=0x7fff75786938) at /home/kevin/kitware/ParaView/GUI/Client/ParaView.cxx:113
> (gdb) 



More information about the ParaView mailing list