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

Open
opened 2026-01-31 08:53:08 +00:00 by claunia · 0 comments
Owner

Originally created by @olegtk on GitHub (Nov 17, 2025).

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

Originally created by @olegtk on GitHub (Nov 17, 2025). ### 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: ```xaml <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> ``` 2. Build and run WpfTerminalTestNetCore sample 3. 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23808