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
Interesting. I wonder if there's something we can do to make this consume less memory? 1024 polygons are included, and are within the realm of Leaflet etc.
@tmcw this happens probably because you're fetching this GeoJSON into the main thread, and then passing it to the worker. Loading big GeoJSON data in the worker directly (by passing the URL in the GeoJSONSourcce options instead) should work fine.
I'll try that. Can you say more about what the difference is here? The size of the geojson isn't super huge - 600kb. Is the memory thing in the JSON transfer, or something else?
It's not the JSON transfer, it's tiling the GeoJSON. GeoJSON is tiled at zooms 1, 5, 9, and 13. This GeoJSON generates 29700 tiles at z9 and 536580 tiles at z13, and the worker either takes forever to process that (master), or crashes (0.4.1). So basically this reduces to #464.
Activity
jfirebaugh commentedon Oct 22, 2014
Upstream: https://code.google.com/p/chromium/issues/detail?id=426116
jfirebaugh commentedon Oct 23, 2014
Upstream says it's an OOM crash.
tmcw commentedon Oct 23, 2014
Interesting. I wonder if there's something we can do to make this consume less memory? 1024 polygons are included, and are within the realm of Leaflet etc.
mourner commentedon Oct 28, 2014
@tmcw this happens probably because you're fetching this GeoJSON into the main thread, and then passing it to the worker. Loading big GeoJSON data in the worker directly (by passing the URL in the GeoJSONSourcce options instead) should work fine.
tmcw commentedon Oct 28, 2014
I'll try that. Can you say more about what the difference is here? The size of the geojson isn't super huge - 600kb. Is the memory thing in the JSON transfer, or something else?
mourner commentedon Oct 29, 2014
Yeah, JSON load + transfer. Of course I'm not sure it's the culprit, but this is the first thing to try.
jfirebaugh commentedon Nov 13, 2014
It's not the JSON transfer, it's tiling the GeoJSON. GeoJSON is tiled at zooms 1, 5, 9, and 13. This GeoJSON generates 29700 tiles at z9 and 536580 tiles at z13, and the worker either takes forever to process that (master), or crashes (0.4.1). So basically this reduces to #464.
mourner commentedon Dec 1, 2014
Going to take a crack at fixing this, see #464 (comment)