Subject: bug#73022: 31.0.50; Crash in build_frame_matrix_from_leaf_window after C-x 2 and reducing terminal size

From: martin rudalics <[email-masked]>
Date: Thu, 5 Sep 2024 10:18:35 +0200

> Thanks, but could you tell how that change could have affected this
 > assertion violation?

I attach the patch now, sorry for not doing it earlier.

IIUC we are talking about this assertion

	  eassert (frame_size_change_delayed (XFRAME (w->frame))
		   || glyph_row_slice_p (window_row, frame_row));

Right?  If so, then this violation might be caused by the fact that we
(1) did resize windows according to the new sizes but (2) did not update
the frame sizes accordingly.  Which seems to match one observation that
the assertion gets violated when we increase the terminal height after
making it very small and not before.

 > AFAICT, adjust_frame_glyphs is not in the
 > backtrace, so how could moving code inside of it affect what happens
 > here?

I don't understand what you mean here.

martin