Merge "Add log to debug why the window frame could be empty" into main