-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal instruction in lex_attrs #1589
Comments
Seems to be fixed by
On a virtualenv specific to the machine I'm running on. Looks like build outputs were cached on network filesystem from another machine. |
This problem happens to me constantly during development. I wish I had a better solution than specifying |
Nice to know I'm not the only one this happens to :) |
We have the same problem. It's especially difficult because we're shipping a Docker image with spacy preinstalled, and SIGILL crashes the Python process entirely, so we are basically forced to reinstall spacy unless this gets fixed |
Having the exact same issue at @msta :( |
Yes, same issue here! It was running fine on 1.9.0, but upgrading to 2.0.0 started causing |
For reference, here's the
|
Further investigation with gdb led me to this:
Don't know if that means anything to anyone! |
I also get this crash when trying to load spaCy within a Dockerised container on Heroku, even when installing, uninstalling and reinstalling via |
@philgooch Did you have any luck with Heroku support? I'm using Spacy in an AWS Lambda container and having the same issue... Their support was unable to present a solution. It seems to be an issue when Spacy runs "containerized". Crazy part is that we deployed the same code on multiple containers with the exact same configuration. Some work, others don't... |
@byrro No, unfortunately they were unable to help either. I've had to revert to spaCy 1.10.0 in order to deploy it reliably with Docker. |
@philgooch Version 1.10 also worked well on Lambda. I received more details from AWS team and the problem is that some machines in the Lambda server fleet do not support a compiled code from Spacy. Here's what they said: A lot of "invalid opcode" errors come from
Older versions of Spacy do not have code compiled with this option. That's why version 1.10 works and 2.0.X doesn't. |
Just got a response from the Spacy team (@honnibal). The compiler flag that's causing the issue will be removed in the next version (to be released in approx. 2 weeks). One could also compile from source without the flag and have the issue fixed before that. |
@byrro great detective work, thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not sure why, but on some machines I get this and on some machines I don't. After loading spaCy, I get
Illegal instruction
. Usingstrace
I saw this happens after opening the filelib/python3.5/site-packages/spacy/lang/__pycache__/lex_attrs.cpython-35.pyc
, so I suppose it's due to some code in there.The following code already causes this:
Info about spaCy
The text was updated successfully, but these errors were encountered: