mapbox / robosat

Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
MIT License
2.01k stars 382 forks source link

Illegal instruction (core dumped) #203

Closed aleksandrmelnyk closed 4 years ago

aleksandrmelnyk commented 4 years ago

Hi all, Am getting Illegal instruction (core dumped) when trying to run downoad, like this: sudo docker run -it --rm -v $PWD:/data --ipc=host --network=host mapbox/robosat:latest-cpu download https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.webp?access_token=xxxxxx.N-t2ynPPxbomsFIK41SVLA /data/cover/buildings.csv /data/tiles/buildings

what could it be?

daniel-j-h commented 4 years ago

Potentially this one: https://github.com/mapbox/robosat/pull/180

We compile for AVX2 to get some sweet speedups :racehorse: if you run on a machine without AVX2 instruction set support (introduced with Haswell, in 2013'ish), this could be the issue.

You can fix it by changing the CFLAGS in the Dockerfile(s) and then re-building the docker images.

Hope this helps.

aleksandrmelnyk commented 4 years ago

Daniel, thanks much, I'll give it a try.

On 28 Feb 2020, at 12:40, Daniel J. H. notifications@github.com wrote:

Potentially this one: #180 https://github.com/mapbox/robosat/pull/180 We compile for AVX2 to get some sweet speedups 🐎 if you run on a machine without AVX2 instruction set support (introduced with Haswell, in 2013'ish), this could be the issue.

You can fix it by changing the CFLAGS in the Dockerfile(s) and then re-building the docker images.

Hope this helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mapbox/robosat/issues/203?email_source=notifications&email_token=AAHDJG5MUI2SRMSJ2ADUCEDRFDLY3A5CNFSM4K5ITNI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENH43EI#issuecomment-592432529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHDJG4KR55D5VJYPEEGNBTRFDLY3ANCNFSM4K5ITNIQ.

aleksandrmelnyk commented 4 years ago

I have removed CFLAGS and rebuild docker image and it fixed issue. thanks