Track the location in source code of errors trying to get the root window.
