-
Notifications
You must be signed in to change notification settings - Fork 45
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
create render fall inside an infinite loop #19
Comments
Yeah, that error seems like a decent smoke pointing in the right direction. I didn't look close into the issue yet, but are you able to open dev tools, then navigate to the offending page and then hit the pause button to see the stack trace where it is stuck? |
Hey @anvaka, I'm trying to report an issue, but the stack trace doesn't seem to point to the ngraph source code. Here's the content I copied and pasted, I guess the problem is inside the nodeView.js:77 and then three.js:11279
Another good thing is that by using the debugged, It is stopped at some point with this code
I guess it is part of the layout3d code? Additionally, I wanted to report that the issue seems to occur when I create a link in the graph. However, if I add just one or two nodes, the code seems to work fine. |
Mh looks like that the pixel default layout is buggy, I switch to https://github.com/anvaka/ngraph.forcelayout and not it is working :) |
Glad you figured it out! |
Yeah, looking at it closer, it seems like this module uses https://github.com/anvaka/pixel.layout/blob/master/index.js which is very old. Probably should just drop it and switch to ngraph.forcelayout like you did. Also note - the rendering in ngraph.pixel is done by THREE.js, which I don't use frequently these days. More lightweight options are available. This is my typical go-to starting pack for graph drawing: https://github.com/anvaka/graph-start |
Hey @anvaka
Yeah I was pretty sure that also the module was using the forcelayour, but I was wrong
I noted it, but it looks like there is a Maybe I can start one, and you can supervise it? |
Hit the same error and forcedlayout worked great! Took me a while to figure out the options since these aren't documented. |
I try to build a straightforward svelte app with some code examples, but when I add a new link, my code will be stuck in rendering (or try to render) the graph.
This may be related to this exception that I see.
Any idea?
The repo, when you can reproduce it is there https://git.hedwing.dev/vincenzopalazzo/ngraph-svelte
The text was updated successfully, but these errors were encountered: