[Paraview] pvbatch hangs when enabling OSPRay

David E DeMarle dave.demarle at kitware.com
Wed Sep 21 14:42:45 EDT 2016


Ben,

I am not able to reproduce this locally. Can you file an issue to help me
keep track of it on ParaView's new gitlab issue tracker?

https://gitlab.kitware.com/paraview/paraview/issues


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Aug 4, 2016 at 3:24 PM, Benjamín Hernández <benjha at gmail.com> wrote:

> Hello,
>
> I've compiled Paraview 5.1 with multithreaded mpi and ospray (with OpenMP)
> support using the next  modules:
>
>   1) gcc/4.8.2            5) xalt/0.5.3           9) szip/2.1
>  13) boost/1.61.0
>   2) openmpi/1.8.4_mtm    6) DefApps             10) hdf5/1.8.11
> 14) libtool/2.4.2
>   3) PE-gnu/4.8.2-1.8.4   7) qt4/4.8.5           11) mxml/2.9
>  15) git/1.8.0.2
>   4) lustredu/1.4         8) python/2.7.9        12) adios/1.9.0
> 16) cmake/3.5.2
>
>
> and wrote a python script that loads a  vtu file  and renders it as glyph
> particles.
>
> When running pvbatch in one node it works fine, I can visualize and save
> images. However, when running pvbatch with mpi the script just hangs in the
> line  that enables OSPRay:
>
> oSPRayRendered3DView1.EnableOSPRay = 1
>
>
> I am using the next mpi  commands with no success:
>
> mpirun -npernode 16 pvbatch  --mpi --use-offscreen-rendering myscript
> inputfile.vtu outputimage.png
>
> mpirun -np 13 --map-by ppr:1:socket:pe=16 pvbatch  --mpi
> --use-offscreen-rendering myscript inputfile.vtu outputimage.png
>
>
> I did a simpler script that does the following:
>
> #### import the simple module from the paraview
> from paraview.simple import *
> #### disable automatic camera reset on 'Show'
> paraview.simple._DisableFirstRenderCameraReset()
>
> # set active view
> SetActiveView(None)
> CreateLayout('Layout #1')
>
> # Create a new 'Render View'
> print "Creating render view"
> renderView1 = CreateView('RenderView')
> renderView1.ViewSize = [11520, 3240]
> renderView1.CameraPosition = [0.0, 0.0, 6.69]
> renderView1.CameraFocalPoint = [0.0, 0.0, 0.0]
> renderView1.CameraViewUp = [0.0, 1.0, 0.0]
> renderView1.CameraViewAngle = 30.0
> renderView1.CameraParallelScale = 1.73
> renderView1.Background = [0.32, 0.34, 0.43]
> print "Before Enabling OSPRay"
> renderView1.EnableOSPRay = 1
> print "After Enabling OSPRay"
> renderView1.Shadows = 1
> renderView1.AmbientSamples = 4
> renderView1.SamplesPerPixel = 8
> renderView1.MaxFrames = 1
> renderView1.LightScale = 1.0
>
> print "Done!"
>
>
> #### saving camera placements for all active views
>
> # current camera placement for renderView1
> renderView1.CameraPosition = [148.48492741767512, 106.10239872416838,
> -28480.984448300518]
> renderView1.CameraFocalPoint = [137.62326776804608, 95.85538889348155,
> -28593.41405565134]
> renderView1.CameraViewUp = [-0.529722197084864, 0.8477698001026378,
> -0.02609137691878691]
> renderView1.CameraParallelScale = 19159.165918040744
>
>
>
> but it  never reaches the print "After Enabling OSPRay" line
>
>
>
> Any advice will be appreciated,
>
>
>
> Benjamin Hernandez
> OLCF
> Oak Ridge National Laboratory
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160921/d712cf65/attachment.html>


More information about the ParaView mailing list