[Paraview] ParaViewWeb sample web applications does not display 3d contents

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Aug 1 20:24:41 EDT 2012


Hum... To build ParaView, you just need Python, no gui needed. But as
you won't have any X server running as well you will need to configure
ParaVIew to use the OSMesa library that you may have compile on your
own somewhere.

This is what is set for ParaView in the super build.

ccmake ../src

  BUILD_TYPE                                            Release
  BUILD_SHARED_LIBS                               ON
  PARAVIEW_BUILD_QT_GUI                      OFF
  PARAVIEW_ENABLE_PYTHON                 ON
  PARAVIEW_ENABLE_PYTHON_FILTERS  OFF
  VTK_OPENGL_HAS_OSMESA                   ON
  OSMESA_INCLUDE_DIR                            /.../OSMesa/install/include/
  OSMESA_LIBRARY
/.../OSMesa/install/lib/libOSMesa.so
  VTK_USE_OFFSCREEN                            ON
  VTK_USE_X                                              OFF
  OPENGL_INCLUDE_DIR
  OPENGL_gl_LIBRARY
  OPENGL_glu_LIBRARY
  OPENGL_xmesa_INCLUDE_DIR

That's it. Then ParaViewWeb will request the build directory of ParaView

Seb

On Wed, Aug 1, 2012 at 7:51 PM, Sivaramakrishnan, Chandrika
<chandrika at pnnl.gov> wrote:
> Sebastien,
>
> I tried reinstalling Paraview web this time with OSMesa ON and I am still not able to run pvpython on command prompt :(  Sorry it took me while because I ran out of disk space on my small VM and had to reconfigure/resize my VM partitions to do a clean build.  I deleted the build and install directory and ran a ccmake, make and make install. This time when I configured I set OSMesa to ON and gave the install prefix as /usr/local/ParaViewWeb. After the make install, I ran pvpython from command line and I still get permission denied error.
>
> root at gs3-debian6:/usr/local/ParaViewWeb/ParaView# ./bin/pvpython
> Error running "/usr/local/ParaViewWeb/ParaView/lib/paraview-3.14/pvpython": Permission denied
>
> Should I be using a different build for ParaView instead of relying on the super build of paraviewweb? If so with what configurations should I build paraview so that paraviewweb would use it correctly.
>
> Thanks
> Chandrika
>
> -----Original Message-----
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Sivaramakrishnan, Chandrika
> Sent: Monday, July 30, 2012 6:37 PM
> To: Sebastien Jourdain
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] ParaViewWeb sample web applications does not display 3d contents
>
> I definitely want to install ParaViewWeb as server that is accessible to others so that others in my team need not build their own instance. I will change all Paraview bin contents to be owned by tomcat user. I will rebuild the application and test the pvpython. I will let you know how it goes
>
> Thanks
> Chandrika
>
> -----Original Message-----
> From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
> Sent: Monday, July 30, 2012 6:34 PM
> To: Sivaramakrishnan, Chandrika
> Subject: Re: [Paraview] ParaViewWeb sample web applications does not display 3d contents
>
> That's not good to set ParaView code to belong to root. They should belong to tomcat6 as they are going to be called by tomcat.
>
> Anyway, I should have asked it before.
>
> Are you installing ParaViewWeb as a server that is meant to be accessible from the outside or just to test out the application ?
>
> If it is the later, you should simply install it under your user. It will be way easier as you won't have permission issue or mesa/server x issue.
>
> Otherwise, it seems that your ParaView installation is not right. For some reason Try to rebuild the application as the proper user. And make sure pvpython is working.
>
> Seb
>
> On Mon, Jul 30, 2012 at 9:14 PM, Sivaramakrishnan, Chandrika <chandrika at pnnl.gov> wrote:
>> I get a permission denied error :(
>>
>> root at gs3-debian6:/home/gs3/Downloads/ParaViewWeb/install/ParaView/bin#
>> ./pvpython Error running
>> "/home/gs3/Downloads/ParaViewWeb/install/ParaView/lib/paraview-3.14/pv
>> python": Permission denied
>>
>> I did a chmod a+x pv* so the permissions do look right to me. Moreover I am running as root.
>>
>> root at gs3-debian6:/home/gs3/Downloads/ParaViewWeb/install/ParaView/bin#
>> ls -l total 1284 -rwxr-xr-x 1 root root  82284 Jul 26 10:37 pvbatch
>> -rwxr-xr-x 1 root root  82301 Jul 26 10:40 pvdataserver -rwxr-xr-x 1
>> root root  82289 Jul 26 10:37 pvpython -rwxr-xr-x 1 root root  82307
>> Jul 26 10:40 pvrenderserver -rwxr-xr-x 1 root root  82257 Jul 26 10:40
>> pvserver
>> -rw-r--r-- 1 root root  82301 Jul 26 10:40 smTestDriver
>> lrwxrwxrwx 1 root root     22 Jul 26 14:02 vtkWrapHierarchy-6.0 -> vtkWrapHierarchy-6.0-1
>> -rw-r--r-- 1 root root 314913 Jul 25 23:47 vtkWrapHierarchy-6.0-1
>> lrwxrwxrwx 1 root root     19 Jul 26 14:02 vtkWrapPython-6.0 -> vtkWrapPython-6.0-1
>> -rw-r--r-- 1 root root 437949 Jul 25 23:48 vtkWrapPython-6.0-1
>> lrwxrwxrwx 1 root root     23 Jul 26 14:02 vtkWrapPythonInit-6.0 -> vtkWrapPythonInit-6.0-1
>> -rw-r--r-- 1 root root  11247 Jul 25 23:48 vtkWrapPythonInit-6.0-1
>>
>> Does the permission on all files in bin directory look right?
>>
>> -----Original Message-----
>> From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
>> Sent: Monday, July 30, 2012 6:08 PM
>> To: Sivaramakrishnan, Chandrika
>> Subject: Re: [Paraview] ParaViewWeb sample web applications does not
>> display 3d contents
>>
>> Run that instead
>>
>> /home/gs3/Downloads/ParaViewWeb/install/ParaView/bin/pvpython
>>
>> On Mon, Jul 30, 2012 at 7:29 PM, Sivaramakrishnan, Chandrika <chandrika at pnnl.gov> wrote:
>>> Sebastien
>>>
>>> When I run pvpython I get the following error
>>>
>>> root at gs3-debian6:/home/gs3/Downloads/ParaViewWeb/install/ParaView/bin# python pvpython
>>>   File "pvpython", line 1
>>> SyntaxError: Non-ASCII character '\x80' in file pvpython on line 2,
>>> but no encoding declared; see
>>> http://www.python.org/peps/pep-0263.html
>>> for details
>>>
>>> Does it mean that my build is bad. Should I just delete everything
>>> and rebuild with OSMesa ON
>>>
>>> Thanks
>>> Chandrika
>>> ________________________________________
>>> From: Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>> Sent: Monday, July 30, 2012 4:04 PM
>>> To: Sivaramakrishnan, Chandrika
>>> Cc: paraview at paraview.org
>>> Subject: Re: [Paraview] ParaViewWeb sample web applications does not
>>> display 3d contents
>>>
>>> Hi Chandrika,
>>>
>>> it seems that you have some rendering issue.
>>>
>>> Warning: In
>>> /home/gs3/Downloads/ParaViewWeb/build/ParaView/src/ParaViewCore/Serve
>>> r
>>> Manager/vtkSMRenderViewProxy.cxx,
>>> line 996
>>> vtkSMRenderViewProxy (0xa152430): Disabling offscreen rendering since
>>> empty image was detected.
>>>
>>> Regarding the DAO option just use
>>> org.paraview.process.jpa.VisualizationInMemoryDAO
>>> instead of the default one that is below:
>>>    # Possible choices: VisualizationJpaDAO / VisualizationInMemoryDAO
>>>    pw.visualization.dao=org.paraview.process.jpa.VisualizationJpaDAO
>>>
>>> You can check if you ParaView is properly build or not.
>>>
>>> Launch pvpython and execute those following lines
>>>
>>>> from paraview.simple import *
>>>> Cone()
>>>> Show()
>>>> Render()
>>>> WriteImage("/.../image.png")
>>>
>>> Then look if the image seems to be correct.
>>>
>>> If ParaView is not properly working, either try to reconfigure it
>>> properly with OSMesa or simply remove the whole build tree and don't
>>> forget the OSMesa flag before calling "make".
>>>
>>> Seb
>>>
>>>
>>> On Mon, Jul 30, 2012 at 6:48 PM, Sivaramakrishnan, Chandrika
>>> <chandrika at pnnl.gov> wrote:
>>>> Sebastien,
>>>> Thanks for the prompt reply. Here are the details
>>>>
>>>> 1. I do see the line "pw.visualization.dao=org.paraview.process.jpa.VisualizationJpaDAO" in my pw-config.properties. What should I change this to in order to use the Memory class you mention?
>>>>
>>>> 2. Attached are the pw-out*.log file I get after running
>>>> localhost:8180/PWSimple. I have also attached the
>>>> pw-config.properties just in case I didn't get some settings right
>>>>
>>>> 3. The build completed without any error and the error I earlier got -something related to DISPLAY=Null.. I am not able to remember the exact error message - disappeared so I assumed that ParaViewWeb is now able to detect OSMesa. Should I have run some clean command before doing a configure, make and make install ?
>>>>
>>>> Thanks,
>>>> Chandrika
>>>>
>>>> ________________________________________
>>>> From: Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>>> Sent: Monday, July 30, 2012 1:52 PM
>>>> To: Sivaramakrishnan, Chandrika
>>>> Cc: paraview at paraview.org
>>>> Subject: Re: [Paraview] ParaViewWeb sample web applications does not
>>>> display 3d contents
>>>>
>>>> Hi Chandrika,
>>>>
>>>> you are definitely on the right mailing list.
>>>>
>>>> Currently there is a known issue using the JPA dao class in the
>>>> pw-config.properties, so make sure you used the Memory class instead.
>>>>
>>>> Then regarding all your software version, everything should be fine.
>>>>
>>>> Could you send the content of one of your pw-out*.log ? It might
>>>> help me to understand what is happening.
>>>>
>>>> Also, just to make sure, when at the second step you turn ON Mesa,
>>>> did ParaView rebuild properly ?
>>>> The superbuild is kind of experimental and I'm not sure it works
>>>> well dynamically.
>>>>
>>>> Thanks,
>>>>
>>>> Seb
>>>>
>>>>
>>>> On Mon, Jul 30, 2012 at 1:50 PM, Sivaramakrishnan, Chandrika
>>>> <chandrika at pnnl.gov> wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> In my new ParaViewWeb install none of the sample applications are
>>>>> rendering the 3d content. Could someone help me with this issue. I
>>>>> am hoping this is the right user forum as I couldn't find a similar
>>>>> one specifically for ParaViewWeb.  If this is not the right mailing
>>>>> list could one you please point me to the right one.
>>>>>
>>>>>
>>>>>
>>>>> Here are the details of my issue:
>>>>>
>>>>>
>>>>>
>>>>> In my new Paraview web install, when I go to
>>>>> localhost:8180/PWSimple I get a blank gray/black images instead of
>>>>> getting 3d content. I get blank images under all three columns
>>>>> -Java http, Javascript, and Flex. I don't see any errors in tomcat
>>>>> log(catalina.out) or pw logs (pw-out*.log, pw-paraview*.log).  In
>>>>> catalina.out I see
>>>>>
>>>>> INFO: Server startup in 5212 ms
>>>>>
>>>>> Settings: default
>>>>>
>>>>> Exec:
>>>>> /var/lib/apache-tomcat-6.0.35/paraviewweb-work/bin/PWServer.sh
>>>>>
>>>>> Settings: default
>>>>>
>>>>> Exec:
>>>>> /var/lib/apache-tomcat-6.0.35/paraviewweb-work/bin/PWServer.sh
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-2
>>>>>
>>>>>    -> soft quit
>>>>>
>>>>> - Look at 80572d5160544eae2643f6534a11450c-1
>>>>>
>>>>>    -> soft quit
>>>>>
>>>>>
>>>>>
>>>>> When I go to http://paraviewweb.kitware.com/PWSimple/ I see 3d
>>>>> content in the first two columns and blank image for Flex so I hope
>>>>> the issue is not with my browser. I am using Firefox 14.0.1 with
>>>>> java enabled. The FAQ page of Paraview web has this issue listed
>>>>> but none of the solutions seem to match my case.  Based on the FAQ
>>>>> listsed possible solutions I verified that
>>>>>
>>>>>     1. The pw-config.properties has the working dir set. I have
>>>>> pw.working.directory=/var/lib/apache-tomcat-6.0.35/paraviewweb-work
>>>>>
>>>>>    2.  Checked that activemq(5.5.1) is running (I don't see any
>>>>> connection errors in the log)
>>>>>
>>>>>    3. I ran superbuild with OSMesa turned on
>>>>>
>>>>>    4. I am able to start PWServer at command line without any error
>>>>>
>>>>>    5. Check that I am linking with the right version of
>>>>> ActiveMQ-CPP  -- The faq pointed to 3.1.x but the super build came
>>>>> with 3.4.1
>>>>>
>>>>>   6.  I don't see any library not found errors in the log.
>>>>>
>>>>>
>>>>>
>>>>> Here is how I did the install:
>>>>>
>>>>>
>>>>>
>>>>> -          I installed ParaViewWeb using the superbuild
>>>>> (http://paraview.org/Wiki/ParaViewWeb_SuperBuild).
>>>>>
>>>>> -          I am using tomcat 6.0.35 that is running on port 8180 (I have a
>>>>> different tomcat instance running on 8080)
>>>>>
>>>>> -          I am using a system level tomcat that is installed in /var/lib/
>>>>> and runs as the user "tomcat", so I followed the steps in
>>>>> http://paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package. I
>>>>> realized this is required after I did the initial install. Hence I
>>>>> ran the ccmake of the super build a second time, this time with
>>>>> OSMesa on and then did a make and make install
>>>>>
>>>>> -          I did minor changes/additions to steps in
>>>>> http://paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package
>>>>> based on the initial errors I got - 1. instead of setting
>>>>> additional classpath in tomcat startup script, I did it  in
>>>>> catalina.properties 2. Copied all the files in PARAVIEW_INSTALL/lib/ to <tomcat dir>/paraviewweb-work/classpath.
>>>>>
>>>>> -          I am running on a Debian OS virtual machine
>>>>>
>>>>> -          I am using apache-activemq-5.5.1. I had an existing install that
>>>>> was using http connector instead of tcp, so I modified it to have
>>>>> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> and
>>>>> restart activemq. Is the version 5.5.1 compatible with
>>>>> Paraview/ParaViewWeb? I couldn't download version 5.3.x as
>>>>> specified in build instructions because all download links seem broken for this version.
>>>>>
>>>>>
>>>>>
>>>>> Any help in resolving this issue is greatly appreciated. Please let
>>>>> me know if I could send any additional information to debug this.
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Chandrika
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.paraview.org/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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list