Memory Leak while interacting with maplibre-gl library #4650
Labels
bug
Something isn't working
good first issue
Good for newcomers
PR is more than welcomed
Extra attention is needed
maplibre-gl-js version: 4.5.0
browser: Chrome
Steps to Trigger Behavior
After taking the heapdump via chrome debug tools, I found that there are
AbortControllers
object holding the memory and not getting garbage collected. Here is the code ofmaplibre-gl
library that instantiating these objects :Link to Demonstration
Expected Behavior
Objects should get garbage collected and heap memory should not increase overtime.
Actual Behavior
We are seeing increase in memory usage overtime. Sharing the snapshot of objects that are not garbage collected.
The text was updated successfully, but these errors were encountered: