View Issue Details

IDProjectCategoryView StatusLast Update
0005099NoesisGUIUnitypublic2026-06-29 10:39
ReporterYolkin Games Assigned Tosfernandez  
PrioritynormalSeveritycrash 
Status feedbackResolutionopen 
Product Version3.2.13 
Target Version3.2.14 
Summary0005099: Pressing Tab on a focused TextBox crashes the native runtime (access violation)
Description
  • Repro: Give a TextBox keyboard focus, press Tab.
  • Result: Hard native crash — EXCEPTION_ACCESS_VIOLATION_READ at offset 0x18, stack ItemsControl::ContainerFromElementNoesis_View_KeyDown. Reproduces in both Editor and standalone Player, 100%.
  • Diagnosis: The focus-traversal dispatcher walks the visual tree on Tab (e.g. a TextBox inside a TabControl or any template registering focus scopes) and dereferences an invalid pointer in native code. The crash is entirely native — no managed event fires first, so it cannot be caught or prevented from C#; the only workaround is to intercept and drop the Tab key event before the view processes it.
  • Severity: High — any focusable TextBox plus a Tab press takes down the process.
  • Possibly related: private bug #3239 ("Crash in TabControl related to key handling", reportedly fixed 3.2.11) — but the symptom shape differs and 3.2.13 still crashes, so this may be a distinct path.
  • Unblocks dropping workaround: we currently patch the vendored view to early-return on the Tab key event. Once the native walk no longer AVs, that source patch can be removed.
PlatformWindows

Activities

sfernandez

sfernandez

2026-06-29 10:39

manager   ~0012385

Hello,

Could you please attach a small project reproducing the issue?
I tried with the following xaml, and pressing the Tab key correctly moves the focus between the different buttons and text boxes without crashing Unity.

<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Grid.Resources>
    <GradientStopCollection x:Key="list">
      <GradientStop Offset="0" Color="Red"/>
      <GradientStop Offset="0.5" Color="Green"/>
      <GradientStop Offset="1" Color="Blue"/>
    </GradientStopCollection>
    <DataTemplate x:Key="dt">
      <DockPanel>
        <Rectangle Width="20" Height="20" DockPanel.Dock="Left">
          <Rectangle.Fill>
            <SolidColorBrush Color="{Binding Color}"/>
          </Rectangle.Fill>
        </Rectangle>
        <TextBox Margin="5,0,0,0"/>
      </DockPanel>
    </DataTemplate>
  </Grid.Resources>
  <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Width="400">
    <Button Content="Button"/>
    <TextBox Text="Hello" Margin="0,10"/>
    <ItemsControl ItemsSource="{StaticResource list}" ItemTemplate="{StaticResource dt}" Height="100"/>
    <Button Content="Below" Margin="0,10"/>
  </StackPanel>
</Grid>

Issue History

Date Modified Username Field Change
2026-06-27 08:48 Yolkin Games New Issue
2026-06-27 09:03 Yolkin Games Summary Pressing Tab on a focused TextBox crashes the native runtime (access violation) => Pressing Tab on a focused TextBox crashes the native runtime (access violation)
2026-06-27 09:03 Yolkin Games Description Updated
2026-06-29 10:39 sfernandez Assigned To => sfernandez
2026-06-29 10:39 sfernandez Status new => assigned
2026-06-29 10:39 sfernandez Target Version => 3.2.14
2026-06-29 10:39 sfernandez Status assigned => feedback
2026-06-29 10:39 sfernandez Note Added: 0012385