A quick Google throws up http://ubuntuforums.org/showthread.php?t=54181
(amongst others) where it is suggested that you either simlply delete
~/.ICEauthority or boot to a terminal and check that the owner/group are
set to you and that you have rw permissions.
There doesn't seem to be any consensus as to the cause though, which is
annoying.