Skip to content

Resizing window when running python TUI app results in crash #14079

Open
@sandos

Description

@sandos

Windows Terminal version

1.16.2641.0

Windows build number

10.0.190044.1889

Other Software

python 3.10.6
prompt_toolkit 3.0.30

Steps to reproduce

In my prompt_toolkit python app, if I vigorously resize the terminal window it eventually crashes. This only happens with Atlas Engine enabled in settings. Attaching Visual Studio points to a memory related issue.

Iv'e had trouble making my python program smaller and still exhibit the problem, so I am unable to share it at the moment. I can reproduce it easily though. It does use an emoji (), but nothing special as far as I know other than that.

Attached a few different backtraces:
bt1.txt
bt2.txt
bt3.txt
bt4.txt
bt5.txt

The small program I tried to reproduce this bug with is here, it does not quite do it though but should be close:
https://gist.github.com/sandos/fc1ae1d5abf0e9609228b18766a49612

Expected Behavior

No crash on resizing window.

Actual Behavior

Windows Terminal Preview crashes silently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AtlasEngineIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-ReproWe can't figure out how to make this happen. Please help find a simplified repro.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions