mapbox / tile-cover

Generate the minimum number of tiles to cover a geojson geometry
MIT License
189 stars 40 forks source link

FATAL ERROR: invalid table size Allocation failed - process out of memory #71

Closed jczaplew closed 8 years ago

jczaplew commented 8 years ago

I've run into an error where this polygon produces the following error:

FATAL ERROR: invalid table size Allocation failed - process out of memory
Abort trap: 6

while running cover.tiles(*problematic polygon*, {min_zoom: 0, max_zoom: 1}). I have run other similar polygons through tile-cover without any issues.

jczaplew commented 8 years ago

It seems to possibly a problem with wrapping the poles, as clipping the polygon to 85N seemed to resolve the problem.

mourner commented 8 years ago

Yeah, something weird going on definitely. Need to take a look.

mourner commented 8 years ago

Probably the same issue as #66.

derhuerst commented 7 years ago

I'm getting this error when I pass a way to large bounding box. It should probably throw an error, so that consuming libraries can handle this case. right now the whole process just freezes and crashes, potentially user-facing or even in the browser.

Harsh-Singh12 commented 2 years ago

I am creting contact app by downloading all modules and files .. facing the same issue:-invalid table size Allocation failed-javascript out of memory.