jperelli / osm-static-maps

Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
http://osm-static-maps.herokuapp.com/
GNU General Public License v2.0
160 stars 52 forks source link

Crash when adding very large polylines #22

Closed paulsUsername closed 4 years ago

paulsUsername commented 4 years ago

I am getting the following crash when trying to add very large polylines:

code:"E2BIG"
errno:"E2BIG"
error:Error: spawnSync /bin/sh E2BIG
message:"spawnSync /bin/sh E2BIG"
output:null
path:"/bin/sh"
pid:79999
signal:null

Any advice?

jperelli commented 4 years ago

cool, mhh can you give an example for reproduction of this issue?

jperelli commented 4 years ago

I couldn't reproduce this, so if someone gives me a repro I'll look into it. for the record tried with 20mb of world data (https://geojson-maps.ash.ms/) and it works just fine img2

jperelli commented 4 years ago

also inspired me to open this issue https://github.com/jperelli/osm-static-maps/issues/23