Besides the ram problem (probably main problem and the cause) what does
Code:
xdpyinfo | grep -A1 dimen
give you ?
Kind of reminds me of Bug#384325 from which I have read is not only related to QPaintDevice but opening any app (especially qt and kde apps)