XQuartz cannot generate any windows (even the built in terminal or xlogo)

x11xquartz

getting a bit desperate here after trying everything I could find/think of — I'll just come out and say that I have a weak back ground in unix systems.

I use XQuartz 2.7.11 to connect to a RedHat server run by our group to use some software packages. I am able to login and connect to the server normally but when I try to launch an application, terminal opens XQuartz but it cannot generate any windows. I am having the same issue with another simulation code that is installed locally but uses XQuartz to generate some UI elements — the point of saying this is that I don't believe it is any issue with connecting to the server.

Furthermore, if I open XQuartz normally and try to open the XQuartz terminal nothing happens. Under XQuartz>Applications> there are also "xman" and "xlogo" options that don't do anything when clicked. Previously I remember clicking "xlogo" would open up a small icon of XQuartz in a window. So this seems like something is preventing XQuartz from opening any kind of desktop windows.

One last note, if I try to run a terminal command that normally opens XQuartz, then XQuartz launches but doesn't generate any windows like previously mentioned but also I cannot close XQuartz. Quitting XQuartz just causes it to restart a second later (likewise for force quit). The only way to keep it from reopening is to log out. This makes it seem to me like the original command that uses the X11 window server is continually trying to open it without success causing XQuartz to come up — even if I close terminal.

I noticed this issue the first time I installed Xcode and Python IDLE. I have since removed and reinstalled every combination of XQuartz and Xcode.

Looking for any suggestions short of reinstalling macOS.

Best Answer

Reinstalling macOS from the online recovery option (Command-Option-R at startup) fixed the issue. All my files, programs and settings remained as before. I've tried many things but seems like this was the way to go from the start.