Grasia / WikiChron-networks

WikiChron Networks is a web tool for the analysis and visualization of different networks within wiki online communities
http://networks.wikichron.science/
GNU Affero General Public License v3.0
5 stars 0 forks source link

Several reloads of the app ends with the cytoscape component not showing up #45

Open Akronix opened 5 years ago

Akronix commented 5 years ago

To test it, select a wiki and a network and then reload the page one or two times. For instance, you can launch the app with run_develop.sh and go to http://localhost:5000/app/?wikis=es.lagunanegra.wikia.com&network=co_editing_network&upper_bound=1274800435&lower_bound=1243696435 and then reload the page. You will see that the cytoscape component stop showing up.

I think this bug has to do with a incorrectly coded PreventUpdate() call, maybe this one: https://github.com/Grasia/WikiChron-networks/blob/develop/wikichron/dash/main.py#L578

@FRYoussef can you take a look at this?

FRYoussef commented 5 years ago

I've tried to reproduce the bug with your steps, but it works for me and the console doesn't launch any error. I've tried it with run_develop.sh and run_standalone_dashapp.sh files. Please, try to reproduce it for your own again and check if it still happen.

Akronix commented 5 years ago

I have screencasted the issue:

Wch-networks-issue-45-short You can see there it stops working after the second reload. Nothing strange is shown in the terminal.


Another, longer, screencast starting the app from a selection opened previously in another time and, potentially, by a different user:

Wch-networks-issue-45

Akronix commented 5 years ago

We have found out that this bug happens in Chromium (v.72) but not in Firefox (v.65). @FRYoussef what about edge?

FRYoussef commented 5 years ago

It works fine in Microsoft Edge 44.17763.1.0

Akronix commented 5 years ago

Humm is still this an issue? Maybe it has been fixed in newer versions of dash?