Display coordinates are outside the window boundaries.
Verify that the coordinates being used are within the size of the window.