Resizing the font while playing a sixel video can trigger a crash #22301

Closed
opened 2026-01-31 08:09:14 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Sep 22, 2024).

Windows Terminal version

1.22.2362.0

Windows build number

10.0.19045.4894

Other Software

img2sixel

Steps to reproduce

  1. Start a WSL shell in Windows Terminal.
  2. Get some content in the buffer so that resizing will force a reflow.
  3. View an animated gif with img2sixel filename.gif so you've got some sixel content being constantly refreshed.
  4. Resize the font with the mouse scroll wheel, so you're rapidly growing and shrinking the animation. Make sure the image sometimes grows larger than the viewport.

Expected Behavior

The animation should continue to play without any problems, aside from the fact that some partial frames will be pushed into the scrollback buffer when the image becomes too large to fit the height of the page.

Actual Behavior

The terminal eventually crashes.

This doesn't happen in OpenConsole, but that is assumedly because it resizes the window when you change the font size, so the text dimensions never change, and thus no reflow is required. Although now that I say that, I suspect you could possibly cause it to crash just by resizing the window in a way that triggers a reflow.

Originally created by @j4james on GitHub (Sep 22, 2024). ### Windows Terminal version 1.22.2362.0 ### Windows build number 10.0.19045.4894 ### Other Software [img2sixel](https://github.com/saitoha/libsixel) ### Steps to reproduce 1. Start a WSL shell in Windows Terminal. 2. Get some content in the buffer so that resizing will force a reflow. 3. View an animated gif with `img2sixel filename.gif` so you've got some sixel content being constantly refreshed. 4. Resize the font with the mouse scroll wheel, so you're rapidly growing and shrinking the animation. Make sure the image sometimes grows larger than the viewport. ### Expected Behavior The animation should continue to play without any problems, aside from the fact that some partial frames will be pushed into the scrollback buffer when the image becomes too large to fit the height of the page. ### Actual Behavior The terminal eventually crashes. This doesn't happen in OpenConsole, but that is assumedly because it resizes the window when you change the font size, so the text dimensions never change, and thus no reflow is required. Although now that I say that, I suspect you could possibly cause it to crash just by resizing the window in a way that triggers a reflow.
claunia added the Needs-TriageIssue-BugIn-PR labels 2026-01-31 08:09:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22301