<div dir="ltr">Hi Simon,<div><br></div><div>Is the Python dependency that you're trying to get rid of on the Catalyst side or on the pvserver/GUI side? If I remember correctly on the Catalyst side Python was required for the Live connection. </div><div><br></div><div>Cheers,</div><div>Andy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 5, 2017 at 10:11 AM, Simon Klarmann <span dir="ltr"><<a href="mailto:klarmann@mechanik.tu-darmstadt.de" target="_blank">klarmann@mechanik.tu-darmstadt.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="DE" link="blue" vlink="purple"><div class="m_4362794175424847078WordSection1"><p class="MsoNormal">Dear Members,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">I wanted to get rid of the dependency on Python. The connection by pure C++ works just fine.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">The problem occurs when establishing the live connection to Paraview, closing Paraview and then try to send some data again.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I tracked it down to the vtkSocket class inside the method Receive. After the connection is terminated on the Paraview side, e.g. by closing Paraview, the call of vtkLiveInsituLink::<wbr>InsituUpdate gets stuck in the vtkSocket::Receive method. Even though I get a message that the connection was terminated.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">A temporary fix for my case was to replace in Line 609 of the vtkSocket.cxx if (nRecvd == 0) with if (nRecvd <= 0), because on disconnection the return value of nRecvd is -1. Then everything works well.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I only used the following methods in the given order to transfer the data:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">vtkLiveInsituLink::<wbr>InsituUpdate<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">vtkSMSourceProxy::<wbr>UpdatePipeline<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">vtkLiveInsituLink::<wbr>InsituPostProcess<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Are there further steps to perform or is there a way to check if the connection is still alive?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Operating System: Windows 7, Visual Studio 2017<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Simon<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm"><p class="MsoNormal" style="border:none;padding:0cm"><span>Dipl.-Ing. Simon Klarmann<u></u><u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><span><u></u> <u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><b><span>Bau- und Umweltingenieurwissenschaften</span></b><span><br></span><span>Technische Universität Darmstadt<u></u><u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><span>Fachgebiet Festkörpermechanik<u></u><u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><span><u></u> <u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><span>Tel.: <a href="tel:+49%206151%201622642" value="+4961511622642" target="_blank">+49 6151 16 – 22642</a><u></u><u></u></span></p><p class="MsoNormal" style="border:none;padding:0cm"><span>Mail: <a href="mailto:klarmann@mechanik.tu-darmstadt.de" target="_blank">klarmann@mechanik.tu-<wbr>darmstadt.de</a><u></u><u></u></span></p></div><p class="MsoNormal"><span>Franziska-Braun-Straße 7<u></u><u></u></span></p><p class="MsoNormal"><span>Gebäude L5|01, Raum 542<u></u><u></u></span></p><p class="MsoNormal"><span>64287 Darmstadt<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>