Backend errors when restarting components after stopping
This is because we receive messages through topics which causes errors from Proxy calls which aren't caught.
-! 03/17/23 11:19:48.138 --Ice.Config=/home/ubuntu/code/armarx_config/default.cfg: warning: dispatch exception: src/Util.cpp:349: ::Ice::UnknownException:
unknown exception:
Traceback (most recent call last):
File "/home/ubuntu/implementation/backend/remote/ice.py", line 346, in get_tab
values: Dict[str, Any] = self.proxy.getValues(tab)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/implementation/ArmarXGui_interface_RemoteGuiInterface_ice.py", line 1321, in getValues
return _M_armarx.RemoteGuiInterface._op_getValues.invoke(self, ((tab, ), context))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ice.ConnectionRefusedException: Ice.ConnectionRefusedException:
Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/code/tools/python/3.11/install/lib/python3.11/site-packages/Ice/__init__.py", line 408, in _iceDispatch
result = method(*args)
^^^^^^^^^^^^^
File "/home/ubuntu/implementation/backend/remote/ice.py", line 278, in reportTabChanged
self.service.core.update_tab(tab)
File "/home/ubuntu/code/tools/python/3.11/install/lib/python3.11/site-packages/typeguard/__init__.py", line 1033, in wrapper
retval = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/implementation/backend/remote/core.py", line 215, in update_tab
self.tabs[tab] = self.service.controller.get_tab(tab)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/implementation/backend/remote/ice.py", line 345, in get_tab
with IceRequest():
File "/home/ubuntu/implementation/backend/ice.py", line 18, in __exit__
raise ProxyUnreachableException(exc_value) from exc_value
backend.exceptions.ProxyUnreachableException: Ice.ConnectionRefusedException:
Connection refused
identity: F76EDDE0-B097-42CB-9192-11EC190CA8EF
facet:
operation: reportTabChanged
remote host: ::ffff:10.0.3.52 remote port: 39126