[Paraview] ParaviewWeb server / client mismatch
Sgouros, Thomas
thomas_sgouros at brown.edu
Wed Mar 28 18:22:06 EDT 2018
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:
CRITICAL:twisted:Unhandled Error
Traceback (most recent call last):
File "AMSServer.py", line 220, in <module>
server.start_webserver(options=args, protocol=AMSServer)
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/wslink/server.py",
line 238, in start_webserver
reactor.run()
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
line 1243, in run
self.mainLoop()
--- <exception caught here> ---
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
line 1249, in mainLoop
while self._started:
exceptions.UnboundLocalError: local variable 'self' referenced before
assignment
Traceback (most recent call last):
File "AMSServer.py", line 220, in <module>
server.start_webserver(options=args, protocol=AMSServer)
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/wslink/server.py",
line 238, in start_webserver
reactor.run()
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
line 1243, in run
self.mainLoop()
File
"/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
line 1247, in mainLoop
while self._started:
UnboundLocalError: local variable 'self' referenced before assignment
Fatal Python error: GC object already tracked
Abort trap: 6
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.
Thank you,
-Tom
p.s. Also thank you for the issue entry.
On Wed, Mar 28, 2018 at 5:53 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:
> You need to register the following protocol
> https://github.com/Kitware/visualizer/blob/master/server/
> pvw-visualizer.py#L196
>
> Then make sure you call:
> https://github.com/Kitware/visualizer/blob/master/server/
> pvw-visualizer.py#L208-L209
>
> On Wed, Mar 28, 2018 at 3:43 PM, Sgouros, Thomas <thomas_sgouros at brown.edu
> > wrote:
>
>> HI All:
>>
>> 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.max" is
>> an unregistered method.
>>
>> On the python side, tried both of these, but got the same error.
>>
>> self.registerVtkWebProtocol(pv_protocols.ParaViewWebViewPort
>> ImageDelivery())
>> self.registerVtkWebProtocol(pv_protocols.vtk_protocols.vtkWe
>> bViewPortImageDelivery())
>>
>> This is using the pvpython that comes with ParaView-5.5.0-RC3.
>>
>> Thank you,
>>
>> -Tom
>>
>>
>>
>> _______________________________________________
>> 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:
>> https://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180328/5a2f441a/attachment.html>
More information about the ParaView
mailing list