Everything works fine until pyvista tries the first plot. I get the following error:
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple MacOS to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: Run with -malloc_debug to check if memory corruption is causing the crash.
Abort(59) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
I tried everything that i could find on the internet typing “pyvista in docke container”, “GUI application in docker container” etc. and, while other people seem to solve the issue, my best improvement is to get no error and anything else (neither the plot).
Hello dokken,
Unfortunately I tried what you say and I still get the same error. I also installed manually, one by one, all the requirements and nothing, still the same.
I feel like I am the only one on the internet that has something stupid that is wrong in the setup, because everything works for everone except me.
In the latest version of the tutorial I’ve created an image that includes all dependencies, (dokken92/dolfinx_custom:labv0.4.0), see: Tutorial compatible images for more details.
I also get display id not set, but that is not a problem as I’m rendering the figures inside a jupyter notebook. Have you tried running the image in a browser?
I found the solution. Basically, if you run docker in VS there is no connection between the container and host’s X-server.
In the following link there are many ways to solve the issue:
Hello @bay_swiss , I have the same problem trying to run demo scripts using the Python IDE PyCharm with a remote interpreter which is configured by the corresponding docker image for that specific demo script. I get the same error messages like you pointed out here:
I do not quite understand how u solved it. Stupid question: where did you run xhost +local:root exactly?
I open Visual Studio and its terminal, in which I put all the commands.
I don’t know if Pycharm has a Docker extension, but in VS you can easily manage docker containers and run code inside the container itself.
If I didn’t understand your question please be more specific!