When? When booting the system or logging into a different GUI?
I get that error if I make a mistake configuring my Openbox or Fluxbox statup.sh. I then need to log into another GUI, fix the startup.sh, log out and log back into the WM that produced the error.
Is this what has happened to you? If not, what has transpired?