[Paraview] ParaView and double precision Rendering
Hello I made a paraview reader plugin which loads Point data of type double from an ASCII file (can be choosen as checkbox in reader parameter gui). It is important that point data type is double since our values have a huge offset, e.g. Coordinate in float: 3376382.75-325198.59375 -121298.125 Coordinate in double: 3376382.849028525874 -325198.60899497801438 -121298.12806414699298 (same ASCII input file of type double, above printings come from spreadsheet view so loading is correct) (all my points have such small changes, I definitely can see those small changes in 3d) The problem is: I load the dataset once in float and once in double ( I checked result in spreadsheed view) I cannot see any differences in 3d renderer when I swap visibility of float and double input (but you can see in spreadsheet). Is the double precision rendering not correct/not supported? Any ideas? Best regards, Gerald Lodron Machine Vision Applications DIGITAL - Institute for Information and Communication Technologies JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17, 8010 Graz, AUSTRIA phone: +43-316-876-1751 fax: +43-316-876-1751 web: http://www.joanneum.at/digital e-mail: gerald.lod...@joanneum.at ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
My bad -- can't believe I made such a rookie mistake. Here's the correct script: from vtkPVClientServerCoreCorePython import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() ___ 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
[Paraview] numpy-ParaView for surface
Hello, Is there an example of taking a simple two-index numpy array and creating a surface plot in ParaView through the python shell? An example of this for Mayavi is at http://docs.enthought.com/mayavi/mayavi/auto/example_canyon.html#example-canyon Really, if I just have some idea how to encapsulate the numpy array into some VTK structure and then send the structure to the ParaView pipeline, I can probably figure the rest out. I apologize if this is available someplace I haven't discovered yet (perhaps because of poor wording in my searches). Many Thanks, Eric Carlson ___ 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
Re: [Paraview] Fwd: Rendering speed sluggish using cluster
Utkarsh, Previously, it was not okay when interacting with the 3D view. Now, however, I have recompiled ParaView (both on the cluster and on my workstation), and with settings at: Remote Render Threshold : 0 (I don't think this was the culprit - it was already low, but this makes it certain, I suppose) Still Render Image Reduction Factor : 1 (I can't increase this, or I seem unable to see the features of interest) Image Reduction Factor : 8 (I'm uncertain if this is helpful, but certainly the description would indicate it may be the option of interest) and mpirun -np 12 path/pvserver --use-offscreen-rendering each having a maximum of 16G RAM and an IB connection between nodes, the problem is vastly reduced/gone. I'm sorry I can't be more specific as to what changed to make this so much smoother - there are still delays, but now these are just a few seconds, and that seems reasonable, compared with the multiple minute lockups previously experienced. I suspect I might have had some combination of poorly chosen compilation options, and poorly chosen rendering settings. Best, Christian On 13 April 2015 at 23:58, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Christian, Sorry for the late reply, just saw this email. You say things are slow when moving the scalar bar or resizing. Does that mean things are okay when interacting with the 3D view? Utkarsh On Tue, Mar 24, 2015 at 2:18 AM, Christian Butcher christian.butc...@oist.jp wrote: Dear ParaView Users, I'm rendering a pseudo-2D data set of approx 7 million cells, running 'mpirun ... pvserver'. I can connect remotely. The cluster does not have graphics cards installed, so I'm using the '--use-offscreen-rendering' flag. The client options for 'Remote Render Threshold' and 'LODThreshold' are both set to 0. On the cluster, I'm currently trying with 48 cores each using 16GB RAM, just in case I was previously using too little. I'm pretty sure this is overkill - certainly the problem seems comparable to when I run it on 8 cores each using 4GB RAM etc. I suspect I'm just not using the software well, or have installed either the client or (more likely?) the cluster's pvserver badly. Both are using 4.2.0, client has version 4.2.0-287-g1631961 64-bit, pvserver returns just 4.2.0 as the version. When changing any aspect of the render view, the client becomes unresponsive/sluggish for long periods of time. This includes, for example, moving the coloring scale bar across the screen. I'm sure I'm missing something obvious (like a step to cut down the requirements on the client workstation, for example). What should I be doing differently? The script I used to start ccmake is below - other options were left at default values (iirc): ccmake \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ -DCMAKE_CXX_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpic++ \ -DCMAKE_C_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpicc \ -DCMAKE_Fortran_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpifort \ -DPARAVIEW_USE_MPI:BOOL=ON \ \ -DCMAKE_INSTALL_PREFIX:PATH=/home/c/christian-butcher/Applications \ -DBoost_INCLUDE_DIR:PATH=/home/c/christian-butcher/Applications/include \ -DBoost_LIBRARY_DIRS:FILEPATH=/home/c/christian-butcher/Applications/lib \ \ -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF \ -DBUILD_TESTING:BOOL=OFF \ -DBUILD_EXAMPLES:BOOL=FALSE \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_DOCUMENTATION:BOOL=OFF \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ \ -DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \ -DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \ \ -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ -DVTK_USE_OFFSCREEN:BOOL=ON \ -DVISIT_BUILD_READER_GMV:BOOL=OFF \ \ -DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=OFF \ -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=ON \ -DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE \ \ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ -DVTK_USE_X:BOOL=OFF \ \ -DModule_vtkFiltersParallelGeometry=ON \ -DModule_vtkFiltersSMP=ON \ -DModule_vtkFiltersSelection=ON \ -DModule_vtkIOMPIParallel=ON \ -DModule_vtkImagingMath=ON \ -DModule_vtkImagingStatistics=ON \ -DModule_vtkImagingStencil=ON \ \ -DOPENGL_INCLUDE_DIR:PATH=/home/c/christian-butcher/Applications/include \ -DOPENGL_gl_LIBRARY:FILEPATH=/home/c/christian-butcher/Applications/lib/libOSMesa.so \ -DOPENGL_glu_LIBRARY:FILEPATH=/home/c/christian-butcher/Applications/lib/libGLU.so \
Re: [Paraview] MPI-aware reader plugin only has rank 0
When you said rank/size: 0/4 However, all I ever get is the last line are you sure you don't mean that only printf/std:::cout from rank 0 is visible? but I actual fact the other pvservers are fine. Create a sphere and check if it has N pieces. JB -Original Message- From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Schlottke, Michael Sent: 14 April 2015 07:36 To: Utkarsh Ayachit Cc: ParaView Subject: Re: [Paraview] MPI-aware reader plugin only has rank 0 from vtkPVClientServerCoreCorePython import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() Thanks! This finally gives me hope that not everything is completely broken, as it yields the expected output (for 5 ranks): rank 0 total 5 rank 2 total 5 rank 1 total 5 rank 4 total 5 rank 3 total 5 No change on the reader plugin though. Are there certain commands/libraries I have to include in the CMakeLists.txt file to make the plugin run in parallel? Or additional (VTK) methods I have to call to make sure that all ranks are participating? Michael ___ 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 ___ 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
Re: [Paraview] Error when connecting to pvserver (pv 4.3.1)
Hi Utkarsh, It is the same installed version that I use both for the client and the server. As you correctly pointed out, MPI is enabled. However, I somewhat narrowed down the scope of the problem. Apparently, if I use X forwarding via ssh, everything works correctly. Only if I run the ParaView client from within a VNC session the observed problems occur. Any idea where I might look for a possible solution? Using ParaView via X forwarding is unbearably slow in my current setup… Michael On 12 Apr 2015, at 20:29 , Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Are the client and server created using the similar build flags? One guess would be that you don't have MPI enabled on the server, but you do have it enabled on the client build. Is that correct? Utkarsh On Sat, Apr 11, 2015 at 12:45 PM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi, I just installed PV 4.3.1 from source as I need to compile some custom plugins. Using the GUI client in a standalone fashion is no problem and everything works as expected. However, I’ve had difficulties when trying to connect to a pvserver instance. The server dies with the following error messages: ### Waiting for client... Connection URL: cs://aia257:1 Accepting connection(s): aia257:1 Client connected. Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170 vtkPVClientServerSynchronizedRenderers (0x1dfa530): Could not create the compressor by name . ERROR: In /home/mic/.pool/.src/ParaView-v4.3.1-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx, line 878 vtkSocketCommunicator (0xbe1f50): Tag mismatch: got 10, expecting 1. Exiting… ### While the client spills out a ton of messages like the following and finally dies with “xcb_io.c…” error: ### X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 115 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 1 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 145 (Unknown request) Resource id: 0x1 paraview: xcb_io.c:549: _XRead: Assertion `dpy-xcb-reply_data != ((void *)0)' failed. ### Any ideas what I’m doing wrong? This happens directly on attempting to connect. I’ve added the configure command I used below. Thanks a lot in advance, Michael P.S: Used command to configure ParaView: CC=gcc CXX=g++ cmake $PV_SRC \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ -DPARAVIEW_USE_MPI:BOOL=ON \ -DPYTHON_LIBRARY:FILEPATH=$PYTHON27/lib/libpython2.7.so \ -DPYTHON_INCLUDE_DIR:PATH=$PYTHON27/include/python2.7 -- Michael Schlottke Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlot...@aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de ___ 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 ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
Michael, Let me know if you're still seeing this issue after the pvserver fix and we can debug this further. Utkarsh On Mon, Apr 13, 2015 at 9:22 AM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi there, I’m having trouble getting my custom ParaView reader plugin to work correctly with MPI. ParaView was built with MPI enabled. After starting the server with mpirun -n NN pvserver I connect to it from a GUI client and try to load a datafile with the parallel reader plugin. To debug test MPI first, I added the following lines to the RequestData method or the reader plugin: int rank, size; MPI_Comm_rank(MPI_COMM_WORLD, rank); MPI_Comm_size(MPI_COMM_WORLD, size); std::cout “rank/size: “ rank “/“ size std::endl; The expected output on the pvserver shell would be something like this: rank/size: 1/4 rank/size: 2/4 rank/size: 3/4 rank/size: 0/4 However, all I ever get is the last line, i.e. the output from rank 0. It thus seems like the communicator size is determined correctly, but only one process is really active. What am I doing wrong, or what do I have to do to get MPI to work as expected? Thank you very much in advance Michael P.S.: After starting the server and connecting to it, I get the following warning once per rank: Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170 vtkPVClientServerSynchronizedRenderers (0x1e000f0): Could not create the compressor by name . Maybe this is related to the problem described above? I also get this warning on the client side, although only once or twice. -- Michael Schlottke Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlot...@aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de ___ 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 ___ 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
Re: [Paraview] Error when connecting to pvserver (pv 4.3.1)
Which vnc server are you using? Seems to me your VNC server is missing some X extensions (or something like that). We do use VNC servers here for running tests, so it's known to work. On Mon, Apr 13, 2015 at 5:09 AM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi Utkarsh, It is the same installed version that I use both for the client and the server. As you correctly pointed out, MPI is enabled. However, I somewhat narrowed down the scope of the problem. Apparently, if I use X forwarding via ssh, everything works correctly. Only if I run the ParaView client from within a VNC session the observed problems occur. Any idea where I might look for a possible solution? Using ParaView via X forwarding is unbearably slow in my current setup… Michael On 12 Apr 2015, at 20:29 , Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Are the client and server created using the similar build flags? One guess would be that you don't have MPI enabled on the server, but you do have it enabled on the client build. Is that correct? Utkarsh On Sat, Apr 11, 2015 at 12:45 PM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi, I just installed PV 4.3.1 from source as I need to compile some custom plugins. Using the GUI client in a standalone fashion is no problem and everything works as expected. However, I’ve had difficulties when trying to connect to a pvserver instance. The server dies with the following error messages: ### Waiting for client... Connection URL: cs://aia257:1 Accepting connection(s): aia257:1 Client connected. Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170 vtkPVClientServerSynchronizedRenderers (0x1dfa530): Could not create the compressor by name . ERROR: In /home/mic/.pool/.src/ParaView-v4.3.1-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx, line 878 vtkSocketCommunicator (0xbe1f50): Tag mismatch: got 10, expecting 1. Exiting… ### While the client spills out a ton of messages like the following and finally dies with “xcb_io.c…” error: ### X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 115 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 1 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 145 (Unknown request) Resource id: 0x1 paraview: xcb_io.c:549: _XRead: Assertion `dpy-xcb-reply_data != ((void *)0)' failed. ### Any ideas what I’m doing wrong? This happens directly on attempting to connect. I’ve added the configure command I used below. Thanks a lot in advance, Michael P.S: Used command to configure ParaView: CC=gcc CXX=g++ cmake $PV_SRC \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ -DPARAVIEW_USE_MPI:BOOL=ON \ -DPYTHON_LIBRARY:FILEPATH=$PYTHON27/lib/libpython2.7.so \ -DPYTHON_INCLUDE_DIR:PATH=$PYTHON27/include/python2.7 -- Michael Schlottke Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlot...@aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de ___ 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 ___ 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
Re: [Paraview] Error when connecting to pvserver (pv 4.3.1)
Thanks for the hint, this seems to resolve my issue: I use tightvnc-1.3.9-110.1.x86_64 on the machine where it does not work, but on a different machine (with tightvnc-1.3.10-14.2.1.x86_64 installed) it works. Might not be just the vnc server version but maybe a related package, but it was definitely a fault with our site setup. Thanks for helping me to track this down! Michael On 13 Apr 2015, at 15:55 , Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Which vnc server are you using? Seems to me your VNC server is missing some X extensions (or something like that). We do use VNC servers here for running tests, so it's known to work. On Mon, Apr 13, 2015 at 5:09 AM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi Utkarsh, It is the same installed version that I use both for the client and the server. As you correctly pointed out, MPI is enabled. However, I somewhat narrowed down the scope of the problem. Apparently, if I use X forwarding via ssh, everything works correctly. Only if I run the ParaView client from within a VNC session the observed problems occur. Any idea where I might look for a possible solution? Using ParaView via X forwarding is unbearably slow in my current setup… Michael On 12 Apr 2015, at 20:29 , Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Are the client and server created using the similar build flags? One guess would be that you don't have MPI enabled on the server, but you do have it enabled on the client build. Is that correct? Utkarsh On Sat, Apr 11, 2015 at 12:45 PM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Hi, I just installed PV 4.3.1 from source as I need to compile some custom plugins. Using the GUI client in a standalone fashion is no problem and everything works as expected. However, I’ve had difficulties when trying to connect to a pvserver instance. The server dies with the following error messages: ### Waiting for client... Connection URL: cs://aia257:1 Accepting connection(s): aia257:1 Client connected. Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170 vtkPVClientServerSynchronizedRenderers (0x1dfa530): Could not create the compressor by name . ERROR: In /home/mic/.pool/.src/ParaView-v4.3.1-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx, line 878 vtkSocketCommunicator (0xbe1f50): Tag mismatch: got 10, expecting 1. Exiting… ### While the client spills out a ton of messages like the following and finally dies with “xcb_io.c…” error: ### X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 115 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 1 (Unknown request) Resource id: 0x1 X Error: GLXBadContextTag 152 Extension:145 (Uknown extension) Minor opcode: 145 (Unknown request) Resource id: 0x1 paraview: xcb_io.c:549: _XRead: Assertion `dpy-xcb-reply_data != ((void *)0)' failed. ### Any ideas what I’m doing wrong? This happens directly on attempting to connect. I’ve added the configure command I used below. Thanks a lot in advance, Michael P.S: Used command to configure ParaView: CC=gcc CXX=g++ cmake $PV_SRC \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ -DPARAVIEW_USE_MPI:BOOL=ON \ -DPYTHON_LIBRARY:FILEPATH=$PYTHON27/lib/libpython2.7.so \ -DPYTHON_INCLUDE_DIR:PATH=$PYTHON27/include/python2.7 -- Michael Schlottke Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlot...@aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de ___ 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 ___ 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
[Paraview] MPI-aware reader plugin only has rank 0
Hi there, I’m having trouble getting my custom ParaView reader plugin to work correctly with MPI. ParaView was built with MPI enabled. After starting the server with mpirun -n NN pvserver I connect to it from a GUI client and try to load a datafile with the parallel reader plugin. To debug test MPI first, I added the following lines to the RequestData method or the reader plugin: int rank, size; MPI_Comm_rank(MPI_COMM_WORLD, rank); MPI_Comm_size(MPI_COMM_WORLD, size); std::cout “rank/size: “ rank “/“ size std::endl; The expected output on the pvserver shell would be something like this: rank/size: 1/4 rank/size: 2/4 rank/size: 3/4 rank/size: 0/4 However, all I ever get is the last line, i.e. the output from rank 0. It thus seems like the communicator size is determined correctly, but only one process is really active. What am I doing wrong, or what do I have to do to get MPI to work as expected? Thank you very much in advance Michael P.S.: After starting the server and connecting to it, I get the following warning once per rank: Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170 vtkPVClientServerSynchronizedRenderers (0x1e000f0): Could not create the compressor by name . Maybe this is related to the problem described above? I also get this warning on the client side, although only once or twice. -- Michael Schlottke Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlot...@aia.rwth-aachen.demailto:m.schlot...@aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de ___ 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
Re: [Paraview] default_servers.pvsc question
Burlen/Rick, I am totally open to adding new features/refactoring the pvsc code. It hasn't changed much in a few years, and I am sure we know more than we did when we started with this :). Since you guys are the ones actually using this code in the field, it'd be great if you can identify the feature list of things missing or difficult to do in the current implementation and we can decide which would be best way forward. Should I create a google-doc or something which all can edit to built this list? Utkarsh On Mon, Apr 13, 2015 at 8:19 AM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Burlen/Utkarsh —— my preferred solution is also to not set an environment variable if possible. For my particular issue, I’d much rather be able to do a `which ssh` (or equivalent) to get the answer than than asking the user to set an environment variable. Implementing a python-based default_servers definition opens things up for much more programmatic flexibility. # take a guess at which ssh command to use try: default_shell=os.popen(which ssh).read() default_shell=default_shell.rstrip(\r\n) except: default_shell=/usr/krb5/bin/ Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 -Original Message- From: Burlen Loring burlen.lor...@gmail.com Date: Sunday, April 12, 2015 at 10:34 PM To: Utkarsh Ayachit utkarsh.ayac...@kitware.com, Rick Angelini richard.c.angelini@mail.mil Cc: paraview@paraview.org paraview@paraview.org Subject: Re: [Paraview] default_servers.pvsc question Hi Utkarsh, I think environment variables are kind of a band aid around a larger issue. In addition to leveraging the user's local environment, there's also no way to get information from the server side environment. for example list of account numbers a user can charge jobs to, or a list of active queues. One thing I have been thinking about is rather than just reading pvsc from an xml file, paraview could call a script to get the pvsc xml. This script could query the user's local/remote environment and generate the xml. A long time ago we had talked about a python based solution. What do you think? Burlen On 4/12/2015 11:31 AM, Utkarsh Ayachit wrote: Rick, Alas no, this isn't currently supported. But should be fairly straightforward to add. I've reported a bug: http://www.paraview.org/Bug/view.php?id=15421 Utkarsh On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Question about the default_servers.pvsc file….. I have this in my host profile: Server name=“My System resource=csrc://127.0.0.1 CommandStartup Options Option name=SSHLOC label=Local SSH Command save=true File default=/usr/local/bin/ssh/ /Option So, when the GUI pops up, the user has an opportunity to change the path to ssh. But, rather than hard-coding the default value, or presenting blank field and have the user put in the correct path, is it possible to query the user’s environment and find `which ssh` and substitute in that value?? Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 ___ 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 ___ 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 ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
Not 100% sure what you mean with the pvserver fix. If you refer to the previous issue (regarding vncserver OpenGL), it does not affect this behavior. I can reproduce this using regular X forwarding via ssh. Yes, I was referring to the VNC issue. Well, try this: create a programmable source and try the following as the Script. from paraview.servermanager import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() What do you get? ___ 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
Re: [Paraview] Everything on graph disappears after choose 'volume' representation
Hi Utkarsh: The script you sent yesterday solved the problem for me, now I can 3D volume render the data! Thanks for the help! Yufei On Sun, Apr 12, 2015 at 3:58 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Attached is a XML that you can load as a plugin using the Tools | Plugin Manager. This will add a new Import CSV As Volume source under the Sources menu. On creating this new source, you'll be able to select the CSV file and specify the relevant meta-data as properties. I've setup the defaults to match the file you sent. The Python code assumes that the CSV file has data in the same order as VTK expects i.e. X varying first, then Y and then Z. Hence the image dimensions are flipped. Also, this is designed to work only for a single process mode, it'll need some work if it's to work in parallel too. Utkarsh On Fri, Apr 10, 2015 at 3:35 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: You cannot volume render data coming in from a CSV file. If you want to sned me a sample CSV, I can send you a Programmable Source code than will produce a volume renderable dataset. On Fri, Apr 10, 2015 at 12:21 PM, yufei shen yzs...@psu.edu wrote: Good afternoon: I am just beginning to use Paraview, and I'm using it to plot a 3D current scalar field, with x,y,z being the coordinates of a point in space, while the forth column value represents the intensity of current passing through that point. My input file is .csv. After I have tetrahedralized my points, the figure show up in the plotting window perfectly with surface, point or any other representations except VOLUME. I can adjust color together with alpha values, however, as soon as I switch to 'volume', everything just disappears. I've also tried the same thing on all platforms (Mac, linux, Windows), but the problem is not solved. I wonder what's causing this problem? Should I used a different input file format other than .csv? It seems what I am doing is really simple compared with paraview's capability. I have also checked the archives but could not find any solution to this... I really appreciate your help! Best Regards Yufei ___ 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 ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
Well, try this: create a programmable source and try the following as the Script. from paraview.servermanager import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() What do you get? When I do not connect to a server, I get the expected output (rank=0, total=1). If I do connect to the server, I get the following error (once per rank) from pvserver: Traceback (most recent call last): File string, line 19, in module File string, line 2, in RequestData File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3184, in module __initialize() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3175, in __initialize c = Connection(iter.GetCurrentSessionId(), iter.GetCurrentSession()) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1932, in __init__ _createModules(self.Modules) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2563, in _createModules m.sources = createModule('sources') File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2593, in createModule pxm = ProxyManager() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1624, in __init__ self.SMProxyManager = session.GetSessionProxyManager() AttributeError: GetSessionProxyManager ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
I do have multiple installations/builds. However, I don’t know how/if they could affect the execution of the paraview executable I’m using: both paraview and pvserver reside in the same (correct) directory on the PATH, and there’s nothing ParaView-related in the LD_LIBRARY_PATH. The only other variable I’ve found is PARAVIEWDIR, which was indeed pointing to an older installation; however, changing it to my installation did not change anything either. The only other way I can think of how my installation could be affected is that the PARAVIEWDIR variable being set to a ParaView 3.x installation during build/install time and/or that I am using a Python installation in a non-standard location (specified during configure as follows; the Bash variables $PV_SRC, $PREFIX and $PYTHON27 are set to valid paths): CC=gcc CXX=g++ cmake $PV_SRC \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ -DPARAVIEW_USE_MPI:BOOL=ON \ -DPYTHON_LIBRARY:FILEPATH=$PYTHON27/lib/libpython2.7.so \ -DPYTHON_INCLUDE_DIR:PATH=$PYTHON27/include/python2.7 On 13 Apr 2015, at 17:20 , Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Something's not right with your server. Is it possible you have multiple ParaView installations/builds on the server side? Utkarsh On Mon, Apr 13, 2015 at 11:09 AM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Well, try this: create a programmable source and try the following as the Script. from paraview.servermanager import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() What do you get? When I do not connect to a server, I get the expected output (rank=0, total=1). If I do connect to the server, I get the following error (once per rank) from pvserver: Traceback (most recent call last): File string, line 19, in module File string, line 2, in RequestData File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3184, in module __initialize() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3175, in __initialize c = Connection(iter.GetCurrentSessionId(), iter.GetCurrentSession()) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1932, in __init__ _createModules(self.Modules) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2563, in _createModules m.sources = createModule('sources') File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2593, in createModule pxm = ProxyManager() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1624, in __init__ self.SMProxyManager = session.GetSessionProxyManager() AttributeError: GetSessionProxyManager ___ 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
Re: [Paraview] default_servers.pvsc question
OK, I added some notes based on the above discussion. On 04/13/2015 08:33 AM, Utkarsh Ayachit wrote: Great, let's start here: https://docs.google.com/a/kitware.com/document/d/1uzi3VzpCxiGslhqaUde3ZbKcx-9LLG_ly3BYvDiPPx0/edit?usp=sharing Utkarsh On Mon, Apr 13, 2015 at 11:29 AM, Burlen Loring burlen.lor...@gmail.com wrote: Great, that sounds like a good way to start. On 04/13/2015 06:53 AM, Utkarsh Ayachit wrote: Burlen/Rick, I am totally open to adding new features/refactoring the pvsc code. It hasn't changed much in a few years, and I am sure we know more than we did when we started with this :). Since you guys are the ones actually using this code in the field, it'd be great if you can identify the feature list of things missing or difficult to do in the current implementation and we can decide which would be best way forward. Should I create a google-doc or something which all can edit to built this list? Utkarsh On Mon, Apr 13, 2015 at 8:19 AM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Burlen/Utkarsh —— my preferred solution is also to not set an environment variable if possible. For my particular issue, I’d much rather be able to do a `which ssh` (or equivalent) to get the answer than than asking the user to set an environment variable. Implementing a python-based default_servers definition opens things up for much more programmatic flexibility. # take a guess at which ssh command to use try: default_shell=os.popen(which ssh).read() default_shell=default_shell.rstrip(\r\n) except: default_shell=/usr/krb5/bin/ Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 -Original Message- From: Burlen Loring burlen.lor...@gmail.com Date: Sunday, April 12, 2015 at 10:34 PM To: Utkarsh Ayachit utkarsh.ayac...@kitware.com, Rick Angelini richard.c.angelini@mail.mil Cc: paraview@paraview.org paraview@paraview.org Subject: Re: [Paraview] default_servers.pvsc question Hi Utkarsh, I think environment variables are kind of a band aid around a larger issue. In addition to leveraging the user's local environment, there's also no way to get information from the server side environment. for example list of account numbers a user can charge jobs to, or a list of active queues. One thing I have been thinking about is rather than just reading pvsc from an xml file, paraview could call a script to get the pvsc xml. This script could query the user's local/remote environment and generate the xml. A long time ago we had talked about a python based solution. What do you think? Burlen On 4/12/2015 11:31 AM, Utkarsh Ayachit wrote: Rick, Alas no, this isn't currently supported. But should be fairly straightforward to add. I've reported a bug: http://www.paraview.org/Bug/view.php?id=15421 Utkarsh On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Question about the default_servers.pvsc file….. I have this in my host profile: Server name=“My System resource=csrc://127.0.0.1 CommandStartup Options Option name=SSHLOC label=Local SSH Command save=true File default=/usr/local/bin/ssh/ /Option So, when the GUI pops up, the user has an opportunity to change the path to ssh. But, rather than hard-coding the default value, or presenting blank field and have the user put in the correct path, is it possible to query the user’s environment and find `which ssh` and substitute in that value?? Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 ___ 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 ___ 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 ___ 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:
[Paraview] memory inspector information through Python API
Hi, It looks like vtkPVMemoryUseInformation is the main class that's used for the Memory Inspector. Has anyone tried using this through ParaView's Python API? It looks like it's getting wrapped but when I try to use it it causes a crash. Thanks, Andy ___ 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
Re: [Paraview] memory inspector information through Python API
It looks like it's in benchmark.py: def get_memuse() : session = servermanager.ProxyManager().GetSessionProxyManager().GetSession() retval = [] infos = servermanager.vtkPVMemoryUseInformation() session.GatherInformation(session.CLIENT, infos, 0) procUse = str(infos.GetProcMemoryUse(0)) hostUse = str(infos.GetHostMemoryUse(0)) retval.append(CLIENT + procUse + / + hostUse) infos = servermanager.vtkPVMemoryUseInformation() session.GatherInformation(session.DATA_SERVER, infos, 0) for i in range(0,infos.GetSize()): rank = str(infos.GetRank(i)) procUse = str(infos.GetProcMemoryUse(i)) hostUse = str(infos.GetHostMemoryUse(i)) retval.append(DS[ + rank + ] + procUse + / + hostUse) return retval On Mon, Apr 13, 2015 at 11:58 AM, Andy Bauer andy.ba...@kitware.com wrote: Hi, It looks like vtkPVMemoryUseInformation is the main class that's used for the Memory Inspector. Has anyone tried using this through ParaView's Python API? It looks like it's getting wrapped but when I try to use it it causes a crash. Thanks, Andy ___ 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
Re: [Paraview] memory inspector information through Python API
Any problems with it via benchmark.py? It worked great perhaps six months ago. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Apr 13, 2015 at 12:03 PM, Andy Bauer andy.ba...@kitware.com wrote: It looks like it's in benchmark.py: def get_memuse() : session = servermanager.ProxyManager().GetSessionProxyManager().GetSession() retval = [] infos = servermanager.vtkPVMemoryUseInformation() session.GatherInformation(session.CLIENT, infos, 0) procUse = str(infos.GetProcMemoryUse(0)) hostUse = str(infos.GetHostMemoryUse(0)) retval.append(CLIENT + procUse + / + hostUse) infos = servermanager.vtkPVMemoryUseInformation() session.GatherInformation(session.DATA_SERVER, infos, 0) for i in range(0,infos.GetSize()): rank = str(infos.GetRank(i)) procUse = str(infos.GetProcMemoryUse(i)) hostUse = str(infos.GetHostMemoryUse(i)) retval.append(DS[ + rank + ] + procUse + / + hostUse) return retval On Mon, Apr 13, 2015 at 11:58 AM, Andy Bauer andy.ba...@kitware.com wrote: Hi, It looks like vtkPVMemoryUseInformation is the main class that's used for the Memory Inspector. Has anyone tried using this through ParaView's Python API? It looks like it's getting wrapped but when I try to use it it causes a crash. Thanks, Andy ___ 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 ___ 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
Re: [Paraview] Fwd: Rendering speed sluggish using cluster
Christian, Sorry for the late reply, just saw this email. You say things are slow when moving the scalar bar or resizing. Does that mean things are okay when interacting with the 3D view? Utkarsh On Tue, Mar 24, 2015 at 2:18 AM, Christian Butcher christian.butc...@oist.jp wrote: Dear ParaView Users, I'm rendering a pseudo-2D data set of approx 7 million cells, running 'mpirun ... pvserver'. I can connect remotely. The cluster does not have graphics cards installed, so I'm using the '--use-offscreen-rendering' flag. The client options for 'Remote Render Threshold' and 'LODThreshold' are both set to 0. On the cluster, I'm currently trying with 48 cores each using 16GB RAM, just in case I was previously using too little. I'm pretty sure this is overkill - certainly the problem seems comparable to when I run it on 8 cores each using 4GB RAM etc. I suspect I'm just not using the software well, or have installed either the client or (more likely?) the cluster's pvserver badly. Both are using 4.2.0, client has version 4.2.0-287-g1631961 64-bit, pvserver returns just 4.2.0 as the version. When changing any aspect of the render view, the client becomes unresponsive/sluggish for long periods of time. This includes, for example, moving the coloring scale bar across the screen. I'm sure I'm missing something obvious (like a step to cut down the requirements on the client workstation, for example). What should I be doing differently? The script I used to start ccmake is below - other options were left at default values (iirc): ccmake \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ -DCMAKE_CXX_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpic++ \ -DCMAKE_C_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpicc \ -DCMAKE_Fortran_COMPILER:FILEPATH=/apps/gnu/openmpi.gcc/1.8.3/bin/mpifort \ -DPARAVIEW_USE_MPI:BOOL=ON \ \ -DCMAKE_INSTALL_PREFIX:PATH=/home/c/christian-butcher/Applications \ -DBoost_INCLUDE_DIR:PATH=/home/c/christian-butcher/Applications/include \ -DBoost_LIBRARY_DIRS:FILEPATH=/home/c/christian-butcher/Applications/lib \ \ -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF \ -DBUILD_TESTING:BOOL=OFF \ -DBUILD_EXAMPLES:BOOL=FALSE \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_DOCUMENTATION:BOOL=OFF \ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ \ -DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \ -DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \ \ -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ -DVTK_USE_OFFSCREEN:BOOL=ON \ -DVISIT_BUILD_READER_GMV:BOOL=OFF \ \ -DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=OFF \ -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=ON \ -DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE \ -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE \ \ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ -DVTK_USE_X:BOOL=OFF \ \ -DModule_vtkFiltersParallelGeometry=ON \ -DModule_vtkFiltersSMP=ON \ -DModule_vtkFiltersSelection=ON \ -DModule_vtkIOMPIParallel=ON \ -DModule_vtkImagingMath=ON \ -DModule_vtkImagingStatistics=ON \ -DModule_vtkImagingStencil=ON \ \ -DOPENGL_INCLUDE_DIR:PATH=/home/c/christian-butcher/Applications/include \ -DOPENGL_gl_LIBRARY:FILEPATH=/home/c/christian-butcher/Applications/lib/libOSMesa.so \ -DOPENGL_glu_LIBRARY:FILEPATH=/home/c/christian-butcher/Applications/lib/libGLU.so \ -DOSMESA_LIBRARY:FILEPATH=/home/c/christian-butcher/Applications/lib/libOSMesa.so \ -DOSMESA_INCLUDE_DIR:PATH=/home/c/christian-butcher/Applications/include \ $APPS/source/git-sources/ParaView ___ 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 ___ 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
Re: [Paraview] MPI-aware reader plugin only has rank 0
Something's not right with your server. Is it possible you have multiple ParaView installations/builds on the server side? Utkarsh On Mon, Apr 13, 2015 at 11:09 AM, Schlottke, Michael m.schlot...@aia.rwth-aachen.de wrote: Well, try this: create a programmable source and try the following as the Script. from paraview.servermanager import vtkProcessModule print rank=, vtkProcessModule.GetProcessModule().GetPartitionId() print total=, vtkProcessModule.GetProcessModule().GetNumberOfLocalPartitions() What do you get? When I do not connect to a server, I get the expected output (rank=0, total=1). If I do connect to the server, I get the following error (once per rank) from pvserver: Traceback (most recent call last): File string, line 19, in module File string, line 2, in RequestData File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3184, in module __initialize() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 3175, in __initialize c = Connection(iter.GetCurrentSessionId(), iter.GetCurrentSession()) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1932, in __init__ _createModules(self.Modules) File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2563, in _createModules m.sources = createModule('sources') File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 2593, in createModule pxm = ProxyManager() File /aia/r014/home/mic/.pool/paraview/4.3.1/lib/paraview-4.3/site-packages/paraview/servermanager.py, line 1624, in __init__ self.SMProxyManager = session.GetSessionProxyManager() AttributeError: GetSessionProxyManager ___ 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
Re: [Paraview] default_servers.pvsc question
Great, that sounds like a good way to start. On 04/13/2015 06:53 AM, Utkarsh Ayachit wrote: Burlen/Rick, I am totally open to adding new features/refactoring the pvsc code. It hasn't changed much in a few years, and I am sure we know more than we did when we started with this :). Since you guys are the ones actually using this code in the field, it'd be great if you can identify the feature list of things missing or difficult to do in the current implementation and we can decide which would be best way forward. Should I create a google-doc or something which all can edit to built this list? Utkarsh On Mon, Apr 13, 2015 at 8:19 AM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Burlen/Utkarsh —— my preferred solution is also to not set an environment variable if possible. For my particular issue, I’d much rather be able to do a `which ssh` (or equivalent) to get the answer than than asking the user to set an environment variable. Implementing a python-based default_servers definition opens things up for much more programmatic flexibility. # take a guess at which ssh command to use try: default_shell=os.popen(which ssh).read() default_shell=default_shell.rstrip(\r\n) except: default_shell=/usr/krb5/bin/ Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 -Original Message- From: Burlen Loring burlen.lor...@gmail.com Date: Sunday, April 12, 2015 at 10:34 PM To: Utkarsh Ayachit utkarsh.ayac...@kitware.com, Rick Angelini richard.c.angelini@mail.mil Cc: paraview@paraview.org paraview@paraview.org Subject: Re: [Paraview] default_servers.pvsc question Hi Utkarsh, I think environment variables are kind of a band aid around a larger issue. In addition to leveraging the user's local environment, there's also no way to get information from the server side environment. for example list of account numbers a user can charge jobs to, or a list of active queues. One thing I have been thinking about is rather than just reading pvsc from an xml file, paraview could call a script to get the pvsc xml. This script could query the user's local/remote environment and generate the xml. A long time ago we had talked about a python based solution. What do you think? Burlen On 4/12/2015 11:31 AM, Utkarsh Ayachit wrote: Rick, Alas no, this isn't currently supported. But should be fairly straightforward to add. I've reported a bug: http://www.paraview.org/Bug/view.php?id=15421 Utkarsh On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Question about the default_servers.pvsc file….. I have this in my host profile: Server name=“My System resource=csrc://127.0.0.1 CommandStartup Options Option name=SSHLOC label=Local SSH Command save=true File default=/usr/local/bin/ssh/ /Option So, when the GUI pops up, the user has an opportunity to change the path to ssh. But, rather than hard-coding the default value, or presenting blank field and have the user put in the correct path, is it possible to query the user’s environment and find `which ssh` and substitute in that value?? Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 ___ 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 ___ 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 ___ 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
Re: [Paraview] default_servers.pvsc question
Great, let's start here: https://docs.google.com/a/kitware.com/document/d/1uzi3VzpCxiGslhqaUde3ZbKcx-9LLG_ly3BYvDiPPx0/edit?usp=sharing Utkarsh On Mon, Apr 13, 2015 at 11:29 AM, Burlen Loring burlen.lor...@gmail.com wrote: Great, that sounds like a good way to start. On 04/13/2015 06:53 AM, Utkarsh Ayachit wrote: Burlen/Rick, I am totally open to adding new features/refactoring the pvsc code. It hasn't changed much in a few years, and I am sure we know more than we did when we started with this :). Since you guys are the ones actually using this code in the field, it'd be great if you can identify the feature list of things missing or difficult to do in the current implementation and we can decide which would be best way forward. Should I create a google-doc or something which all can edit to built this list? Utkarsh On Mon, Apr 13, 2015 at 8:19 AM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Burlen/Utkarsh —— my preferred solution is also to not set an environment variable if possible. For my particular issue, I’d much rather be able to do a `which ssh` (or equivalent) to get the answer than than asking the user to set an environment variable. Implementing a python-based default_servers definition opens things up for much more programmatic flexibility. # take a guess at which ssh command to use try: default_shell=os.popen(which ssh).read() default_shell=default_shell.rstrip(\r\n) except: default_shell=/usr/krb5/bin/ Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 -Original Message- From: Burlen Loring burlen.lor...@gmail.com Date: Sunday, April 12, 2015 at 10:34 PM To: Utkarsh Ayachit utkarsh.ayac...@kitware.com, Rick Angelini richard.c.angelini@mail.mil Cc: paraview@paraview.org paraview@paraview.org Subject: Re: [Paraview] default_servers.pvsc question Hi Utkarsh, I think environment variables are kind of a band aid around a larger issue. In addition to leveraging the user's local environment, there's also no way to get information from the server side environment. for example list of account numbers a user can charge jobs to, or a list of active queues. One thing I have been thinking about is rather than just reading pvsc from an xml file, paraview could call a script to get the pvsc xml. This script could query the user's local/remote environment and generate the xml. A long time ago we had talked about a python based solution. What do you think? Burlen On 4/12/2015 11:31 AM, Utkarsh Ayachit wrote: Rick, Alas no, this isn't currently supported. But should be fairly straightforward to add. I've reported a bug: http://www.paraview.org/Bug/view.php?id=15421 Utkarsh On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY ARL (US) richard.c.angelini@mail.mil wrote: Question about the default_servers.pvsc file….. I have this in my host profile: Server name=“My System resource=csrc://127.0.0.1 CommandStartup Options Option name=SSHLOC label=Local SSH Command save=true File default=/usr/local/bin/ssh/ /Option So, when the GUI pops up, the user has an opportunity to change the path to ssh. But, rather than hard-coding the default value, or presenting blank field and have the user put in the correct path, is it possible to query the user’s environment and find `which ssh` and substitute in that value?? Rick Angelini USArmy Research Laboratory CISD/HPC Architectures Team Phone: 410-278-6266 ___ 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 ___ 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 ___ 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: