This is a duplicate of #17769. Changing window.c to
if (buf != current_buffer) // error ("`recenter'ing a window that does not display current-buffer."); return Qnil; works here as a workaround until the problem is fixed. -- Knowledge is volatile and fluid. Software is power.