whosonfirst / go-whosonfirst-meta

Go package for working with Who's On First meta files
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

slice out of bounds #6

Closed thisisaaronland closed 6 years ago

thisisaaronland commented 6 years ago
 data/991/899/741/991899741.geojson    |  5 ++++-
 143574 files changed, 578885 insertions(+), 459855 deletions(-)
utils/linux/wof-build-metafiles

panic: runtime error: slice bounds out of range

goroutine 17 [running]:
github.com/tidwall/gjson.fromBytesGet(0x3, 0x72ace1b0, 0x2a, 0x808d9060, 0x14, 0x0, 0x0, 0x50f, 0x0, 0x0, ...)
    /usr/local/mapzen/go-whosonfirst-meta/src/github.com/tidwall/gjson/gjson.go:1373 +0x219
github.com/tidwall/gjson.GetBytes(0x75758000, 0x6a8, 0xe00, 0x8153d38, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/local/mapzen/go-whosonfirst-meta/src/github.com/tidwall/gjson/gjson.go:1389 +0x7f
github.com/whosonfirst/go-whosonfirst-meta.DumpFeature(0x75758000, 0x6a8, 0xe00, 0x2422f7a0, 0x0, 0x2422f7a0)
    /usr/local/mapzen/go-whosonfirst-meta/src/github.com/whosonfirst/go-whosonfirst-meta/meta.go:221 +0x22a
github.com/whosonfirst/go-whosonfirst-meta.FeatureToRow(0x75758000, 0x6a8, 0xe00, 0x77a05b01, 0x0, 0x0)
    /usr/local/mapzen/go-whosonfirst-meta/src/github.com/whosonfirst/go-whosonfirst-meta/meta.go:100 +0x6b
main.main.func2(0x7f9f1bd0, 0x43, 0x81eaa80, 0x74731b90, 0x0, 0x0)
    /usr/local/mapzen/go-whosonfirst-meta/cmd/wof-build-metafiles.go:233 +0x462
github.com/whosonfirst/go-whosonfirst-crawl.Crawler.Crawl.func1(0x7f9f1bd0, 0x43, 0x81eaa80, 0x74731b90, 0x0, 0x0, 0x0, 0x0)
    /usr/local/mapzen/go-whosonfirst-meta/src/github.com/whosonfirst/go-whosonfirst-crawl/crawl.go:35 +0x7c