There was a nasty bug recently with xorg (Intel driver) eating RAM then the kernel OOM killer would swoop in and kill the desktop. I filed a bug on launchpad and the upstream Intel driver maintainer was super attentive and got it fixed. It was a rough time while the issue was around, but it happens..