pvpython/pvbatch with MPI Build Causes Deadlock on Consecutive Runs

I’m experiencing an issue with ParaView’s pvpython and pvbatch when using an MPI-enabled build (ParaView-5.11.2-egl-MPI-Linux-Python3.9). Specifically, when I run pvpython or pvbatch scripts multiple times from the same parent process (e.g., within a Python testing framework like pytest), the first execution completes successfully, but subsequent runs hang indefinitely.

  • Is there a supported method to disable or bypass MPI initialization in pvpython/pvbatch when using an MPI-enabled build?
  • Are there any known workarounds or patches that address this issue?
  • Would building ParaView from source without MPI support be the only viable solution?

I appreciate any guidance or suggestions you can provide.

--no-mpi should do the trick

Still an issue to open, this should not be needed. Could you open it ?

https://gitlab.kitware.com/paraview/paraview/-/issues

Even when no-mpi flag is passed there are still multiple processes getting launched.

Screenshot from 2024-11-12 13-56-53

Ok thanks I will create an issue on the repository.

I do not see this behavior, even without the --no-mpi flag