Skip to content

Hosting terminal crashes process on Win10 when using Emoji picker or IME #19562

@olegtk

Description

@olegtk

Windows Terminal version

1.22.250513001

Windows build number

10.0.19045.6575

Other Software

Well, this issue is the root cause of one of top Visual Studio crashes, but it can reproduced using terminal wpf hosting sample too.

Steps to reproduce

  1. Update src\cascadia\WpfTerminalTestNetCore\MainWindow.xaml to include also plain WPF TextBox:
<Window x:Class="WpfTerminalTestNetCore.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:WpfTerminalTestNetCore"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:term="clr-namespace:Microsoft.Terminal.Wpf;assembly=Microsoft.Terminal.Wpf"
        Title="MainWindow"
        Width="800"
        Height="450"
        mc:Ignorable="d">
    <DockPanel>
        <TextBox x:Name="InputBox"
                 Height="30"
                 Width="400"
                 Text="Type here"
                 DockPanel.Dock="Top"/>
        <term:TerminalControl x:Name="Terminal"
                              Focusable="true" />
    </DockPanel>
</Window>
  1. Build and run WpfTerminalTestNetCore sample
  2. Try typing emojis into the text box using Windows emoji picker (Win+.)

Expected Behavior

Doesn't crash, adds emoji characters to the text box content

Actual Behavior

crashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-WPFControlThings related to the WPF version of the TermControlIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Severity-CrashCrashes are real bad news.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions