Skip to content

Preventing Infinite Loop in Node Editor #2484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Akascape opened this issue Mar 11, 2025 · 2 comments
Open

Preventing Infinite Loop in Node Editor #2484

Akascape opened this issue Mar 11, 2025 · 2 comments
Labels
state: pending not addressed yet type: bug bug

Comments

@Akascape
Copy link

In the Node Editor, suppose we have node A and node B, If I connect node A's output to node B's input, and then connect node B's output back to node A's input, it creates a loop that causes the entire application to hang. Is there a way to prevent this in the Dear PyGui node editor. We have to delink the previous connection if there any reverse link case.

Example:
Image

@v-ein
Copy link
Collaborator

v-ein commented Mar 11, 2025

If I remember correctly, the links are created by your own code, not by DPG. That's where you can check if the new link creates a loop and delete old links as necessary. Take a look at the node_editor's callback argument.

Repository owner deleted a comment Apr 16, 2025
@v-ein
Copy link
Collaborator

v-ein commented Apr 16, 2025

Please don't click the link in the notification you received for the previous comment. It's a scam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet type: bug bug
Projects
None yet
Development

No branches or pull requests

2 participants