yWorks / yfiles-jupyter-graphs

The home of the Jupyter notebook graph visualization widget powered by yFiles for HTML
https://www.yworks.com/products/yfiles-graphs-for-jupyter
Other
133 stars 14 forks source link

Showing too many instances can crash WebGL2 browser engine #46

Open yGuy opened 6 months ago

yGuy commented 6 months ago

Describe the bug A notebook with many different widgets can cause the browser to give up and "disable webgl" and thus basically disabling the widget until reload.

To Reproduce Steps to reproduce the behavior:

  1. Use a PC with a less powerful built-in GPU and outdated drivers.
  2. Open an example notebook with lots of graph cells.
  3. Expand/collapse the sidebar to invalidate the WebGL contexts
  4. See error in console:

image

Expected behavior The code should take into account that a browser might give up due to exhausted resources.

Desktop (please complete the following information):