<HTML>
<HEAD>
<TITLE>Re: [Paraview] Problems with Paraview 3.6.1 on cluster (client - server mode)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>(Replying back to the ParaView mailing list.)<BR>
<BR>
It sounds like you are still linking to the system OpenGL libraries somehow. Those symbols should be defined in the libGL.so that is built with Mesa (whereas the /usr/lib/libGL.so on your system probably does not have them). Did you do a clean build of ParaView (that is, delete the binary directory and start over from scratch)? If you just tried to change some CMake variables in an existing build, you may have some stale libraries built.<BR>
<BR>
You should also check to make sure that the executables being built are linking to your compiled Mesa libraries instead of the system libraries. You can check this with the ldd command. You may have to set your LD_LIBRARY_PATH environment variable to point to /home/myuser/TempOSMesa/Mesa-7.6.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 10/23/09 3:27 AM, "myaccountmail9 myaccountmail9" <<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Ken,<BR>
thank you.<BR>
We compiled Mesa with:<BR>
<BR>
./configure --enable-gl-osmesa --disable-gallium<BR>
make<BR>
make install<BR>
<BR>
and we configured Paraview with:<BR>
<BR>
OPENGL_INCLUDE_DIR=/home/myuser/TempOSMesa/Mesa-.6/include<BR>
OPENGL_gl_LIBRARY=/home/myuser/TempOSMesa/Mesa-7.6/lib/libGL.so<BR>
OPENGL_glu_LIBRARY=/home/myuser/TempOSMesa/Mesa-7.6/lib/libGLU.so<BR>
OPENGL_xmesa_INCLUDE_DIR=/home/myuser/TempOSMesa/Mesa-7.6/include<BR>
OSMESA_INCLUDE_DIR=/home/myuser/TempOSMesa/Mesa-7.6/include <BR>
OSMESA_LIBRARY=/home/myuser/TempOSMesa/Mesa-7.6/lib/libOSMesa.so <BR>
<BR>
but we have many error compiling Paraview; for example:<BR>
<BR>
/home/myuser/TempOSMesa/Mesa-7.6/lib/libOSMesa.so: undefined reference to `_mesa_free_context_data'<BR>
/home/myuser/TempOSMesa/Mesa-7.6/lib/libOSMesa.so: undefined reference to `_mesa_get_current_context'<BR>
/home/myuser/TempOSMesa/Mesa-7.6/lib/libOSMesa.so: undefined reference to `_mesa_enable_2_1_extensions'<BR>
<BR>
Do you think there is something went wrong installing Mesa?<BR>
Can you help us?<BR>
<BR>
Thank you again.<BR>
Luis<BR>
<BR>
<BR>
<BR>
<BR>
2009/10/21 Moreland, Kenneth <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>><BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Not really, but I would consider trying downloading the Mesa source and compiling it myself. Since the error is happening somewhere in the OpenGL libraries (and is not really being replicated on other user’s platforms), the only cause I can come up with is a problem with the libraries (and mismatched libraries is the most common problem). Compiling Mesa is actually pretty easy, so it is worth taking the effort to check.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
On 10/21/09 12:54 AM, "myaccountmail9 myaccountmail9" <<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> <<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>> > wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Ken,<BR>
thank you for your reply.<BR>
No, we didn't compile OSMesa ourselves, but we installed OSMesa library on each node downloading the .deb packages with:<BR>
<BR>
apt-get install libosmesa6<BR>
apt-get install libosmesa6-dev<BR>
<BR>
Have you got any other idea?<BR>
Thank you again.<BR>
Luis<BR>
<BR>
<BR>
2009/10/20 Moreland, Kenneth <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> ><BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Could it be a problem with mismatched libraries? I notice in the error below that it occurs in /usr/lib/libGL.so.1. This is a system library. Did you compile OSMesa yourself? If so, then you should not be using the system GL libraries; you should be using the libraries that you compiled when you also generated the OSMesa library.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
On 10/20/09 1:56 AM, "myaccountmail9 myaccountmail9" <<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> <<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>> <<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>> > wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
we have a Linux (Debian) cluster without gpu and we have a big problem using Paraview 3.6.1in client - server mode.<BR>
The server has been compiled with OSMesa library and following the instructions reported here (in particular the section "OSMesa support"):<BR>
<BR>
<a href="http://www.itk.org/Wiki/Setting_up_a_ParaView_Server">http://www.itk.org/Wiki/Setting_up_a_ParaView_Server</a><BR>
<BR>
If we try to connect the client started with the command:<BR>
<BR>
paraview<BR>
<BR>
and the server, started with the command:<BR>
<BR>
pvserver --use-offscreen-rendering<BR>
<BR>
we must disable the checkbox "Remote rendering threshold" (but this causes bad performances) in the client settings (Edit -> Settings -> Render view -> Server), othervise Paraview crashes after loading a big input or performing some operation such us changing "outline" to "wireframe"...<BR>
<BR>
The error always is (similar to):<BR>
<BR>
ParaView3/Servers/Common/vtkServerConnection.cxx, line 67<BR>
vtkServerConnection (0x3182220): Server Connection Closed!<BR>
<BR>
Executing with: 0<BR>
*** Process received signal ***<BR>
Signal: Segmentation fault (11)<BR>
Signal code: (128)<BR>
Failing at address: (nil)<BR>
[ 0] /lib/libpthread.so.0 [0x7f4fc6536a80]<BR>
[ 1] /usr/lib/libGL.so.1(glBlendFuncSeparateEXT+0x16) [0x7f4fc7bc12e6]<BR>
*** End of error message ***<BR>
Segmentation fault<BR>
<BR>
<BR>
This error also occurs if we start client and server logging directly (without any ssh connection) on the master node; on master node X is running and we can execute the test:<BR>
<BR>
mpirun -np 4 /usr/X11R6/bin/glxgears<BR>
<BR>
So, it doen't seem a problem regarding X connection and permission...<BR>
<BR>
Moreover, executing the test:<BR>
<BR>
/ParaView/ParaView-bin$ ctest -I ,,10<BR>
<BR>
we obtain some segmentation fault, but the log file can't give any useful information.<BR>
<BR>
111/475 Testing TestGradientBackground ***Exception: SegFault<BR>
121/475 Testing TestOSConeCxx ***Exception: SegFault<BR>
131/475 Testing TestTranslucentLUTDepthPeeling***Exception: SegFault<BR>
141/475 Testing BoxWidget ***Exception: SegFault<BR>
151/475 Testing TestParallelopipedWidget ***Exception: SegFault<BR>
<BR>
..<BR>
<BR>
On our local machine with gpu 100% test passed, and we haven't any problem to connect client and server on that machine.<BR>
<BR>
<BR>
MPI version is: mpirun (Open MPI) 1.2.7rc2<BR>
OSMesa version is: 7.0.3-7<BR>
<BR>
<BR>
We searched on google, on Paraview wiki... without any succes: can you help us please?<BR>
<BR>
If you need more information let us now<BR>
<BR>
Thank you very much<BR>
<BR>
Luis<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> <<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> <<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>