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

Too many active WebGL contexts. Oldest context will be lost. #7332

Closed
mattphoto opened this issue Sep 25, 2018 · 1 comment
Closed

Too many active WebGL contexts. Oldest context will be lost. #7332

mattphoto opened this issue Sep 25, 2018 · 1 comment

Comments

@mattphoto
Copy link

mattphoto commented Sep 25, 2018

  • We have a feature that pops a google streetview (which apparently creates a new webgl context) in a modal on mapbox click. On the 16th click, the map goes blank. console reads "Too many active WebGL contexts. Oldest context will be lost."

  • Behavior on Firefox: generates a warning on 16th click, but map continues to display correctly.

  • Edge browsers on PC also does not experience this problem.

mapbox-gl-js version: api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-language/v0.10.0/mapbox-gl-language.js

browser: Chrome MacOS 70

Steps to Trigger Behavior

  1. click on mapbox 16 times to trigger rendering a google streeview each time.
  2. map goes blank

Expected Behavior

map is visible

Actual Behavior

map is blank

@mourner
Copy link
Member

mourner commented Sep 25, 2018

Unfortunately there's nothing we can do on GL JS side to fix this problem — it's a browser limitation. You'll have to fix it on the application side, e.g. by reusing the same (hidden) streetview.

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

2 participants