languagecrunch icon indicating copy to clipboard operation
languagecrunch copied to clipboard

Illegal instruction (core dumped)

Open codevbus opened this issue 6 years ago • 15 comments

Getting:

Illegal instruction (core dumped)

When running:

sudo docker run -p 8080:8080 artpar/languagecrunch

codevbus avatar Jan 16 '18 14:01 codevbus

That's weird. What OS and docker version are you using ?

artpar avatar Jan 16 '18 16:01 artpar

Docker: Docker version 17.12.0-ce, build c97c6d6 OS: Ubuntu 16.04_3 LTS Kernel: 4.13.0-26-generic

codevbus avatar Jan 16 '18 16:01 codevbus

@codevbus I created a docker image built on hub.docker.com, please try this out:

docker run -p 8080:8080 artpar/languagecrunch-cloudbuild

https://hub.docker.com/r/artpar/languagecrunch-cloudbuild/

The original image was built on osx, wondering if that was an issue.

artpar avatar Jan 16 '18 18:01 artpar

I can confirm the same behavior, and that the new image does work.

OS Fedora release 26 (Twenty Six)
Kernel 4.14.13-200.fc26.x86_64
Docker Version 17.12.0-ce
Docker Build c97c6d6

Failing w/original image

➜  ~ docker run --rm -it -p 8080:8080 artpar/languagecrunch           
Package directory: /app/neuralcoref
INFO:root:Loading spacy model
Illegal instruction (core dumped)

Working w/new image

➜  ~ docker run --rm -it -p 8080:8080 artpar/languagecrunch-cloudbuild
INFO:root:Loading spacy model, wait for confirmation before using
INFO:root:Loaded spacy model
loading model from /app/neuralcoref/weights/
Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.

gsaulmon avatar Jan 16 '18 21:01 gsaulmon

I'm still getting the same error on the new image.

codevbus avatar Jan 16 '18 21:01 codevbus

Potentially this?

https://github.com/explosion/spaCy/issues/1589

codevbus avatar Jan 16 '18 22:01 codevbus

Same problem here, on windows 10.

PS C:\Users\x> docker run artpar/languagecrunch INFO:root:Loading spacy model Illegal instruction

I haven't tried languagecrunch-cloudbuild

mehmetilker avatar Jan 26 '18 08:01 mehmetilker

@mehmetilker can you try languagecrunch-cloudbuild, it solved the issue for couple of people.

The issue linked by @codevbus seems to be related and the comment there says they have figured out the issue and the fix will come in next version. I hope that works out.

artpar avatar Jan 26 '18 08:01 artpar

@artpar I was waiting for download. Yes it worked. Thanks.

mehmetilker avatar Jan 26 '18 10:01 mehmetilker

Hi, just wanted to note that I'm still having this issue with the cloudbuild version. Also, this looks awesome, can't wait to try it.

I'm running on CentOS Linux release 7.4.1708 (Core) Docker version 17.11.0-ce, build 1caf76c

dwarcher avatar Jan 30 '18 21:01 dwarcher

For those who are not able to run the docker image, can you try building the image locally and see if it makes any difference ?

Have hosted the docker image to: http://languagecrunch.docile.online/ You can use this for testing and playing around. Please do not rely on this for production use case.

Eg:

  • http://languagecrunch.docile.online/nlp/parse?sentence=Let%27s%20create%20a%20chat%20bot.

  • http://languagecrunch.docile.online/nlp/word?word=reveal&pos=v

artpar avatar Jan 31 '18 09:01 artpar

Got it, doing docker build worked. Thanks!

dwarcher avatar Jan 31 '18 15:01 dwarcher

@artpar Sorry for the delay in response. Finally got a chance to poke at this more. Building the docker image from the Dockerfile/repo on the server finally worked.

Thanks for your assistance!

codevbus avatar Feb 10 '18 18:02 codevbus

Not closing the issue, as its not really solved and might help someone else.

artpar avatar Feb 11 '18 06:02 artpar

Getting: Illegal instruction (core dumped)

When running: import tensorflow as tf. The same as i'm running my python script.

I'm using Ubuntu 16.04 LTS in Oracle Virtual Machine. My Laptop is Acer Aspire E 15 with Intel Celeron Processor.

How can i solve it? 1

Logbetz avatar Mar 04 '18 11:03 Logbetz