keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.26k stars 1.72k forks source link

[Bug] Splitting/Unsplitting the map leaks WebGL context #1492

Open hywelbennett opened 3 years ago

hywelbennett commented 3 years ago

Describe the bug Splitting/unsplitting the map many times leads to a WebGL context leak

To Reproduce Steps to reproduce the behavior:

  1. Go to the map view
  2. Click on Switch to "Dual Map View"/"Close Current Panel" repeatedly (~12 times on my machine)
  3. The console displays the error message: WARNING: Too many active WebGL contexts. Oldest context will be lost.
  4. The main map panel context is destroyed, leaving the map white

Expected behavior The map splits/unsplits any number of times, as contexts should be destroyed after the split panel is closed

Desktop (please complete the following information):

hywelbennett commented 3 years ago

https://github.com/keplergl/kepler.gl/issues/1272 seems related

macrigiuseppe commented 3 years ago

thank you for the info, we are going to look into this.