The viewport rectangle height/width must either be both zero or both greater than zero and less than or equal to the size ...