I am using Ubuntu 20.04, locally, no remote access or anything. Still, whenever I start up paraview from the terminal, or when I run an application that uses MPI (I think it's enough if it calls MPI_Init()), then I get the error message
Invalid MIT-MAGIC-COOKIE-1 key
How can I solve this?
MPI implementation: Open MPI 4.0.3
ParaView version: 5.7.0
I find that
rm ~/.Xauthorityand then logging out and back in works.See the resolution to the xinit error: https://github.com/dnschneid/crouton/issues/197
More on why the situation arises: https://askubuntu.com/a/300737/1057634
According to the man pages, the ~/.Xauthority file is created automatically when you run a GUI application involving a remote server, and when you ssh using ssh -X (but if you just ssh you will get an error saying you need a .Xauthority file to be able to connect to the server).