You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting a node with multiple links connected to a single of its outputs leads to "Item not found" error on some link ids.
Error message:
Exception:
Error: [1005]
Command: delete_item
Item: 0
Label: Not found
Item Type: Unknown
Message: Item not found: 40
To Reproduce
Create two nodes with multiple inputs / outputs.
Connect single output of first node to multiple inputs of second node.
Delete first node.
=> Item not found error.
Expected behavior
Should delete all links cleanly.
Standalone, minimal, complete and verifiable example
Good catch! Looks like a bug in mvNodeEditor::onChildRemoved: the function is trying to remove node links while it is iterating over the list of those node links 😂 (childslots[0]). It also makes an unnecessary call to CleanUpItem, so whoever goes ahead and fixes this, please remove the call.
A workaround would be to manually remove all the links tied to the node being deleted.
Version of Dear PyGui
Version: 2.0.0
Operating System: macOS 15.1.1
My Issue/Question
Deleting a node with multiple links connected to a single of its outputs leads to "Item not found" error on some link ids.
Error message:
To Reproduce
Create two nodes with multiple inputs / outputs.
Connect single output of first node to multiple inputs of second node.
Delete first node.
=> Item not found error.
Expected behavior
Should delete all links cleanly.
Standalone, minimal, complete and verifiable example
The text was updated successfully, but these errors were encountered: