<div dir="ltr"><div>Curses, foiled again.</div><div><br></div><div>Thank you,</div><div><br></div><div> -Tom</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 7:35 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes threading is bad. I didn't noticed that you were creating threads in your code.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 4:22 PM, Sgouros, Thomas <span dir="ltr"><<a href="mailto:thomas_sgouros@brown.edu" target="_blank">thomas_sgouros@brown.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Brilliant. That worked, thank you, and most of the image changes are updated with one click of the button rather than one for the control and one click on the canvas. However, I often (not always) get this:<div><br></div><div>
<span></span>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">CRITICAL:twisted:Unhandled Error</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "AMSServer.py", line 220, in <module></span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>server.start_webserver(options<wbr>=args, protocol=AMSServer)</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/wslink<wbr>/server.py", line 238, in start_webserver</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>reactor.run()</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/twiste<wbr>d/internet/base.py", line 1243, in run</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>self.mainLoop()</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">--- <exception caught here> ---</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/twiste<wbr>d/internet/base.py", line 1249, in mainLoop</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>while self._started:</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">exceptions.UnboundLocalError: local variable 'self' referenced before assignment</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195);min-height:14px"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "AMSServer.py", line 220, in <module></span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>server.start_webserver(options<wbr>=args, protocol=AMSServer)</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/wslink<wbr>/server.py", line 238, in start_webserver</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>reactor.run()</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/twiste<wbr>d/internet/base.py", line 1243, in run</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>self.mainLoop()</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>File "/Applications/ParaView-5.5.0-<wbr>RC3.app/Contents/Python/twiste<wbr>d/internet/base.py", line 1247, in mainLoop</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-5156784496398056195m_8850579987442936820gmail-Apple-converted-space"> </span>while self._started:</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">UnboundLocalError: local variable 'self' referenced before assignment</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">Fatal Python error: GC object already tracked</span></p>
<p class="m_-5156784496398056195m_8850579987442936820gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="m_-5156784496398056195m_8850579987442936820gmail-s1" style="font-variant-ligatures:no-common-ligatures">Abort trap: 6</span></p>
</div><div><br></div><div>I imagine this is related to the fact that the control that is invoked here is a slider, and I set it up so that when the slider is moved, it launches a thread that watches to see when the slider stops moving before doing an update of the model view. So it probably has something to do with the fact that the InvokeEvent('UpdateEvent') call happens in a thread. Maybe I shouldn't do that? The other renderer, with ViewPortImageDelivery, seemed to handle this fine, though you had to click in the window to see the change, which is what I'm trying to fix.</div><div><br></div><div>Thank you,</div><div><br></div><div> -Tom</div><div><br></div><div><br></div><div>p.s. Also thank you for the issue entry.</div><div><br></div><div><br></div></div><div class="m_-5156784496398056195HOEnZb"><div class="m_-5156784496398056195h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 5:53 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.co<wbr>m</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You need to register the following protocol<div><a href="https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L196" target="_blank">https://github.com/Kitware/vis<wbr>ualizer/blob/master/server/pvw<wbr>-visualizer.py#L196</a><br></div><div><br></div><div>Then make sure you call:</div><div><a href="https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L208-L209" target="_blank">https://github.com/Kitware/vis<wbr>ualizer/blob/master/server/pvw<wbr>-visualizer.py#L208-L209</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-5156784496398056195m_8850579987442936820h5">On Wed, Mar 28, 2018 at 3:43 PM, Sgouros, Thomas <span dir="ltr"><<a href="mailto:thomas_sgouros@brown.edu" target="_blank">thomas_sgouros@brown.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-5156784496398056195m_8850579987442936820h5"><div dir="ltr">HI All:<div><br></div><div>I'm trying to switch from ViewPortImageDelivery to VtkImageDelivery so I can see updates to the web client without having to click in the window. But apparently the protocols on the server side are deficient, and I get a client-side error complaining that "viewport.image.animation.fps.<wbr>max" is an unregistered method. </div><div><br></div><div>On the python side, tried both of these, but got the same error.</div><div><br></div><div><div>self.registerVtkWebProtocol(pv<wbr>_protocols.ParaViewWebViewPort<wbr>ImageDelivery())</div><div> self.registerVtkWebProtocol(pv<wbr>_protocols.vtk_protocols.vtkWe<wbr>bViewPortImageDelivery())</div></div><div><br></div><div>This is using the pvpython that comes with ParaView-5.5.0-RC3.</div><div><br></div><div>Thank you,</div><div><br></div><div> -Tom</div><div><br></div><div><br></div></div>
<br></div></div>______________________________<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/opensou<wbr>rce/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/ParaV<wbr>iew</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="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>