-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Command killed due to excessive memory consumption; help with reducing memory #8424
Comments
The error message is not accurate. It seems it reached the build time limit (900s). I increased it to be 1200s and triggered another build at: https://readthedocs.org/projects/biosteam/builds/14500657/ Let's see if it pass now. Otherwise, we can take another look. |
1200s was not enough either :( --BTW, what's your Sphinx code doing that takes so much time? |
1800s was no enough, either 🙃 |
Your build was taking 163s 1 week ago: https://readthedocs.org/projects/biosteam/builds/14438536/ and this started failing because of build time https://readthedocs.org/projects/biosteam/builds/14447089/. So, there is a problem with the docs between this commit 57fb2f284e4518d59477f259f8354551e808f6ad and 751ced554874488d92bc156f9852442eaac23b9e I think. |
Thank you so much for looking into this. I'm on Sphinx v3.5.4. It takes me less than a minute to run "make html" on my computer: I can switch to another version of Sphinx on my computer to check if that reproduces the error (just let me know). I cannot find what could have made the error between the commits, but perhaps my dependencies made some changes that led to the problem... Let me know if you have any more ideas or things I could fix up. Thanks! |
Update: I tried building the docs with Sphinx v1.8.5 and it worked well on my computer, so maybe it's not a problem with the sphinx version... Hope this helps, |
Sorry, one more update: |
Hi @yoelcortes , just one extra thing - I notice that you're pushing to |
I'm trying to reproduce the issue locally and it also gets stuck for me. In particular, the @yoelcortes I see that you're doing I can't point out at the moment what the problem is, but I don't think it's a Read the Docs issue. Will report back later if I find anything. |
Well, something very weird goes on here.
Moreover, Profiling it with py-spy, it looks like all the time is spent here: def implicit_inline(self, text, lineno):
"""
Check each of the patterns in `self.implicit_dispatch` for a match,
and dispatch to the stored method for the pattern. Recursively check
the text before and after the match. Return a list of `nodes.Text`
and inline element nodes.
"""
if not text:
return []
for pattern, method in self.implicit_dispatch:
match = pattern.search(text) therefore, my guess is that the regex search is stuck in some of the notebook blobs. |
Killed the process after 20 minutes, cleared all the outputs of all the cells, and the Removed At least on my computer this is 100 % reproducible and I confirm it's not a RTD problem. Can't point exactly at the root cause though. |
Thanks @astrojuanlu! With this, I think I can pinpoint which cell is the problem, report back, and just not run the cell for the meantime until the issue is solved. |
@astrojuanlu, @humitos I found the solution to the bug! It turns out that in nbsphinx v0.8.7, you should not have 'ipynb' in the Closing this issue now, |
Details
Problem
The project build stops when reading sources due to excessive memory consumption. This is similar to #6412, but maybe the cause is not the same as I do not use a conda installation and it stops only after everything is installed.
If there is anything I can do to reduce memory consumption, please let me know. Any help on this would greatly appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: