<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Seb,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Sorry for the noise<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Livia
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sebastien Jourdain [mailto:sebastien.jourdain@kitware.com]
<br>
<b>Sent:</b> 06 October 2015 16:50<br>
<b>To:</b> Barazzetti, Livia (ISTB)<br>
<b>Cc:</b> paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] LiveArticles example with paraview 4.4<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Livia,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The error seems related to the following issue:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://localhost:9442/ws" target="_blank"><span style="font-size:10.0pt;font-family:"Courier New"">http://localhost:9442/ws</span></a><span style="font-size:10.0pt;font-family:"Courier New""> [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</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Moreover, if you could share your launcher configuration, that could be useful.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Seb<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Oct 5, 2015 at 10:47 AM, <<a href="mailto:livia.barazzetti@istb.unibe.ch" target="_blank">livia.barazzetti@istb.unibe.ch</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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 <a href="http://localhost:4400/apps/LiveArticles/" target="_blank">
http://localhost:4400/apps/LiveArticles/</a> , 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>
<span style="font-family:"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>
<a href="http://localhost:9442/ws" target="_blank">http://localhost:9442/ws</a> [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>
</span><b><br>
In LauncherLog.log:</b><br>
<br>
<span style="font-family:"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 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>"
 "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 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>"
 "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 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>"
 "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 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>"
 "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 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>"
 "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 "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=can.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=can.ex2</a>"
 "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"</span><br>
<br>
<b><br>
in the process log:<br>
</b><b><span style="font-family:"Courier New""><br>
</span></b><span style="font-family:"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>
</span><br>
Interestingly I've seen that the process that is called by the PythonLauncher is <br>
<span style="font-family:"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</span><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 <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>