mapbox-gl-js
mapbox-gl-js copied to clipboard
Out of memory crash
mapbox-gl-js version: 2.8.2
browser: FF
Steps to Trigger Behavior
I haven't fully narrowed this down, but it's completely consistent and reproducible at my end. The cause was some bad mbtiles served locally.
The TileJSON looked like this:
{
"basename": "SRA_PS_Current_Base.mbtiles",
"id": "SRA_PS_Current_Base",
"filesize": 24576,
"scheme": "xyz",
"name": "Untitled",
"center": [
-122.444,
37.7908,
12
],
"bounds": [
-180,
-85.0511,
180,
85.0511
],
"format": "png",
"minzoom": 0,
"maxzoom": null,
"tiles": [
"http://localhost:4001/tiles/SRA_PS_Current_Base/{z}/{x}/{y}.png"
],
"tilejson": "2.0.0"
}
Call addSource as normal, the tileJSON is fetched without issue. Then call addLayer to add a line feature. The browser locks up, and eventually:

I speculate that maybe the maxzoom: null is at fault here.
(I do not anticipate doing further, unpaid, work to help create a repro case. Good luck.)