BodenmillerGroup / histocat-web

Histology Topography Cytometry Analysis Toolbox (histoCAT) for Web.
https://bodenmillergroup.github.io/histocat-web
MIT License
8 stars 11 forks source link

WebGL context lost under some conditions #17

Open plankter opened 3 years ago

plankter commented 3 years ago

Very awkward bug that is hard to reproduce. Either Plotly.js or regl-scatterplot causes WegGL context lost when data refresh occurs. Chrome has a limit of 16 active contexts.

A workaround atm is to reload active layout.

plankter commented 3 years ago

It seems Plotly.js uses at least 2 WebGL contexts per scatterplot. See https://github.com/plotly/plotly.js/issues/2333

plankter commented 3 years ago

Possible workaround:

Launching Chrome Stable with this command line argument:

--max-active-webgl-contexts=32

See: https://bugs.chromium.org/p/chromium/issues/detail?id=771792#c10