Skip to content

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

@mattphoto

Description

@mattphoto
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions