Skip to content
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

Requesting children of a node that contains a matrix freezes the application #56

Closed
Dylrak opened this issue Nov 13, 2019 · 0 comments
Closed

Comments

@Dylrak
Copy link

Dylrak commented Nov 13, 2019

I have made a rudimentary application which allows the user to select a node from the parent's list of Children, set its ChildrenRetrievalPolicy (in this case, to DirectOnly) and call _consumer.SendAsync(). The reason for doing this is the issue described in #39. This works fine for most nodes, however when requesting a node that contains a matrix the application throws a ConnectionLost event with the message "The provider failed to send the children for the element with the path /root/audio routing/matrix.". The node I'm referring to does work within the Ember+ Viewer application and the structure looks as following:
image
Seeing as this does work within Ember+ Viewer, this leads me to believe this is an issue with the Consumer class in EmberPlusSharp not being able to handle an 'empty' matrix. This is reaffirmed by the comments you placed in the Matrix code, which state that "The following code implements a heuristic, which assumes that a provider would send the direct children (if any) before sending the connections."
Seeing as I am calling 'audio routing' with DirectOnly and all its sub-nodes are set to None, the Matrix will NOT send its direct children as a result of its ChildrenRetrievalPolicy. Since this policy cannot be set to All, creating the aforementioned issue from #39, this leaves me with the issue of being unable to open a node containing a matrix.
For completeness' sake, here follows the quick mock-up I made to test this issue:
EmberPlusSharpTestModule.txt

@Dylrak Dylrak closed this as completed Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant