Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

General Memory Leak in Network Visualization #533

Closed
hbaderhold opened this issue Jan 3, 2015 · 7 comments
Closed

General Memory Leak in Network Visualization #533

hbaderhold opened this issue Jan 3, 2015 · 7 comments

Comments

@hbaderhold
Copy link

Hi,

I'm completely new to coding and javascript, but I find vis.js absolutely awesome and very intuitive to use!

I do have a general problem with the dynamic network visualization. Example: In your Gallery http://visjs.org/examples/network/02_random_nodes.html if you enter 'Number of nodes:' [1000] and hit 'go' a few [2-3] times and then enter 'Number of nodes:' [10] directly after that, the visualization has a significant lag (e.g. wenn dragging nodes). If you refresh the browser, it works fine again. Is this due to a memory leak? If yes, how can I solve this best (in layman's terms)?

(I'm using Safari Version 7.0.6 (9537.78.2); Chrome Version 39.0.2171.95 (64-bit); Firefox 34.0.5. on Mac OS 10.9.4)

Thanks a lot and belated happy new year to the almende team
Hanns

@AlexDM0
Copy link
Contributor

AlexDM0 commented Jan 6, 2015

Hi,

I noticed this as well a while back. We're in the process of looking into the correct cleaning up of the network on delete. The examples implement this badly. The best way to do this at the moment, is to use a dataset and clear/add the data there WITHOUT re-initializing the network. There is documentation available on the dataset on our website and it is being used in a lot of the examples.

Regards,

Alex

@AlexDM0
Copy link
Contributor

AlexDM0 commented Jan 6, 2015

Hi Hanns,

I have pushed a fix for this to the develop branch. We'll release this soon.

Regards,

Alex

@AlexDM0 AlexDM0 closed this as completed Jan 6, 2015
@beeva-ivanmarques
Copy link

Is there any news on this topic?

@mojoaxel
Copy link
Member

@beeva-ivanmarques This is a very old issue. If you still think this is a problem please open a new issue.

@fatore
Copy link

fatore commented Sep 12, 2017

I'm facing a similar issue: #3439

@wimrijnders
Copy link
Contributor

@fatore This is not a similar issue; he's talking about lag here while dragging, and the hypothesis is that this is caused due to memory leakage. In any case, the issue has been closed for over two years. Please concentrate on your own issue.

@fatore
Copy link

fatore commented Sep 12, 2017

Indeed, I only commented here to leave a reference to the other issue since searches for this problem are leading here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants