<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
Hi, <br>
I am following the paraview web guide and testing the provided web application in version 4.4.0 .<br>
I modified the script in <br>
<a href="http://www.paraview.org/gitweb?p=ParaViewSuperbuild.git;a=blob_plain;f=Scripts/pvw-setup.py;hb=HEAD" target="_blank">http://www.paraview.org/gitweb?p=ParaViewSuperbuild.git;a=blob_plain;f=Scripts/pvw-setup.py;hb=HEAD</a> 
<br>
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
<a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#" target="_blank">
http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#</a> , and for a start I am trying the Python launcher.
<br>
<br>
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. <br>
<br>
Here are the relevant part of the logs :<br>
<br>
<b>In Firefox Developer console</b>:<br>
<br>
<font face="Courier New">The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. embed.html<br>
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. embed.html<br>
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery-1.8.3.min.js:2:0<br>
GET <br>
http://localhost:9442/ws [HTTP/1.1 400 This server only speaks WebSocket subprotocols wamp.2.json.batched, wamp.2.json 10ms]<br>
Connection could not be established. embed.html:134:25<br>
Firefox can't establish a connection to the server at ws://localhost:9442/ws.<br>
<br>
</font><b><br>
In LauncherLog.log:</b><br>
<br>
<font face="Courier New">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"<br>
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"<br>
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"<br>
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"<br>
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"<br>
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"</font><br>
<br>
<b><br>
in the process log:<br>
<font face="Courier New"><br>
</font></b><font face="Courier New">2015-10-05 18:15:39+0200 [-] Log opened.<br>
2015-10-05 18:15:41+0200 [-] Site starting on 9442<br>
2015-10-05 18:15:41+0200 [-] Starting factory <twisted.web.server.Site instance at 0x4a0f488><br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Client has reconnected, cancelling reaper<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] on_connect: connection count = 1<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] connection_lost: connection count = 0<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Starting timer, process will terminate in: 300sec<br>
2015-10-05 18:20:41+0200 [twisted.web.server.Site] (TCP Port 9442 Closed)<br>
2015-10-05 18:20:41+0200 [twisted.web.server.Site] Stopping factory <twisted.web.server.Site instance at 0x4a0f488><br>
2015-10-05 18:20:41+0200 [-] Main loop terminated.<br>
</font><br>
Interestingly I've seen that the process that is called by the PythonLauncher is <br>
<font face="Courier New">/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</font><br>
<br>
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.<br>
I don't think it's a problem of the configuration, because I am able to use the visualization app and load some data.
<br>
<br>
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<br>
<br>
Best regards<br>
Livia <br>
<br>
</body>
</html>