-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Illegal instruction error #3738
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
Comments
I imported your project in my local instance and I wasn't able to reproduce this issue. We will need more research on this. |
Thanks for taking a look. Anything I can help? I've been bothered for a while about this. |
@stsewd I modified them using the
|
@stsewd Can you paste the log here? It's strange that my project takes that much memory.
to run |
Looking at http://readthedocs.org/projects/zhusuan/builds/6828690/, the return code is 132 which means We probably need to check versions of all dependencies with extension modules (numpy, tensorflow, matplotlib etc.) in http://readthedocs.org/projects/zhusuan/builds/6828690/ (first failed build) and http://readthedocs.org/projects/zhusuan/builds/6822461/ (last completed build) |
@stsewd @berkerpeksag I just updated the dev branch and found the memory error when downloading tensorflow 1.6.0. |
I did some experiments on the dev branch. When I set TF to 1.4.0 in the doc requirements file, everything works well (build page). When I changed it to 1.6.0, the build failed with a MemoryError (build page) or Illegal instruction (build page). I'm now using |
@thjashin I'm glad that you have your docs working! And not really sure if with more memory your problem would go away, what @berkerpeksag mentions is also very valid (but the builds are executed within a docker container, so maybe a problem with the host?). |
Looking at the build logs shared by @thjashin in #3738 (comment), I think there are two different problems:
There are some reports about the second problem in tensorflow's issue tracker: tensorflow/tensorflow#17373 (uses precompiled wheels like us), tensorflow/tensorflow#17411 (same issue) and tensorflow/tensorflow#17441 So I'm beginning to think that the cause of the problem is a buggy wheel distribution. I don't know what to do with the first problem though. Perhaps we could just increase memory limit (this needs to be discussed with operations team) or implement a retry mechanism (but it's hard to guess whether a |
@thjashin simple question: do you really need TensorFlow to build your documentation? If it's not a strict requirement for building the docs, the better solution here is to not install it on RTD env. You can avoid installing it by using a |
@stsewd @berkerpeksag Thanks for the comments and pointers. I guess the SIGILL problem would be solved in future versions of TF. As for the MemoryError, how about the solution proposed by @stsewd ? |
@humitos Maybe I'm doing in the wrong way, but since there are plenty of |
@stsewd Cool, thanks. I shall try this. |
If you are using autodoc, you need to install it. Otherwise, supposing that you don't need autodoc, you can mock it as http://docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules |
@thjashin hey, I see your latest builds are passing, were you able to solve the issue? |
@stsewd Thanks for asking. It passed because I'm using TF 1.4. I haven't got time to try the mock solution since I'm busy with other things these days. I will report in this thread once I try it. |
Downgrading worked for me too. Thanks for reporting, and sharing work-around! |
Thanks for the information everyone! I see the project is building now, so perhaps the immediate error was resolved with these solutions. I would echo using mocking to anyone hitting a similar issue. Closing this for now, but speak up if this error is still a problem for you. |
Details
Expected Result
I regularly update the repo and the docs should rebuild.
Actual Result
In recent commits the building failed with the following error log when starting Sphinx:
My local building works well and I've tried Sphinx 1.6.5 and 1.7.1. They both failed with the same error. Do you have an idea what the problem is?
The text was updated successfully, but these errors were encountered: