-
Notifications
You must be signed in to change notification settings - Fork 210
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
Dynamically adding new nodes causes exceptions #466
Comments
Hello, do you maybe have a way to reproduce this consistently? That would help me fix it. |
I'm afraid I cannot provide a complete example easily. I'll give some context though.
If I'm not mistaken, these actions trigger events which cause re-rendering of the |
The problem originates from a ReactiveUI event modifying the diagram content while it is still rendering the previous change. |
Yeah, it's tough to know exactly when the rendering finished, since a few JS calls need to be completed first. |
I've noticed adding/removing nodes/ports can cause exceptions due to race conditions. There are three cases I have documented (of which one is the Navigator Widget) but everything which makes use of the changed collections and is triggered by a re-render can cause the same exceptions to be thrown.
I think the cause is the automatic re-rendering on diagram changes while modifying collections (the nodes and/or links).
My first attempt at resolving this was setting both
Diagram.SuspendRefresh
andDiagram.SuspendSorting
to false but this does not solve the issue.Has anyone else experienced this issue or have suggestions?
The text was updated successfully, but these errors were encountered: