Dock throwing NSInvalidArgumentException trying to start
I got the same problem and fixed it by removing desktoppicture.db:

rm ~/Library/Application\ Support/Dock/desktoppicture.db


Then Dock started automatically.