light-viz
light-viz copied to clipboard
error: unknown option `--force-offscreen-rendering'
hadoop@ubuntu:~$ /usr/local/bin/LightViz --data /home/hadoop/Downloads/ParaViewData-v4.4.0 --port 8080 --paraview /home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit --force-offscreen-rendering
error: unknown option `--force-offscreen-rendering'
--force-offscreen-rendering
is an option to paraview
or pvpython
, not an option to light-viz. You could add an option to pass this flag through to ParaView. Look in bin/light-viz-cli.js
for the LightViz command line options and the setup of the pvpython
command it runs.
hadoop@ubuntu:~$ /usr/local/bin/LightViz --data /home/hadoop/Downloads/ParaViewData-v4.4.0 --port 8080 --paraview /home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit
=============================================================================== | Execute: | $ "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython" | -dr | --force-offscreen-rendering | "/home/hadoop/Downloads/light-viz-master/server/pvw-light-viz.py" | --content | "/home/hadoop/Downloads/light-viz-master/dist" | --port | 8080 | --data | "/home/hadoop/Downloads/ParaViewData-v4.4.0"
Got unknown argument: --force-offscreen-rendering
--connect-id=opt Set the ID of the server and client to make sure they match. 0 is reserved to imply none specified.
--cslog=opt ClientServerStream log file.
--data=opt Load the specified data. To specify file series replace the numeral with a '.' eg. my0.vtk, my1.vtk...myN.vtk becomes my..vtk
--disable-registry
-dr Do not use registry when running ParaView (for testing).
--enable-bt Enable stack trace signal handler.
--enable-streaming EXPERIMENTAL: When specified, view-based streaming is enabled for certain views and representation types.
--help
/? Displays available command line arguments.
--hostname=opt Override the hostname to be used to connect to this process. By default, the hostname is determined using appropriate system calls.
--mesa Use the provided Mesa build and its default rendering backend.
--mesa-llvm Use the provided Mesa build and the software renderer (softpipe).
--mesa-swr Use the provided Mesa build and the SWR renderer.
--mpi Initialize MPI on processes, if possible. Cannot be used with --no-mpi.
--multi-servers Allow client to connect to several pvserver
--native Use the system-provided OpenGL implementation.
--no-mpi Don't initialize MPI on processes. Cannot be used with --mpi.
--print-monitors Print detected monitors and exit (Windows only).
--server-url=opt
-url=opt Set the server-url to connect to when the client starts. The --server (-s) option supersedes this option, hence use only one of the two options.
--servers-file=opt Load the specified configuration servers file (.pvsc). This option replaces the default user's configuration servers file.
--state=opt Load the specified statefile (.pvsm).
--stereo Tell the application to enable stereo rendering
--stereo-type=opt Specify the stereo type. This valid only when --stereo is specified. Possible values are "Crystal Eyes", "Red-Blue", "Interlaced", "Dresden", "Anaglyph", "Checkerboard","SplitViewportHorizontal"
--test-plugin=opt Specify the name of the plugin to load for testing
--test-plugin-path=opt Specify the path where more plugins can be found.This is typically used when testing plugins.
--version
-V Give the version number and exit.
See https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/Offscreen.html but that was added after 5.4.1. So either you don't use that argument or you use a newer version of ParaView.
Ideally you should use LightViz that is bundle with your ParaView to prevent any version miss-match.
For that just replace the path of the command line that get ran with the corresponding file under that directory /home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/
The command line is:
$ "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython"
| -dr
| "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/..../light-viz/server/pvw-light-viz.py"
| --content
| "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/..../light-viz/www"
| --port
| 8080
| --data
| "/home/hadoop/Downloads/ParaViewData-v4.4.0"
Where the ...
should be something like share/paraview-5.4/web
.