Kitware / paraview-visualizer

Web frontend to ParaView based on trame
BSD 3-Clause "New" or "Revised" License
32 stars 12 forks source link

when i removed a component , i got an error as the following #12

Open yungxiaomcc opened 1 year ago

yungxiaomcc commented 1 year ago

error

ERROR:root:Exception raised ERROR:root:AttributeError("'NoneType' object has no attribute 'object'") ERROR:root:Traceback (most recent call last): File "/home/yangxiao/projects/paraview-visualizer/.venv/lib/python3.9/site-packages/wslink/backends/aiohttp/init.py", line 495, in onMessage results = await results File "/home/yangxiao/projects/paraview-visualizer/.venv/lib/python3.9/site-packages/trame_server/protocol.py", line 186, in trigger result = self.server._triggers[name](*args, *kwargs) File "/home/yangxiao/projects/paraview-visualizer/pv_visualizer/html/pipeline.py", line 70, in on_action self.server.controller.on_delete(id) File "/home/yangxiao/projects/paraview-visualizer/.venv/lib/python3.9/site-packages/trame_server/controller.py", line 277, in call result = f(args, **kwargs) File "/home/yangxiao/projects/paraview-visualizer/pv_visualizer/app/engine/proxymanager/core.py", line 302, in on_proxy_delete pv_source = s_source.object AttributeError: 'NoneType' object has no attribute 'object'

click

image

jourdain commented 1 year ago

Thanks for reporting such issue.

Based on the error it seems that the simput proxy does not exist when triggering the delete. We'll need some time to investigate.

yungxiaomcc commented 1 year ago

Thanks for reporting such issue.

Based on the error it seems that the simput proxy does not exist when triggering the delete. We'll need some time to investigate.

As I tried to fix this issuse, I found more information . When I removed a component from pipeline, we expect the component should be removed ,but nothing happened. And one more clicked,the errror occured. I think there are some states which is not updated synchronously with remove operation. Can you give me some information to help to investigate it?

jourdain commented 1 year ago

Not sure I'm following what you did but I won't have time to investigate anytime soon.