i tried
Code:
unity reset
it went on for some time but did not help. then i tried

unity --reset
it hung for sometime. I closed the terminal window.

everything is fine now.