I get that error message from time to time while working in Ubuntu (after updates I think).
I can force that error simply by going to terminal and executing:
unity --reset
Even with this error I can use the desktop normally, but not 3d.
I think this happened since I started using dual screen; since then I can't use unity 3d.