You probably have to set DISPLAY to :0 in your .XXXrc (.bashrc, .cshrc, .kshrc, .zshenv) so that it is set during a non-interactive remote session. In the next version of ParaView (2.6), it will be possible to set the display in a configuration file.
<br><br><br><div><span class="gmail_quote">On 12/19/05, <b class="gmail_sendername">Alex Decastro</b> <<a href="mailto:decastro@sdsc.edu">decastro@sdsc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">I installed Paraview 2.2.1 with OSMesa 5.0.2 and MPICH
<a href="http://1.2.5.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">1.2.5.2</a> on RedHat Linux.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">I am trying to run pvserver in parallel using MPI.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Here is the shell script I use to run pvserver:</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">#!/bin/sh</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">export DISPLAY=0.0</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">$(MPI_HOME)/bin/mpirun -v -machinefile machines.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">txt -np 2 $(PARAVIEW_HOME)/bin/pvserver
--use-offscreen-rendering</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">machines.txt - is a text file listing two machines.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Here is the error log:</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Listen on port: 11111</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Waiting for client...</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">connected to port 11111</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Client connected.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Process id: 1 >> ERROR: In
/projects/vis/users/decastro/paraview-mpi2/paraview-2.2.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 326</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">vtkXOpenGLRenderWindow (0xb7825c0): bad X server connection.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Process id: 1 >> ERROR: In
/projects/vis/users/decastro/paraview-mpi2/paraview-2.2.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 169</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">vtkXOpenGLRenderWindow (0xb7825c0): bad X server connection.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">On both machines, I logged into the console and set the
environment variable: setenv DISPLAY :0.0</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Everything works fine if I use –np 1 instead of –np
2.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">It is possible that security restrictions on our Linux
system prevent the two pvserver processes from communicating using X server. I
cannot run "xhost +" on our Linux system, due to our security
restrictions. Could that be related to the problem?</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">For example, if I use rsh to start xclock, I get the
following error:</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">% rsh machine xclock</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Error: Can't open display.</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Thanks for any help,</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;">Alex</span></font></p>
<p><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;"> </span></font></p>
</div>
<br>_______________________________________________<br>ParaView mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">
http://www.paraview.org/mailman/listinfo/paraview</a><br><br><br></blockquote></div><br>