"Ran out of video memory"

use and type stat memory, hopefully you will be able to get a handle on what is causing it.