Correct bug when no cuda device found we would use uninitialized memory.
Add more message when we fail to create a render window.