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

Errors and missing items in highly nested tree #54

Open
hschilling opened this issue Nov 5, 2021 · 1 comment
Open

Errors and missing items in highly nested tree #54

hschilling opened this issue Nov 5, 2021 · 1 comment

Comments

@hschilling
Copy link

When I try this code

tree = Tree(stripes=True, multiple_selection=False)
subtree = Node(f'subtree')
subtree.opened = False
tree.add_node(subtree)
for i in range(15):
    node = Node(f'node{i}')
    subtree.add_node(node)
    for j in range(15):
        subnode = Node(f'node{j}')
        node.add_node(subnode)
        for k in range(15):
            subsubnode = Node(f'node{k}')
            subnode.add_node(subsubnode)

I see a few errors in the browser console of this type

Comm promise not found for comm id f8eeb9730a294ab8a26ecdae8ed77a9c

When I try displaying it with

tree

I get quite a few errors like this in the console:

Uncaught (in promise) TypeError: t is undefined
    create_view manager-base.js:85
    create_child_view widget.js:604
    addNodeModel tree.js:166
    update viewlist.js:54
    onRendered tree.js:142
    t Lodash
    create_node jstree.js:3928
    renderNode tree.js:56
    initialize tree.js:51

and the actual tree display is missing the + and - open/close widgets.

If I have only 5 nodes at each level, then I don't get any errors.

I also tried this with 15 at each level but put in a time.sleep(0.2) in the innermost loop to see if it was a timing issue and then I did not get any errors and the display was perfect.

I have a real world tree with more levels of depth that is why I ran into this. I have inserted sleep statements in that and I can't get it to work at all there.

Thanks

@jhamman
Copy link

jhamman commented May 10, 2023

I'm experiencing the same error with the reproducer above and with my own real-world tree. I would love to help debug this if possible. @martinRenou do you have any tips on how to dig in on this one?

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

2 participants