<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <blockquote type="cite">
      <pre wrap="">Should DISPLAY be set?</pre>
    </blockquote>
    yes if you have GPU hardware running on your cluster. In that case
    the xserver needs to be running. If it's not then you need to start
    it before launching PV.<br>
    <br>
    if you don't have GPU's then you need to recompile ParaView for use
    with OSMesa. <a
      href="http://www.paraview.org/Wiki/ParaView_And_Mesa_3D">Here</a>
    are details.<br>
    <br>
    <div class="moz-cite-prefix">On 07/17/2014 03:55 AM, Anton
      Shterenlikht wrote:<br>
    </div>
    <blockquote
      cite="mid:201407171055.s6HAt9J6038108@mech-cluster241.men.bris.ac.uk"
      type="cite">
      <pre wrap="">The error is from a pvbatch 4.0.1.
Please help.

job submission script:

newblue2> cat z.pv
#!/bin/bash --login
#
#$Id: sample.bc3.pvbatch 1022 2013-12-25 15:32:33Z mexas $
#
#PBS -l walltime=00:10:00,nodes=1:ppn=16
#PBS -j oe
#PBS -m abe

cd $HOME/nobkp/cgpack/branches/coarray/tests
export OUTFILE=z.out
echo > $OUTFILE

module load apps/paraview-4.0.1
echo "module list" >> $OUTFILE
module list >> $OUTFILE 2>&1

echo "LD_LIBRARY_PATH: " $LD_LIBRARY_PATH >> $OUTFILE
echo "which mpirun: " `which mpirun` >> $OUTFILE
export I_MPI_DAPL_PROVIDER=ofa-v2-ib0 >> $OUTFILE

mpirun -n 16 pvbatch --use-offscreen-rendering z.xdmf.py
#mpirun -n 16 pvbatch z.xdmf.py
newblue2> 


The error:

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0x25abb70): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5ed90): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5edb0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0x25abb70): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5edb0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5ed90): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 322
vtkXOpenGLRenderWindow (0xe5eef0): bad X server connection. DISPLAY=APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)


newblue2> echo $DISPLAY
DISPLAY: Undefined variable.
newblue2> 

Should DISPLAY be set?

Below is z.xdmf.py, if needed.

Thanks

Anton

************************

#$Id: sample.xdmf.py 1129 2014-07-16 12:24:06Z mexas $

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

z_xdmf = XDMFReader( FileName='z.xdmf' )

AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 10.0
AnimationScene1.PlayMode = 'Snap To TimeSteps'

z_xdmf.Sets = []
z_xdmf.Grids = ['T0', 'T30', 'T60', 'T90', 'T120', 'T150', 'T180', 'T210', 'T240', 'T270', 'T300']
z_xdmf.PointArrays = ['crack']

RenderView1 = GetRenderView()
RenderView1.CenterOfRotation = [99.5, 99.5, 199.5]

DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation1.Slice = 199
DataRepresentation1.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation1.ScalarOpacityUnitDistance = 1.9457909325696094
DataRepresentation1.Representation = 'Outline'
DataRepresentation1.ScaleFactor = 39.900000000000006

RenderView1.CameraPosition = [99.5, 99.5, 1142.7561204025358]
RenderView1.CameraFocalPoint = [99.5, 99.5, 199.5]
RenderView1.CameraClippingRange = [536.8185591985105, 1457.1524622085738]
RenderView1.CameraParallelScale = 244.13264836969265

Threshold1 = Threshold()

Threshold1.Scalars = ['POINTS', 'crack']
Threshold1.ThresholdRange = [-3.0, 2147483647.0]

Threshold1.AllScalars = 0
Threshold1.ThresholdRange = [-3.0, 0.0]

DataRepresentation2 = Show()
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation2.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation2.ColorArrayName = ('POINT_DATA', 'crack')
DataRepresentation2.ScalarOpacityUnitDistance = 1.7320508075688772
DataRepresentation2.ScaleFactor = 0.2

a1_crack_PVLookupTable = GetLookupTableForArray( "crack", 1, RGBPoints=[-3.0, 0.23, 0.299, 0.754, 1073741822.0, 0.865, 0.865, 0.865, 2147483647.0, 0.706, 0.016, 0.15], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )

a1_crack_PiecewiseFunction = CreatePiecewiseFunction( Points=[-3.0, 0.0, 0.5, 0.0, 2147483647.0, 1.0, 0.5, 0.0] )

DataRepresentation2.ScalarOpacityFunction = a1_crack_PiecewiseFunction
DataRepresentation2.LookupTable = a1_crack_PVLookupTable

a1_crack_PVLookupTable.ScalarOpacityFunction = a1_crack_PiecewiseFunction

RenderView1.CameraViewUp = [-0.23168815510934399, 0.295870302962722, -0.9267045713747051]
RenderView1.CameraPosition = [168.38086733394152, 1000.5240094507878, 469.95012328596755]
RenderView1.CameraClippingRange = [616.3953868850049, 1356.9816313770839]
RenderView1.CameraFocalPoint = [99.49999999999996, 99.50000000000001, 199.49999999999994]

WriteAnimation('z.ogv', Magnification=1, Quality=2, FrameRate=1.000000)


Render()

_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>