Failed to delete a Node in Graph Composer

I am creating a quite complex pipeline in graph composer 4.1.0 (Deepstream 7.1) however, when i try to delete a node (not always the same) i get this error

2025-02-12 09:45:30 [856,556ms] [Error] [omni.kit.commands.command] Failed to execute a command: DeleteCommand.
  File "/tmp/.tmpNvXgRaphComposer/run/kit/extscore/omni.kit.async_engine/omni/kit/async_engine/async_engine.py", line 177, in _on_update
    self._loop.run_forever()
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.menu.utils/omni/kit/menu/utils/scripts/app_menu.py", line 624, in execute_action
    omni.kit.actions.core.execute_action(*action)
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.actions.core/omni/kit/actions/core/actions.py", line 40, in execute_action
    return get_action_registry().execute_action(extension_id, action_id, *args, **kwargs)
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.core/omni/exp/graph/core/graph_widget.py", line 472, in on_edit_delete
    result, message = omni.kit.commands.execute("DeleteCommand", model=self._model_proxy.model)
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.commands/omni/kit/commands/command.py", line 463, in execute
    result = omni.kit.undo.execute(command, name, kwargs)
[...skipped...]
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.commands/omni/kit/undo/undo.py", line 77, in execute
    result = _execute(command, name, level, history_key)
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.commands/omni/kit/undo/undo.py", line 458, in _execute
    raise error
  File "/tmp/.tmpNvXgRaphComposer/run/kit/exts/omni.kit.commands/omni/kit/undo/undo.py", line 419, in _execute
    result = command.do()
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.core/omni/exp/graph/core/commands.py", line 142, in do
    current_graph.delete_node(node)
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.composer/omni/exp/graph/composer/backend/graph_node.py", line 121, in delete_node
    self._break_connection(comp, peer)
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.composer/omni/exp/graph/composer/backend/graph_node.py", line 343, in _break_connection
    self.delete_node(conn.node)
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.composer/omni/exp/graph/composer/backend/graph_node.py", line 124, in delete_node
    self._delete_node(node_to_del)
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.core/omni/exp/graph/core/graph_model_proxy.py", line 551, in _delete_node
    self.__graph_map.pop(node.path)

 <class 'KeyError'> 'test-multi-hls/node4'
2025-02-12 09:45:30 [856,557ms] [Error] [omni.exp.graph.core.graph_widget] Failed to delete a node (None)

Is there a way for doing a sanity check of the graph?

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: 7.1
• JetPack Version (valid for Jetson only): N/A
• TensorRT Version: N/A
• NVIDIA GPU Driver Version (valid for GPU only): 570.86.16
• Issue Type( questions, new requirements, bugs): bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing): N/A
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description): N/A

What do you mean by “delete a node”? How can we reproduce your issue?