pyvista: running PyVista in sphinx examples causes segfault on a clean docs build
When building the docs, a segfault occurs if its a clean build:
cd ./docs/
rm -r _build
rm -r examples
make html
note that a segfault occured. Then if you build again, no segfualt occurs
make html
This is an issue for vtki
and other projects running vtki
code in their docs/examples.
Note that in our .travis.yml
, we build the docs twice to avoid this issue.
I have a feeling it has to do with some sort of object cleanup not happening - noticed this after implementing the sphinx_gallery
scraper
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (12 by maintainers)
Commits related to this issue
- Attempt resolve #185 — committed to pyvista/pyvista by banesullivan 5 years ago
- Test if #185 is resolved — committed to pyvista/pyvista by banesullivan 5 years ago
- Check #185 — committed to pyvista/pyvista by banesullivan 4 years ago
If you’re running VTK 9.0 on Linux, this will occur as there’s a bug with VTK not closing down the windows/figures even though they’re in the background.
I also tested vtk 8.2 and got the same error on rendering.
Edit: Typo, sorry. Meant: 8.1.2
@GuillaumeFavelier, that segfault looks different than what I’m experiencing and likely has something to do with the code being run as it segfaults during execution rather than on closing/cleanup.