I was running into it too. The problem for me was that view height and size were zero. I changed size of view manually .widht = 1024 and height = 768 ... or something else different from 0 before first render call. This worked for me. I was not going deeper into the problem and why I had it and other not. I will check a different pc these days.
Volker
