You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: unbounded memory growth on the worker side since v1.1.0 #8470
Browse a simple map (e.g. /debug), quickly zooming back and forth.
Watch workers memory footprint in the "Memory" tab.
Expected Behavior
Memory fluctuates around a certain size.
Actual Behavior
Memory grows indefinitely.
Since v1.1.0, quick map browsing introduces some race condition that makes some tiles to be retain on the worker side in this.loaded object of VectorTileWorkerSource indefinitely. You can track this by setting mapboxgl.workerCount = 1, setting Map maxTileCacheSize to 1, and adding console.log(Object.keys(this.loaded).length) after this.loaded[uid] = workerTile in vector_tile_worker_source.js.
I bisected this down to #8363@ansis — something in there introduced a race condition with worker cache clearing logic. Let's investigate further.
changed the title [-]Regression: some tiles are retained indefinitely on the worker side since v1.1.0[/-][+]Regression: unbounded memory growth on the worker side since v1.1.0[/+]on Jul 12, 2019
Activity
[-]Regression: some tiles are retained indefinitely on the worker side since v1.1.0[/-][+]Regression: unbounded memory growth on the worker side since v1.1.0[/+]fix race condition between caching and aborting
fix race condition between caching and aborting
fix race condition between caching and aborting (#8472)
fix race condition between caching and aborting (#8472)
merge publisher-production into master (#8519)