
Hmmm, if the window contents do show up correctly from time to time, it can't really be a missing dependency. If it flickers, then my guess would be that something in the fragile construction of X11, the window manager and the graphics drivers has probably changed again :)
Does it work better if you choose a non-compositing window manager? I always found that everything seemed more stable when I selected "No effects" under appearance in the Ubuntu control panels.