VTK Remote Server with C++

Thanks Sebastien,
I managed to run the example with Para and VTK backend. In the example: 02_contour/pv-toggle-rendering, I saw that server returns the 2D images to client for displaying. I tried to replace the file head.vti by another file which is ~ 200 MB (which I converted from dicom files with tool gdcm2vtk: gdcm2vtk 3_Thorax output.vti). The performance of server is quite terrible. Server acts quite slowly and client had to wait to get 2D images quite slow. I noticed there are some errors from the servers. Do you have any idea on how to boost the performance (my desktop is Intel(R) Core™ i5-8400 CPU @ 2.80GHz, RAM 16 Gb).

DEBUG:root:wslink incoming msg {“wslink”:“1.0”,“id”:“rpc:cfb5ae80dad2d4242a901216396feb92f:56”,“method”:“viewport.image.push”,“args”:[{“view”:“5797”,“size”:[912,613]}],“kwargs”:{}}
DEBUG:root:wslink incoming msg {“wslink”:“1.0”,“id”:“rpc:cfb5ae80dad2d4242a901216396feb92f:57”,“method”:“ws.vue.trigger”,“args”:[“view.camera”,,{}],“kwargs”:{}}
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name=‘Task-74’ coro=<WslinkHandler.sendWrappedMessage() done, defined at /tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py:392> exception=AssertionError()>
Traceback (most recent call last):
File “/tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py”, line 439, in sendWrappedMessage
await ws.send_bytes(attachments[key])
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/web_ws.py”, line 307, in send_bytes
await self._writer.send(data, binary=True, compress=compress)
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/http_websocket.py”, line 685, in send
await self._send_frame(message, WSMsgType.BINARY, compress)
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/http_websocket.py”, line 656, in _send_frame
await self.protocol._drain_helper()
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/base_protocol.py”, line 84, in _drain_helper
assert waiter is None or waiter.cancelled()
AssertionError
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name=‘Task-77’ coro=<WslinkHandler.sendWrappedMessage() done, defined at /tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py:392> exception=AssertionError()>
Traceback (most recent call last):
File “/tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py”, line 439, in sendWrappedMessage
await ws.send_bytes(attachments[key])
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/web_ws.py”, line 307, in send_bytes
await self._writer.send(data, binary=True, compress=compress)
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/http_websocket.py”, line 685, in send
await self._send_frame(message, WSMsgType.BINARY, compress)
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/http_websocket.py”, line 656, in _send_frame
await self.protocol._drain_helper()
File “/tmp/py-env/lib/python3.8/site-packages/aiohttp/base_protocol.py”, line 84, in _drain_helper
assert waiter is None or waiter.cancelled()
AssertionError
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name=‘Task-73’ coro=<WslinkHandler.sendWrappedMessage() done, defined at /tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py:392> exception=RuntimeError(‘dictionary changed size during iteration’)>
Traceback (most recent call last):
File “/tmp/py-env/lib/python3.8/site-packages/wslink/backends/aiohttp/init.py”, line 422, in sendWrappedMessage
for key in attachments:
RuntimeError: dictionary changed size during iteration