No problem, glad you figure it out.
Seb On Tue, Oct 6, 2015 at 12:25 PM, <[email protected]> wrote: > Hi Seb, > > > > I re-set up the environment from scratch and now the live article example > works. For the visualizer, I had to remove the “—any reader” parameter from > the application cmd in the configuration file and then that works as well > (I doesn’t work well with some custom state files which involve animation, > though) > > I suppose that I mixed up somehow different versions of the “ www/apps” > folder, since first I was trying on the 4.3 version (but I wasn’t able to > replicate). > > Sorry for the noise > > > > Thanks > > Livia > > > > > > *From:* Sebastien Jourdain [mailto:[email protected]] > *Sent:* 06 October 2015 16:50 > *To:* Barazzetti, Livia (ISTB) > *Cc:* [email protected] > *Subject:* Re: [Paraview] LiveArticles example with paraview 4.4 > > > > Hi Livia, > > > > The error seems related to the following issue: > > > > http://localhost:9442/ws [HTTP/1.1 400 This server only speaks WebSocket > subprotocols wamp.2.json.batched, wamp.2.json 10ms] > Connection could not be established. embed.html:134:25 > > > > I'm not sure to understand why that could be, but I was wondering if you > could try to run the WebVisualizer to see if that works as it's the part > that get actively developed while the rest are just sample code base that's > meant to help the community to build their own code base. > > > > Moreover, if you could share your launcher configuration, that could be > useful. > > > > Thanks, > > > > Seb > > > > On Mon, Oct 5, 2015 at 10:47 AM, <[email protected]> wrote: > > Hi, > I am following the paraview web guide and testing the provided web > application in version 4.4.0 . > I modified the script in > > http://www.paraview.org/gitweb?p=ParaViewSuperbuild.git;a=blob_plain;f=Scripts/pvw-setup.py;hb=HEAD > > in order to download Paraview4.4 for linux 64 (I am running Ubuntu 15 > desktop in a virtual machine), change the ports . I am following the > documentation in > http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html# > <http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html> , > and for a start I am trying the Python launcher. > > Using the script bin/start.sh I am able to load the webpage at > http://localhost:4400/apps/LiveArticles/ , but when I click to embedded > visualization , I see that the "server" process is starting a vtk render > window but without data . After a moment the visualization on the web page > closes. > > Here are the relevant part of the logs : > > *In Firefox Developer console*: > > The character encoding of a framed document was not declared. The document > may appear different if viewed without the document framing it. embed.html > The character encoding of a framed document was not declared. The document > may appear different if viewed without the document framing it. embed.html > Use of getPreventDefault() is deprecated. Use defaultPrevented instead. > jquery-1.8.3.min.js:2:0 > GET > http://localhost:9442/ws [HTTP/1.1 400 This server only speaks WebSocket > subprotocols wamp.2.json.batched, wamp.2.json 10ms] > Connection could not be established. embed.html:134:25 > Firefox can't establish a connection to the server at > ws://localhost:9442/ws. > > > * In LauncherLog.log:* > > 2015-10-05 18:15:24,525:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 > +0000] "GET /ext/core/jquery.hammer.min.js HTTP/1.1" 304 - " > http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > 2015-10-05 18:15:24,529:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 > +0000] "GET /ext/core/vgl.min.js HTTP/1.1" 304 - " > http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > 2015-10-05 18:15:24,532:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 > +0000] "GET /ext/jquery-ui/jquery-ui-1.10.0.css HTTP/1.1" 304 - " > http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > 2015-10-05 18:15:24,534:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 > +0000] "GET /ext/jquery-ui/jquery-ui-1.10.0.min.js HTTP/1.1" 304 - " > http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > 2015-10-05 18:15:24,537:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 > +0000] "GET /lib/core/vtkweb-all.min.js HTTP/1.1" 304 - " > http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > 2015-10-05 18:15:41,492:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:41 > +0000] "POST /paraview HTTP/1.1" 200 194 " > http://localhost:4400/apps/LiveArticles/embed.html?data=can.ex2" > "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 > Firefox/41.0" > > > > * in the process log: * > 2015-10-05 18:15:39+0200 [-] Log opened. > 2015-10-05 18:15:41+0200 [-] Site starting on 9442 > 2015-10-05 18:15:41+0200 [-] Starting factory <twisted.web.server.Site > instance at 0x4a0f488> > 2015-10-05 18:15:41+0200 [-] > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2015-10-05 18:15:41+0200 [-] > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > 2015-10-05 18:15:41+0200 [-] > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2015-10-05 18:15:41+0200 [-] > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Client has reconnected, > cancelling reaper > 2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] on_connect: connection > count = 1 > 2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] connection_lost: > connection count = 0 > 2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Starting timer, process > will terminate in: 300sec > 2015-10-05 18:20:41+0200 [twisted.web.server.Site] (TCP Port 9442 Closed) > 2015-10-05 18:20:41+0200 [twisted.web.server.Site] Stopping factory > <twisted.web.server.Site instance at 0x4a0f488> > 2015-10-05 18:20:41+0200 [-] Main loop terminated. > > Interestingly I've seen that the process that is called by the > PythonLauncher is > /data/pvweb/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/pvpython > /data/pvweb/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/site-packages//paraview/web/pv_web_file_loader.py > --port 9442 --data-dir /data/pvweb/data -f > > I've already tried to modify the javascript in the embed.html code in > order to "force" the data file in the command that the server uses to > launch the script, but the problem of the render window immediately closing > remains. > I don't think it's a problem of the configuration, because I am able to > use the visualization app and load some data. > > Any suggestion about this problem? I don't know how to debug further to > understand if the problem in on the javascript or python side > > Best regards > Livia > > > _______________________________________________ > 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
