vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.67k stars 825 forks source link

Nodes start disappearing after awhile and get computed radius is NaN error. #637

Closed NabeelUppel closed 1 year ago

NabeelUppel commented 1 year ago

Description: I have a Graph that works well but if I wait for a sufficient amount of time, nodes start disappearing with this error: THREE.BufferGeometry.ComputeBoundingSphere: Computed radius is NaN. The "position" attribute is likely to have NaN values.

To Reproduce: Steps to reproduce the behavior: Leave graph open for awhile. (>5 mins).

Expected behavior: Nodes don't disappear.

Screenshots image

Desktop:

Any help would be appreciated. localhost-1690818495756.log

vasturiano commented 1 year ago

@NabeelUppel thanks for reaching out.

I'm unable to reproduce your issue. Could you make a simple reproducible example on https://codesandbox.io/ where this issue consistently happens?

NabeelUppel commented 1 year ago

Very late reply but i managed to solve the issue, can't be sure what exactly cause it but now it's work. Thank you and great work!