Had a wierd issue that caused a fresh build of XBMC to crash every time I played something.
To fix the issue I did the following :
1) Log into ubuntu
2) Open up a terminal session
3) run the command
4) The above should error with an error message
sudo nano .asoundrc
6) change the first line from
Save the file and exit. Reboot. Should now all work.