Skip to content

The client this element belongs to has been deleted. #382

@pascalzauberzeug

Description

@pascalzauberzeug

The logs shows:

rosys_1         | 2025-09-01 16:44:03.419 [ERROR] rosys/event.py:85: could not emit listener=EventListener(callback=<bound method LeafletMap.update_robot_position of <field_friend.interface.components.leaflet_map.LeafletMap object at 0xffff5c114c80>>, filepath='/app/rosys/event.py', line=49)
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/rosys/event.py", line 77, in emit
rosys_1         |     result = listener.callback(*args, **kwargs)
rosys_1         |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/interface/components/leaflet_map.py", line 103, in update_robot_position
rosys_1         |     self.robot_marker.run_method(':setIcon', icon)
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/leaflet_layer.py", line 44, in run_method
rosys_1         |     return self.leaflet.run_method('run_layer_method', self.id, name, *args, timeout=timeout)
rosys_1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/leaflet.py", line 111, in run_method
rosys_1         |     return super().run_method(name, *args, timeout=timeout)
rosys_1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/element.py", line 452, in run_method
rosys_1         |     return self.client.run_javascript(f'return runMethod({self.id}, "{name}", {json.dumps(args)})', timeout=timeout)
rosys_1         |            ^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/leaflet.py", line 77, in __getattribute__
rosys_1         |     attribute = super().__getattribute__(name)
rosys_1         |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/element.py", line 157, in client
rosys_1         |     raise RuntimeError('The client this element belongs to has been deleted.')
rosys_1         | RuntimeError: The client this element belongs to has been deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions