Skip to content
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

Doc build suddenly started to fail every time: core dumped #9117

Closed
diningphil opened this issue Apr 16, 2022 · 5 comments
Closed

Doc build suddenly started to fail every time: core dumped #9117

diningphil opened this issue Apr 16, 2022 · 5 comments
Labels
Needed: more information A reply from issue author is required Support Support question

Comments

@diningphil
Copy link

Details

For some reason unknown to me, the readthedocs builds started failing from middle/late March. I have even tried to compile previous versions of my repo, e.g. v1.0.0, which compiled successfully in the past. Now all I am getting is the core dumped error below. Have you changed some memory limit in the main servers that build the docs?

I would be happy to not install all the libraries in the docs/requirements.txt file, but that seems a prerequisite to correctly build the documentation in the readthedocs

Alternatively, is it possible to upload the compiled files instead of triggering the online build?

Thanks for your help

Expected Result

The doc should correctly build as it is happening in local and used to happen in the past. Now even prior versions that used to build successfully show the same problem.

Actual Result

immagine

@stsewd
Copy link
Member

stsewd commented Apr 18, 2022

the readthedocs builds started failing from middle/late March.

Hi, the first build from that projects is from 2 days ago https://readthedocs.org/projects/pydgn/builds/?page=2, did you re-create that project?

Have you changed some memory limit in the main servers that build the docs?

No that I'm aware of

Alternatively, is it possible to upload the compiled files instead of triggering the online build?

That isn't possible at the moment, you may want to subscribe to #1083

Locally I got this error

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

I'll try increasing the memory limits of your project

@stsewd stsewd added the Support Support question label Apr 18, 2022
@pydgn
Copy link

pydgn commented Apr 18, 2022

Thanks for the prompt response and for the help. Yes, I tried to re-create the project from scratch.

Just out of curiosity, how were you able to reproduce it locally? Could you please link the steps here?
I'm only able to build the doc locally from my conda/venv environment, so it does not throw any kind of error.

Thanks again! Hopefully the memory limit increase will sort the issue out =)

@stsewd
Copy link
Member

stsewd commented Apr 18, 2022

@pydgn looks like your project is already building on a large builder (7 GB of ram).

how were you able to reproduce it locally?

I did that from my local instance of RTD, but I just tried on my local system (16 GB of ram) with the same result

$ cd docs
$ pip install -r requirements.txt
$ sphinx-build . _build/html
Running Sphinx v4.4.0
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 14 source files that are out of date
updating environment: [new config] 14 added, 0 changed, 0 removed
terminate called after throwing an instance of 'std::bad_alloc'                                                         
  what():  std::bad_alloc
[1]    98043 IOT instruction (core dumped)  sphinx-build . _build/html

$ sphinx-build . _build/html
Running Sphinx v4.4.0
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 14 source files that are out of date
updating environment: [new config] 14 added, 0 changed, 0 removed
[1]    98168 segmentation fault (core dumped)  sphinx-build . _build/html                                               

So, this doesn't look like a problem with RTD, maybe a transitive dependency was updated recently

@humitos humitos added the Needed: more information A reply from issue author is required label Apr 19, 2022
@diningphil
Copy link
Author

diningphil commented Apr 19, 2022

I was able to reproduce the segfault outside of the conda environment, thanks.

Any suggestion on how to discover the transitive dependency you are talking about? I'm really losing my mind here =)

Thanks in advance!

@stsewd
Copy link
Member

stsewd commented Apr 19, 2022

Any suggestion on how to discover the transitive dependency you are talking about? I'm really losing my mind here =)

You could have compared the previous installed dependencies from previous builds, but since the project was re-created, those aren't available anymore. Maybe you could get those from someone who hasn't updated their dependencies and where the build passes. You could use pip freeze to get them.

I'm closing this issue since isn't a problem with RTD.

@stsewd stsewd closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: more information A reply from issue author is required Support Support question
Projects
None yet
Development

No branches or pull requests

4 participants