Closed noirchen closed 1 week ago
I can't reproduce this with docker run -ti --network=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd):/root/shared -w /root/shared --rm ghcr.io/fenics/dolfinx/dolfinx:nightly
Could you specify how you installed DOLFINx, and what version?
I installed dolfinx on a Ubuntu system with conda, and the version is 0.9.0.
Could you try to locate what line of the script causes the seg fault? As it seems the temporal loop finished, could you comment the loop out and remove line by line from the bottom to see where the issues lies?
I suspect that something related to the mpirun
because if I run the script without mpirun
, no error was produced. I also run the script on mac with the same version of dolfinx installed through conda, the result was the same: no error in serial, and PETSC error with mpirun
. In both case, the dolfinx environment was installed with
conda create -n fenics ipython mpich pyvista
conda activate fenics
conda install -c conda-forge ipykernel fenics-dolfinx imageio gmsh python-gmsh tqdm
I used mpirun with 8 processes as well. That is why I asked if you could do some detective work as to trying to locate the offending line.
I did what you suggested and to my surprise, it is the tqdm.autonotebook
that caused the problem. That explains why all the plots and calculations are done correctly.
Strange. Then just remove it as it is not required to run the code (a simple for loop will do). @RemDelaporteMathurin was this what you observed in festim ?
Yeah I replaced it with a single tqdm.tqdm
and all went well.
@noirchen have you tried closing the tqdm bar with .close()
at the end of the script?
Yes, close with progress.close()
eliminates the error.
Hello, I am running into a PETSC error when I run the ns-code2 example. I convert the notebook to a python script and execute
mpiexec -np 8 python ns-code2.py
. All the test figures are correctly generated, but a petsc error of signal number 11 occurs. I installed fenicsx using conda on a linux machine with 16 cores.The output is