mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Out of memory crash

Open stevage opened this issue 3 years ago • 0 comments

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:

2022-06-22 11_11_45-Re_ SchoolScape _ Mismatching IDs for DDF processing (#76) - stevage@gmail com -

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.)

stevage avatar Jun 22 '22 03:06 stevage