Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL context lost under some conditions #17

Open
plankter opened this issue Jun 8, 2021 · 2 comments
Open

WebGL context lost under some conditions #17

plankter opened this issue Jun 8, 2021 · 2 comments

Comments

@plankter
Copy link
Contributor

plankter commented Jun 8, 2021

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
Copy link
Contributor Author

plankter commented Jun 9, 2021

It seems Plotly.js uses at least 2 WebGL contexts per scatterplot.
See plotly/plotly.js#2333

@plankter
Copy link
Contributor Author

plankter commented Jun 9, 2021

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

plankter added a commit that referenced this issue Jun 10, 2021
- FIX: proper color normalization for raster images.
- Plotly.js in now bundled instead of being served from CDN.
- Fixed mkdocs config due to recent breaking changes in v1.2.
- Functional `steinbock` data import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant